+2015-06-02 Commit Queue <commit-queue@webkit.org>
+
+ Unreviewed, rolling out r185128 and r185132.
+ https://bugs.webkit.org/show_bug.cgi?id=145597
+
+ The new test hits a bad assertion (Requested by ap on
+ #webkit).
+
+ Reverted changesets:
+
+ "Crash in GraphicsContext3D::getInternalFramebufferSize"
+ https://bugs.webkit.org/show_bug.cgi?id=145479
+ http://trac.webkit.org/changeset/185128
+
+ "Skip webgl/useWhilePending.html on WebKit 1."
+ http://trac.webkit.org/changeset/185132
+
2015-06-02 Dean Jackson <dino@apple.com>
Skip webgl/useWhilePending.html on WebKit 1.
+++ /dev/null
-Should not crash.
+++ /dev/null
-<script>
-if (window.testRunner) {
- window.internals.settings.setForcePendingWebGLPolicy(true);
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-window.addEventListener("load", function () {
-
- var canvas = document.createElement("canvas");
- canvas.width = 100;
- canvas.height = 100;
- var gl = canvas.getContext("webgl");
- var foo = gl.drawingBufferWidth;
- foo = gl.drawingBufferHeight;
-
- if (window.testRunner)
- testRunner.notifyDone();
-
-}, false);
-</script>
-
-Should not crash.
# Disable snapshotting tests on WK1 only
plugins/snapshotting
-# WK1 doesn't do pending WebGL policies
-fast/canvas/webgl/useWhilePending.html [ Skip ]
-
# Animated image throttling behaves differently on WK1.
fast/images/animated-gif-body-outside-viewport.html [ Skip ]
fast/images/animated-gif-window-resizing.html [ Skip ]
+2015-06-02 Commit Queue <commit-queue@webkit.org>
+
+ Unreviewed, rolling out r185128 and r185132.
+ https://bugs.webkit.org/show_bug.cgi?id=145597
+
+ The new test hits a bad assertion (Requested by ap on
+ #webkit).
+
+ Reverted changesets:
+
+ "Crash in GraphicsContext3D::getInternalFramebufferSize"
+ https://bugs.webkit.org/show_bug.cgi?id=145479
+ http://trac.webkit.org/changeset/185128
+
+ "Skip webgl/useWhilePending.html on WebKit 1."
+ http://trac.webkit.org/changeset/185132
+
2015-06-02 Ryuan Choi <ryuan.choi@navercorp.com>
[CoordinatedGraphics] Refactor TiledBackingStoreClient
bool isPendingPolicyResolution = false;
Document& topDocument = document.topDocument();
Page* page = topDocument.page();
- bool forcingPendingPolicy = frame->settings().isForcePendingWebGLPolicy();
-
- if (forcingPendingPolicy || (page && !topDocument.url().isLocalFile())) {
- WebGLLoadPolicy policy = forcingPendingPolicy ? WebGLPendingCreation : page->mainFrame().loader().client().webGLPolicyForURL(topDocument.url());
+ if (page && !topDocument.url().isLocalFile()) {
+ WebGLLoadPolicy policy = page->mainFrame().loader().client().webGLPolicyForURL(topDocument.url());
if (policy == WebGLBlockCreation) {
LOG(WebGL, "The policy for this URL (%s) is to block WebGL.", topDocument.url().host().utf8().data());
int WebGLRenderingContextBase::drawingBufferWidth() const
{
- if (m_isPendingPolicyResolution && !m_hasRequestedPolicyResolution)
- return 0;
-
return m_context->getInternalFramebufferSize().width();
}
int WebGLRenderingContextBase::drawingBufferHeight() const
{
- if (m_isPendingPolicyResolution && !m_hasRequestedPolicyResolution)
- return 0;
-
return m_context->getInternalFramebufferSize().height();
}
#endif
, m_hiddenPageCSSAnimationSuspensionEnabled(false)
, m_fontFallbackPrefersPictographs(false)
- , m_forcePendingWebGLPolicy(false)
{
// A Frame may not have been created yet, so we initialize the AtomicString
// hash before trying to use it.
m_setImageLoadingSettingsTimer.startOneShot(0);
}
-void Settings::setForcePendingWebGLPolicy(bool forced)
-{
- m_forcePendingWebGLPolicy = forced;
-}
-
void Settings::setPluginsEnabled(bool arePluginsEnabled)
{
if (m_arePluginsEnabled == arePluginsEnabled)
const String& mediaKeysStorageDirectory() const { return m_mediaKeysStorageDirectory; }
#endif
- WEBCORE_EXPORT void setForcePendingWebGLPolicy(bool);
- bool isForcePendingWebGLPolicy() const { return m_forcePendingWebGLPolicy; }
-
private:
explicit Settings(Page*);
bool m_hiddenPageCSSAnimationSuspensionEnabled : 1;
bool m_fontFallbackPrefersPictographs : 1;
- bool m_forcePendingWebGLPolicy : 1;
-
#if USE(AVFOUNDATION)
WEBCORE_EXPORT static bool gAVFoundationEnabled;
#endif
, m_shouldDisplayTextDescriptions(settings.shouldDisplayTextDescriptions())
#endif
, m_defaultVideoPosterURL(settings.defaultVideoPosterURL())
- , m_forcePendingWebGLPolicy(settings.isForcePendingWebGLPolicy())
, m_originalTimeWithoutMouseMovementBeforeHidingControls(settings.timeWithoutMouseMovementBeforeHidingControls())
, m_useLegacyBackgroundSizeShorthandBehavior(settings.useLegacyBackgroundSizeShorthandBehavior())
, m_autoscrollForDragAndDropEnabled(settings.autoscrollForDragAndDropEnabled())
settings.setShouldDisplayTextDescriptions(m_shouldDisplayTextDescriptions);
#endif
settings.setDefaultVideoPosterURL(m_defaultVideoPosterURL);
- settings.setForcePendingWebGLPolicy(m_forcePendingWebGLPolicy);
settings.setTimeWithoutMouseMovementBeforeHidingControls(m_originalTimeWithoutMouseMovementBeforeHidingControls);
settings.setUseLegacyBackgroundSizeShorthandBehavior(m_useLegacyBackgroundSizeShorthandBehavior);
settings.setAutoscrollForDragAndDropEnabled(m_autoscrollForDragAndDropEnabled);
{
page()->setPageScaleFactor(1, IntPoint(0, 0));
page()->setCanStartMedia(true);
- page()->settings().setForcePendingWebGLPolicy(false);
#if ENABLE(WIRELESS_PLAYBACK_TARGET)
m_page->settings().setAllowsAirPlayForMediaPlayback(false);
#endif
settings()->setDefaultVideoPosterURL(url);
}
-void InternalSettings::setForcePendingWebGLPolicy(bool forced, ExceptionCode& ec)
-{
- InternalSettingsGuardForSettings();
- settings()->setForcePendingWebGLPolicy(forced);
-}
-
void InternalSettings::setTimeWithoutMouseMovementBeforeHidingControls(double time, ExceptionCode& ec)
{
InternalSettingsGuardForSettings();
bool m_shouldDisplayTextDescriptions;
#endif
String m_defaultVideoPosterURL;
- bool m_forcePendingWebGLPolicy;
bool m_originalTimeWithoutMouseMovementBeforeHidingControls;
bool m_useLegacyBackgroundSizeShorthandBehavior;
bool m_autoscrollForDragAndDropEnabled;
void setImagesEnabled(bool, ExceptionCode&);
void setMinimumTimerInterval(double intervalInSeconds, ExceptionCode&);
void setDefaultVideoPosterURL(const String& url, ExceptionCode&);
- void setForcePendingWebGLPolicy(bool, ExceptionCode&);
void setTimeWithoutMouseMovementBeforeHidingControls(double time, ExceptionCode&);
void setUseLegacyBackgroundSizeShorthandBehavior(bool, ExceptionCode&);
void setAutoscrollForDragAndDropEnabled(bool, ExceptionCode&);
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
- * Copyright (C) 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
[RaisesException] void setMediaTypeOverride(DOMString mediaTypeOverride);
void setWirelessPlaybackDisabled(boolean available);
- [RaisesException] void setForcePendingWebGLPolicy(boolean forced);
-
void setPluginReplacementEnabled(boolean enabled);
// Editing, forms