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

Unified Diff: LayoutTests/fullscreen/model/fully-exit-fullscreen.js

Issue 470723002: Sync "fully exit fullscreen" with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test with window.open() Created 6 years, 4 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 | « no previous file | LayoutTests/fullscreen/model/fully-exit-fullscreen-nested.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/model/fully-exit-fullscreen.js
diff --git a/LayoutTests/fullscreen/model/fully-exit-fullscreen.js b/LayoutTests/fullscreen/model/fully-exit-fullscreen.js
new file mode 100644
index 0000000000000000000000000000000000000000..9cfb0058202b4a4bdfb4e86eceae5fd887dbdac7
--- /dev/null
+++ b/LayoutTests/fullscreen/model/fully-exit-fullscreen.js
@@ -0,0 +1,8 @@
+// Invokes "fully exit fullscreen" for document.
+function fully_exit_fullscreen(document)
+{
+ // FIXME: window.open() invokes "fully exit fullscreen", but the HTML spec
+ // doesn't say so, and none of the spec'd behavior is implemented:
+ // https://www.w3.org/Bugs/Public/show_bug.cgi?id=26584
+ document.defaultView.open("data:text/html,<script>window.close()</script>");
+}
« no previous file with comments | « no previous file | LayoutTests/fullscreen/model/fully-exit-fullscreen-nested.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698