[wpt-sync] Sync PR 21836 - SharedWorker: Use constructor origin for security origin
Categories
(Core :: DOM: Workers, task, P4)
Tracking
()
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
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
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
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)
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/40e1da754365
https://hg.mozilla.org/mozilla-central/rev/861b3a86087f
Description
•