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

Unified Diff: content/test/data/screen_orientation/screen_orientation_use_after_detach.html

Issue 653283007: Tests for CL 647933003. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win8 Created 6 years, 2 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 | « content/test/data/screen_orientation/detached-iframe.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/screen_orientation/screen_orientation_use_after_detach.html
diff --git a/content/test/data/screen_orientation/screen_orientation_use_after_detach.html b/content/test/data/screen_orientation/screen_orientation_use_after_detach.html
new file mode 100644
index 0000000000000000000000000000000000000000..7618f2bc60071886a648ce322752185cb0f667da
--- /dev/null
+++ b/content/test/data/screen_orientation/screen_orientation_use_after_detach.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+
+window.iframeLoaded = function() {
+ document.location.hash = '#ready';
+
+ var iframe = document.getElementsByTagName('iframe')[0];
+ var oldScreen = iframe.contentWindow.screen;
+
+ iframe.remove();
+
+ oldScreen.orientation.unlock();
+ document.location.hash = '#done';
+}
+
+</script>
+<iframe src='detached-iframe.html'></iframe>
+</body>
+</html>
« no previous file with comments | « content/test/data/screen_orientation/detached-iframe.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698