Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(868)

Unified Diff: Source/platform/ScriptForbiddenScope.h

Issue 648423003: Enforce ScriptForbiddenScope and make it non-fatal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Trim superfluous includes Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/ScriptForbiddenScope.h
diff --git a/Source/platform/ScriptForbiddenScope.h b/Source/platform/ScriptForbiddenScope.h
index 18998057a451b2a83c6a963966029dcea55ad7ab..a68fdceaf0179411614e1a8964ce03848cb41845 100644
--- a/Source/platform/ScriptForbiddenScope.h
+++ b/Source/platform/ScriptForbiddenScope.h
@@ -24,18 +24,6 @@ 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();
- private:
- TemporaryChange<unsigned> m_change;
- };
-
static void enter();
static void exit();
static bool isScriptForbidden();

Powered by Google App Engine
This is Rietveld 408576698