Closed Bug 1710812 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 28971 - Make multiple web bundle links behavior deterministic

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox90 fixed)

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Tsuyoshi Horo <horo@chromium.org>' wrote:

Make multiple web bundle links behavior deterministic

Currently the behavior of multiple web bundle links is not
deterministic. It is because ResourceFetcher is keeping
SubresourceWebBundles in a HeapHashSet.

To fix this issue this CL changes the logc to use Vector in a new class
SubresourceWebBundleList, and use the last added link.

Bug: 1082020
Change-Id: I7cb0908f6b405c1d4982a6dc551d9bf7fc5fd201
Reviewed-on: https://chromium-review.googlesource.com/2891272
WPT-Export-Revision: ab8c7164385ca90bbbb5429d962076037a5c61a5

CI Results

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

Total 1 tests and 13 subtests

Status Summary

Firefox

PASS : 1
FAIL : 6
TIMEOUT: 2
NOTRUN : 5

Chrome

OK : 1
PASS : 6
FAIL : 7

Safari

PASS : 1
FAIL : 6
TIMEOUT: 2
NOTRUN : 5

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/web-bundle/subresource-loading/subresource-loading-from-web-bundle.https.tentative.html: SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-opt, Gecko-windows10-32-debug, Gecko-windows10-32-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt], TIMEOUT [GitHub] (Chrome: OK, Safari: TIMEOUT)
Subresource loading with WebBundle: FAIL (Chrome: FAIL, Safari: FAIL)
Subresource loading with WebBundle (Fetch API): FAIL (Chrome: FAIL, Safari: FAIL)
Dynamically adding / updating / removing "<link rel=webbundle>": FAIL (Chrome: FAIL, Safari: FAIL)
Dynamically loading classic script from web bundle with link.resources: FAIL (Chrome: FAIL, Safari: FAIL)
Multiple web bundle links. The last added link must be refered.: FAIL (Chrome: FAIL, Safari: FAIL)
Dynamically loading classic script from web bundle with link.scopes: FAIL (Chrome: FAIL, Safari: FAIL)
<link rel="webbundle"> fires a load event on load success: TIMEOUT (Chrome: PASS, Safari: TIMEOUT)
<link rel="webbundle"> fires an error event on load failure: NOTRUN (Chrome: PASS, Safari: NOTRUN)
Subresource URL must be same-origin with bundle URL: NOTRUN (Chrome: PASS, Safari: NOTRUN)
Subresource loading with urn:uuid: URL with link.resources: NOTRUN (Chrome: PASS, Safari: NOTRUN)
Subresource loading with urn:uuid: URL with link.scopes: NOTRUN (Chrome: PASS, Safari: NOTRUN)
Updating resource= attribute should not reload the bundle: NOTRUN (Chrome: FAIL, Safari: NOTRUN)

Tests Disabled in Gecko Infrastructure

/web-bundle/subresource-loading/subresource-loading-from-web-bundle.https.tentative.html: SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-opt, Gecko-windows10-32-debug, Gecko-windows10-32-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt], TIMEOUT [GitHub] (Chrome: OK, Safari: TIMEOUT)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cb3330487452
[wpt PR 28971] - Make multiple web bundle links behavior deterministic, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.