Closed Bug 2059331 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 61627 - script: Claim blob URLs before fetching script sources.

Categories

(Core :: DOM: File, task, P4)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 61627 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/61627
Details from upstream follow.

Josh Matthews <josh@joshmatthews.net> wrote:

script: Claim blob URLs before fetching script sources.

These changes push forward the blob URL claim migration a bit further, now making it possible for other callers of create_potential_cors_request to be migrated incrementally. The UrlWithBlobClaim type ensures that any blob URL referenced remains valid while the value is alive, even if the blob is revoked.

Testing: Previously intermittent test now passes consistently. Added new module-specific tests as well.
Part of #<!-- nolink -->25226
Fixes: #<!-- nolink -->19978

Reviewed in servo/servo#46881

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → DOM: File
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 16 tests

Status Summary

Firefox

OK : 2[GitHub] 15[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 11[GitHub] 131[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 132[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 3

Chrome

OK : 2
PASS: 11

Safari

OK : 2
PASS: 11

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /FileAPI/url/sandboxed-iframe.html [wpt.fyi]
    • Blob URLs can be used in iframes, and are treated same origin: FAIL
    • Blob URL fragment is implemented.: FAIL
    • Revoke blob URL after creating Request, then clone Request, will fetch: FAIL
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ff223aec0259 https://hg.mozilla.org/integration/autoland/rev/1c99ccef82cd [wpt PR 61627] - script: Claim blob URLs before fetching script sources., a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.