Bug 1471436 [wpt PR 11678] - Fix the clicked iframe in two wpt fullscreen tests., a=testonly

Automatic update from web-platform-testsFix the clicked iframe in two wpt fullscreen tests.

With User Activation v2, activating a parent frame doesn't activate
its subframes.  We fixed these two tests by sending the click to
subframes.  This needed a workaround in auto-click.js because
the mutation observer there in doesn't seem to work when a button
element is added to a subframe.

Bug: 802371
Change-Id: I786668c87b802565e99ad16223cafc8ac1fd6296
Reviewed-on: https://chromium-review.googlesource.com/868323
Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570778}

--

wpt-commits: b0f0ef9adb50765ea38be619015bb061d6a224b6
wpt-pr: 11678
This commit is contained in:
Mustaq Ahmed 2018-07-06 23:09:12 +00:00 committed by James Graham
parent a4e926a399
commit be3786e784
3 changed files with 4 additions and 4 deletions

View File

@ -572509,7 +572509,7 @@
"testharness"
],
"fullscreen/api/element-request-fullscreen-and-exit-iframe-manual.html": [
"6b06ccdca77fda2a6777a6b22ca1dd6baadd65f7",
"1a4b1290dfa3c40e9d9927860d1635f526940efb",
"manual"
],
"fullscreen/api/element-request-fullscreen-and-move-manual.html": [
@ -572605,7 +572605,7 @@
"testharness"
],
"fullscreen/model/move-to-fullscreen-iframe-manual.html": [
"62aec7e1d5065bf99a00fc533c8c6d6704ac2010",
"b6ac159c13ba1df9e209089a98b6abbab5629231",
"manual"
],
"fullscreen/model/move-to-iframe-manual.html": [

View File

@ -37,6 +37,6 @@ async_test(t => {
document.onfullscreenerror = t.unreached_func('fullscreenerror event');
iframeDoc.onfullscreenerror = t.unreached_func('iframe fullscreenerror event');
trusted_request(t, iframeBody, document.body);
trusted_request(t, iframeBody, iframeBody);
});
</script>

View File

@ -10,7 +10,7 @@ async_test(t => {
const iframeDoc = iframe.contentDocument;
// Enter fullscreen for the iframe's body element.
trusted_request(t, iframeDoc.body, document.body);
trusted_request(t, iframeDoc.body, iframeDoc.body);
document.onfullscreenchange = t.step_func(() => {
assert_equals(document.fullscreenElement, iframe, "document's initial fullscreen element");
assert_equals(iframeDoc.fullscreenElement, iframeDoc.body, "iframe's initial fullscreen element");