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

Unified Diff: LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html

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
Index: LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html
diff --git a/LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html b/LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html
new file mode 100644
index 0000000000000000000000000000000000000000..cc931a49fb8f982d2799fc4e92b20161486be216
--- /dev/null
+++ b/LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html
@@ -0,0 +1,9 @@
+<script>
+ var exceptionName = "";
+ try {
+ screen.lockOrientation("portrait-primary");
+ } catch (ex) {
+ exceptionName = ex.name;
+ }
+ parent.window.postMessage(exceptionName, "*");
+</script>
« no previous file with comments | « LayoutTests/screen_orientation/lockOrientation-sandboxed-iframe.html ('k') | Source/core/dom/SandboxFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698