forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow dialog.requestFullscreen() (includes web-platform-tests)
Follows whatwg/fullscreen#104 The compat risk is virtually none given how rarely this happens: https://www.chromestatus.com/metrics/feature/timeline/popularity/1998 https://www.chromestatus.com/metrics/feature/timeline/popularity/1999 Bug: 240576 Change-Id: Ifcd793251d50cd40fc2fc5ef5ee50343f0aac35f Reviewed-on: https://chromium-review.googlesource.com/684435 Reviewed-by: Takayoshi Kochi <[email protected]> Commit-Queue: Philip Jägenstedt <[email protected]> Cr-Commit-Position: refs/heads/master@{#505007}
- Loading branch information
1 parent
0f1ee41
commit 37f4e33
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
fullscreen/api/element-request-fullscreen-dialog-manual.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<title>Element#requestFullscreen() for dialog element</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../trusted-click.js"></script> | ||
<div id="log"></div> | ||
<dialog></dialog> | ||
<script> | ||
async_test(t => { | ||
var dialog = document.querySelector("dialog"); | ||
assert_true(dialog instanceof HTMLDialogElement); | ||
trusted_request(t, dialog); | ||
document.onfullscreenchange = t.unreached_func("fullscreenchange event"); | ||
document.onfullscreenerror = t.step_func_done(); | ||
}); | ||
</script> |
16 changes: 16 additions & 0 deletions
16
fullscreen/api/element-request-fullscreen-null-ns-manual.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<title>Element#requestFullscreen() for an element in null namespace</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../trusted-click.js"></script> | ||
<div id="log"></div> | ||
<script> | ||
async_test(t => { | ||
const element = document.createElementNS(null, 'a'); | ||
assert_equals(Object.getPrototypeOf(element), Element.prototype); | ||
document.body.appendChild(element); | ||
trusted_request(t, element); | ||
document.onfullscreenchange = t.unreached_func("fullscreenchange event"); | ||
document.onfullscreenerror = t.step_func_done(); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters