Closed Bug 1990472 Opened 10 months ago Closed 9 months ago

[wpt-sync] Sync PR 55035 - [wdspec] Add test for the immediate availability of preload script properties

Categories

(Remote Protocol :: WebDriver BiDi, task, P4)

task

Tracking

(firefox146 fixed)

RESOLVED FIXED
146 Branch
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: using window.open()
    • iframe: as an iframe
  • access_type: how the preload script property is accessed
    • evaluate: using the script.evaluate command
    • evaluate2: like evaluate but the new browsing context is opened without a URL
    • opener: from the script that creates the new browsing context
    • opener2: like opener but the new browsing context is opened without a URL
    • inline: from an inline script

Local 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.evaluate command
(2) error message "Not allowed to navigate top frame to data URL"

Component: web-platform-tests → WebDriver BiDi
Product: Testing → Remote Protocol
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

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

GitHub PR Head
GitHub PR Base

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)
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/078e4324514d https://hg.mozilla.org/integration/autoland/rev/2f2145f76850 [wpt PR 55035] - [wdspec] Add tentative test for the immediate availability of preload script properties, a=testonly https://github.com/mozilla-firefox/firefox/commit/04e6183cfb15 https://hg.mozilla.org/integration/autoland/rev/85e1d8d91ecf [wpt PR 55035] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 10 months ago9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
You need to log in before you can comment on or make changes to this bug.