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

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

Issue 272213002: Add support for 'allow-orientation-lock' sandboxing directive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert bad local change Created 6 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/modules/screen_orientation/ScreenOrientation.h » ('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 1ebd0c3fe66bcac4f058df1ee826a60070ab3d70..8d8e01c2f7971c60a5cb31dd3e1df6f1aa0d0f6c 100644
--- a/Source/core/dom/SandboxFlags.cpp
+++ b/Source/core/dom/SandboxFlags.cpp
@@ -65,6 +65,8 @@ SandboxFlags parseSandboxPolicy(const String& policy, String& invalidTokensError
flags &= ~SandboxPopups;
} else if (equalIgnoringCase(sandboxToken, "allow-pointer-lock")) {
flags &= ~SandboxPointerLock;
+ } else if (equalIgnoringCase(sandboxToken, "allow-orientation-lock")) {
+ flags &= ~SandboxOrientationLock;
} else {
if (numberOfTokenErrors)
tokenErrors.appendLiteral(", '");
« no previous file with comments | « Source/core/dom/SandboxFlags.h ('k') | Source/modules/screen_orientation/ScreenOrientation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698