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> |