Index: Source/platform/ScriptForbiddenScope.h |
diff --git a/Source/platform/ScriptForbiddenScope.h b/Source/platform/ScriptForbiddenScope.h |
index 7aa518ce48e4ada168253c3896793356c66a4968..e3894fdc98344b1a10714d2196c976bc81335306 100644 |
--- a/Source/platform/ScriptForbiddenScope.h |
+++ b/Source/platform/ScriptForbiddenScope.h |
@@ -24,6 +24,20 @@ public: |
TemporaryChange<unsigned> m_change; |
}; |
+ // FIXME: This should be removed. AllowSuperUnsafeScript is used |
+ // to exceptionally allow script execution in ScriptForbiddenScope, because |
+ // some real-world plugins try to execute script in ScriptForbiddenScope. |
+ // This is unsafe and we should get rid of all the unsafe script executions. |
+ class PLATFORM_EXPORT AllowSuperUnsafeScript { |
+ public: |
+ AllowSuperUnsafeScript(); |
+ ~AllowSuperUnsafeScript(); |
+#if !ASSERT_ENABLED |
+ private: |
+ TemporaryChange<unsigned> m_change; |
+#endif |
+ }; |
+ |
static bool isScriptForbidden(); |
}; |