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

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

Issue 1139933002: Prototype an 'allow-unsandboxed-auxiliary' sandbox flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback. 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
« no previous file with comments | « Source/core/dom/SandboxFlags.h ('k') | Source/core/page/CreateWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/SandboxFlags.cpp
diff --git a/Source/core/dom/SandboxFlags.cpp b/Source/core/dom/SandboxFlags.cpp
index 4df79990cba5112f93c3e5f9fd8fc20a19f26501..157685d4a21b773a51ef79f5287697282ff30cec 100644
--- a/Source/core/dom/SandboxFlags.cpp
+++ b/Source/core/dom/SandboxFlags.cpp
@@ -28,6 +28,7 @@
#include "core/dom/SandboxFlags.h"
#include "core/html/parser/HTMLParserIdioms.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "wtf/text/StringBuilder.h"
namespace blink {
@@ -65,6 +66,8 @@ SandboxFlags parseSandboxPolicy(const SpaceSplitString& policy, String& invalidT
flags &= ~SandboxPointerLock;
} else if (equalIgnoringCase(sandboxToken, "allow-orientation-lock")) {
flags &= ~SandboxOrientationLock;
+ } else if (equalIgnoringCase(sandboxToken, "allow-unsandboxed-auxiliary") && RuntimeEnabledFeatures::unsandboxedAuxiliaryEnabled()) {
+ flags &= ~SandboxPropagatesToAuxiliaryBrowsingContexts;
} else {
if (numberOfTokenErrors)
tokenErrors.appendLiteral(", '");
« no previous file with comments | « Source/core/dom/SandboxFlags.h ('k') | Source/core/page/CreateWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698