Skip to content

Conversation

@shannonbooth
Copy link
Contributor

cc @mikewest @annevk

Relating to whatwg/url#892

One case which I didn't figure out a nice way of covering is opaque origin Worker which is not a data scheme URL

const worker = new Worker(dataURL);
worker.onmessage = e => {
assert_true(e.data.isOpaque, "Origin created from data URL Worker should be an opaque origin.");
assert_false(e.data.sameOrigin, "Two data URL opaque origins should not be same-origin with one another.");
Copy link
Contributor Author

@shannonbooth shannonbooth Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My original interpretation of https://html.spec.whatwg.org/multipage/workers.html#set-up-a-worker-environment-settings-object of returning a new opaque origin every time doesn't seem right, based on test results maybe I should make a MR to the HTML spec to change it to be more like the Worklet case which stores origin as a variable instead of creating a new one each time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants