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

Unified Diff: Source/core/dom/SandboxFlags.cpp

Issue 1126253007: Block modal dialogs inside sandboxes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebSandboxFlags. Created 5 years, 7 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/core/dom/SandboxFlags.cpp
diff --git a/Source/core/dom/SandboxFlags.cpp b/Source/core/dom/SandboxFlags.cpp
index 157685d4a21b773a51ef79f5287697282ff30cec..d3ca254f87705812c242470a946fef08adfbfdfe 100644
--- a/Source/core/dom/SandboxFlags.cpp
+++ b/Source/core/dom/SandboxFlags.cpp
@@ -68,6 +68,8 @@ SandboxFlags parseSandboxPolicy(const SpaceSplitString& policy, String& invalidT
flags &= ~SandboxOrientationLock;
} else if (equalIgnoringCase(sandboxToken, "allow-unsandboxed-auxiliary") && RuntimeEnabledFeatures::unsandboxedAuxiliaryEnabled()) {
flags &= ~SandboxPropagatesToAuxiliaryBrowsingContexts;
+ } else if (equalIgnoringCase(sandboxToken, "allow-modals") && RuntimeEnabledFeatures::sandboxBlocksModalsEnabled()) {
+ flags &= ~SandboxModals;
} else {
if (numberOfTokenErrors)
tokenErrors.appendLiteral(", '");

Powered by Google App Engine
This is Rietveld 408576698