[wpt-sync] Sync PR 30320 - [Storage Access API] Fix anomalous behavior with tests that use iframes
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox95 fixed)
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 30320 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/30320
Details from upstream follow.
b'Andreu Botella <abb@randomunok.com>' wrote:
[Storage Access API] Fix anomalous behavior with tests that use iframes
The tests for
hasStorageAccess
andrequestStorageAccess
need to test in different browsing contexts, with different relationships to the top-level browsing context, and both same-origin and cross-origin. They do this by declaring tests in the test file, and then loading that same test file in iframes usingfetch_tests_from_window
.However, a requirement of
fetch_tests_from_window
is that the window whose tests to fetch must not includetestharnessreport.js
– which isn't true for these Storage Access API tests. While this doesn't seem to make a difference when runningwpt serve
or otherwise when using the defaulttestharnessreport.js
file, tests run withwpt run
might timeout, and the subtests coming from the iframes might not be reported.This change creates versions of
hasStorageAccess.sub.window.html
andrequestStorageAccess.sub.window.html
that don't importtestharnessreport.js
, specifically to be loaded as iframes.
Assignee | ||
Comment 1•3 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=04408dd79c5531bb043e758000fd0fc931c525e9
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 11 subtests
Status Summary
Firefox
OK : 2
PASS : 20
FAIL : 6
Chrome
OK : 1
FAIL : 15
ERROR: 1
Safari
OK : 2
PASS : 20
FAIL : 6
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/storage-access-api/requestStorageAccess.sub.window.html
[top-level-context] document.requestStorageAccess() should be rejected by default with no user gesture: FAIL (Safari: FAIL)
[top-level-context] document.requestStorageAccess() should be resolved when called properly with a user gesture: FAIL (Safari: FAIL)
[same-origin-frame] document.requestStorageAccess() should be rejected by default with no user gesture: FAIL (Safari: FAIL)
[cross-origin-frame] document.requestStorageAccess() should be rejected by default with no user gesture: FAIL (Safari: PASS)
[nested-same-origin-frame] document.requestStorageAccess() should be rejected by default with no user gesture: FAIL (Safari: FAIL)
[nested-cross-origin-frame] document.requestStorageAccess() should be rejected by default with no user gesture: FAIL (Safari: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ba7c691e361e [wpt PR 30320] - [Storage Access API] Fix anomalous behavior with tests that use iframes, a=testonly https://hg.mozilla.org/integration/autoland/rev/70df754e0ef9 [wpt PR 30320] - Update wpt metadata, a=testonly
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ba7c691e361e
https://hg.mozilla.org/mozilla-central/rev/70df754e0ef9
Description
•