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(", '"); |