diff options
Diffstat (limited to 'WebCore/bindings/generic')
-rw-r--r-- | WebCore/bindings/generic/BindingDOMWindow.h | 6 | ||||
-rw-r--r-- | WebCore/bindings/generic/RuntimeEnabledFeatures.cpp | 2 | ||||
-rw-r--r-- | WebCore/bindings/generic/RuntimeEnabledFeatures.h | 19 |
3 files changed, 21 insertions, 6 deletions
diff --git a/WebCore/bindings/generic/BindingDOMWindow.h b/WebCore/bindings/generic/BindingDOMWindow.h index d6d3087..b46bdf9 100644 --- a/WebCore/bindings/generic/BindingDOMWindow.h +++ b/WebCore/bindings/generic/BindingDOMWindow.h @@ -69,12 +69,6 @@ Frame* BindingDOMWindow<Binding>::createWindow(State<Binding>* state, ASSERT(callingFrame); ASSERT(enteredFrame); - if (Document* callingDocument = callingFrame->document()) { - // Sandboxed iframes cannot open new auxiliary browsing contexts. - if (callingDocument->securityOrigin()->isSandboxed(SandboxNavigation)) - return 0; - } - ResourceRequest request; // For whatever reason, Firefox uses the entered frame to determine diff --git a/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp b/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp index 1b09518..6ba85da 100644 --- a/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp +++ b/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp @@ -44,6 +44,8 @@ bool RuntimeEnabledFeatures::isWebkitNotificationsEnabled = false; bool RuntimeEnabledFeatures::isApplicationCacheEnabled = true; bool RuntimeEnabledFeatures::isGeolocationEnabled = true; bool RuntimeEnabledFeatures::isIndexedDBEnabled = false; +bool RuntimeEnabledFeatures::isWebGLEnabled = false; +bool RuntimeEnabledFeatures::isPushStateEnabled = false; #if ENABLE(VIDEO) diff --git a/WebCore/bindings/generic/RuntimeEnabledFeatures.h b/WebCore/bindings/generic/RuntimeEnabledFeatures.h index 6f0f78f..37dceff 100644 --- a/WebCore/bindings/generic/RuntimeEnabledFeatures.h +++ b/WebCore/bindings/generic/RuntimeEnabledFeatures.h @@ -77,6 +77,23 @@ public: static bool openDatabaseEnabled(); #endif +#if ENABLE(3D_CANVAS) + static void setWebGLEnabled(bool isEnabled) { isWebGLEnabled = isEnabled; } + static bool webGLRenderingContextEnabled() { return isWebGLEnabled; } + static bool webGLArrayBufferEnabled() { return isWebGLEnabled; } + static bool webGLByteArrayEnabled() { return isWebGLEnabled; } + static bool webGLUnsignedByteArrayEnabled() { return isWebGLEnabled; } + static bool webGLShortArrayEnabled() { return isWebGLEnabled; } + static bool webGLUnsignedShortArrayEnabled() { return isWebGLEnabled; } + static bool webGLIntArrayEnabled() { return isWebGLEnabled; } + static bool webGLUnsignedIntArrayEnabled() { return isWebGLEnabled; } + static bool webGLFloatArrayEnabled() { return isWebGLEnabled; } +#endif + + static void setPushStateEnabled(bool isEnabled) { isPushStateEnabled = isEnabled; } + static bool pushStateEnabled() { return isPushStateEnabled; } + static bool replaceStateEnabled() { return isPushStateEnabled; } + private: // Never instantiate. RuntimeEnabledFeatures() { } @@ -87,6 +104,8 @@ private: static bool isApplicationCacheEnabled; static bool isGeolocationEnabled; static bool isIndexedDBEnabled; + static bool isWebGLEnabled; + static bool isPushStateEnabled; }; } // namespace WebCore |