Closed Bug 1660433 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 25176 - Subresource WebBundles: Same-origin restriction

Categories

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

task

Tracking

(firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Kunihiko Sakamoto <ksakamoto@chromium.org> wrote:

Subresource WebBundles: Same-origin restriction

This patch restricts subresource loading from WebBundles only to
same-origin resources, i.e. origin of subresource URL must be
same-origin with the origin of the enclosing WebBundle's URL.

Bug: 1120252
Change-Id: Ic999c4582385560f22a1251c37bd3572f0ffd2bb
Reviewed-on: https://chromium-review.googlesource.com/2368618
WPT-Export-Revision: fe6a8549aff5e2c35b3d66c6d716ee0ee7186fb7

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1 tests and 6 subtests

Status Summary

Firefox

FAIL : 2
TIMEOUT: 2
NOTRUN : 3

Chrome

FAIL : 2
TIMEOUT: 2
NOTRUN : 3

Safari

FAIL : 2
TIMEOUT: 2
NOTRUN : 3

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/web-bundle/subresource-loading/subresource-loading-from-web-bundle.tentative.html: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
Subresource URL must be same-origin with bundle URL: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Updating resource= attribute should not reload the bundle: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
<link rel="webbundle"> fires an error event on load failure: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Dynamically adding / updating / removing "<link rel=webbundle>": FAIL (Chrome: FAIL, Safari: FAIL)
<link rel="webbundle"> fires a load event on load success: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
Subresource loading with WebBundle: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9a018bb082cd
[wpt PR 25176] - Subresource WebBundles: Same-origin restriction, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.