Closed Bug 1616029 Opened 6 years ago Closed 5 years ago

[wpt-sync] Sync PR 21836 - SharedWorker: Use constructor origin for security origin

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Eriko Kurimoto <elkurin@google.com> wrote:

SharedWorker: Use constructor origin for security origin

This CL uses constructor origin for security origin.

Previously, we were using script_request_url to calculate security
origin because script url usually has the same origin with the
constructor.
However, it differs sometimes, for example, when script url is data URL.
By using constructor origin, HTTPState can be calculated correctly for
data URL and works as same as before for normal url like https://example.com.

Bug: 1048619, 881202
Change-Id: I78ef9a501b80fe03ad8b3d59d5e6b4d3b8ba2f6e
Reviewed-on: https://chromium-review.googlesource.com/2046803
WPT-Export-Revision: 1e26444e67fea83b732a895337415aadec1cfa99

Component: web-platform-tests → DOM: Workers
Product: Testing → Core

CI Results

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

Total 1 tests and 4 subtests

Status Summary

Firefox

TIMEOUT: 1
ERROR : 1
NOTRUN : 3

Chrome

PASS : 1
TIMEOUT: 2
NOTRUN : 2

Safari

OK : 1
FAIL : 4

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/workers/modules/shared-worker-import-data-url-cross-origin.html: ERROR (Chrome: TIMEOUT, Safari: OK)
static import script from data: URL should be allowed.: NOTRUN (Chrome: TIMEOUT, Safari: FAIL)
static import data url from data: URL should be allowed.: TIMEOUT (Chrome: PASS, Safari: FAIL)
dynamic import script from data: URL should be blocked.: NOTRUN (Chrome: NOTRUN, Safari: FAIL)
dynamic import data url from data: URL should be allowed.: NOTRUN (Chrome: NOTRUN, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/40e1da754365 [wpt PR 21836] - SharedWorker: Use constructor origin for outside settings origin, a=testonly https://hg.mozilla.org/integration/autoland/rev/861b3a86087f [wpt PR 21836] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.