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

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: 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 4df79990cba5112f93c3e5f9fd8fc20a19f26501..e591416e361d5850d22ffe76e4c1f0bcec2f710d 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,9 @@ 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")) {
+ if (RuntimeEnabledFeatures::unsandboxedAuxiliaryEnabled())
philipj_slow 2015/05/13 10:36:19 Should this check not be moved into the containing
Mike West 2015/05/13 11:22:01 It should!
+ flags &= ~SandboxUnsandboxedAuxiliary;
} else {
if (numberOfTokenErrors)
tokenErrors.appendLiteral(", '");

Powered by Google App Engine
This is Rietveld 408576698