[wpt-sync] Sync PR 55035 - [wdspec] Add test for the immediate availability of preload script properties
Categories
(Remote Protocol :: WebDriver BiDi, task, P4)
Tracking
(firefox146 fixed)
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 55035 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/55035
Details from upstream follow.
Holger Benl <hbenl@evandor.de> wrote:
[wdspec] Add test for the immediate availability of preload script properties
See https://bugzilla.mozilla.org/show_bug.cgi?id=1985997.
This test adds a preload script, creates a new browsing context and checks that a global property defined by the preload script is available immediately. It has 2 parameters:
create_type: how the new browsing context is created
popup: usingwindow.open()iframe: as an iframeaccess_type: how the preload script property is accessed
evaluate: using thescript.evaluatecommandevaluate2: likeevaluatebut the new browsing context is opened without a URLopener: from the script that creates the new browsing contextopener2: likeopenerbut the new browsing context is opened without a URLinline: from an inline scriptLocal test results:
Firefox:
popup / evaluate: fail (1)
popup / evaluate2: fail
popup / opener: fail
popup / opener2: fail
popup / inline: pass
iframe / evaluate: fail (1)
iframe / evaluate2: fail (1)
iframe / opener: fail
iframe / opener2: fail
iframe / inline: pass
Chrome:
popup / evaluate: pass
popup / evaluate2: pass
popup / opener: pass
popup / opener2: pass
popup / inline: fail (2)
iframe / evaluate: pass
iframe / evaluate2: pass
iframe / opener: pass
iframe / opener2: pass
iframe / inline: pass(1) passes when the test awaits the first
script.evaluatecommand
(2) error message "Not allowed to navigate top frame to data URL"
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Comment 1•9 months ago
|
||
| Assignee | ||
Comment 2•9 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 10 subtests
Status Summary
Firefox
OK : 1
PASS : 4
FAIL : 6
Chrome
OK : 1
PASS : 9
FAIL : 1
Safari
OK : 1
ERROR: 10
Links
Details
New Tests That Don't Pass
- /webdriver/tests/bidi/script/add_preload_script/execution_order_tentative.py [wpt.fyi]
- test_preload_script_properties_available_immediately[popup-current_context_with_url]:
FAIL(Chrome:PASS, Safari:ERROR) - test_preload_script_properties_available_immediately[popup-current_context_without_url]:
FAIL(Chrome:PASS, Safari:ERROR) - test_preload_script_properties_available_immediately[popup-opener_context_with_url]:
FAIL(Chrome:PASS, Safari:ERROR) - test_preload_script_properties_available_immediately[popup-opener_context_without_url]:
FAIL(Chrome:PASS, Safari:ERROR) - test_preload_script_properties_available_immediately[iframe-opener_context_with_url]:
FAIL(Chrome:PASS, Safari:ERROR) - test_preload_script_properties_available_immediately[iframe-opener_context_without_url]:
FAIL(Chrome:PASS, Safari:ERROR)
- test_preload_script_properties_available_immediately[popup-current_context_with_url]:
Comment 4•9 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2f2145f76850
https://hg.mozilla.org/mozilla-central/rev/85e1d8d91ecf
Description
•