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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/v0/fullscreen-element-in-v0.html

Issue 2446323003: Add tests while FullscreenUnprefixed flag is turned off. (Closed)
Patch Set: rebase Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/shadow-dom/v0/fullscreen-element-in-v0.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/v0/fullscreen-element-in-v0.html b/third_party/WebKit/LayoutTests/shadow-dom/v0/fullscreen-element-in-v0.html
index 4d53e36e3d1b1098af2d50dd6bf58150b56d537f..c0356e87ae7df5fc665e937ec3d653bae62c2b87 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/v0/fullscreen-element-in-v0.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/v0/fullscreen-element-in-v0.html
@@ -36,6 +36,16 @@ async_test((test) => {
assert_equals(document.webkitCurrentFullScreenElement, canvas);
assert_equals(host0.shadowRoot.fullscreenElement, null);
+
+ // TODO(kochi): The 'retargeting' behavior is controlled by
+ // 'FullscreenUnprefixed' runtime flag dynamically. Until the
+ // flag is turned on, document.webkitFullscreenElement leaks the
+ // fullscreen element under shadow roots.
+ window.internals.runtimeFlags.fullscreenUnprefixedEnabled = false;
+ assert_false(window.internals.runtimeFlags.fullscreenUnprefixedEnabled);
+ assert_equals(document.webkitFullscreenElement, canvas);
+ assert_equals(document.webkitCurrentFullScreenElement, canvas);
+
document.exitFullscreen();
test.done();
});

Powered by Google App Engine
This is Rietveld 408576698