Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return null origin of "blob:" URL containing inner non-"http(s):" URL #771

Merged
merged 1 commit into from
May 24, 2023

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented May 22, 2023

url.bs Outdated Show resolved Hide resolved
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

This looks good to me. For a moment I thought we could use "HTTP(S) scheme" but that's not defined here and that's probably fine.

url.bs Outdated Show resolved Hide resolved
@annevk
Copy link
Member

annevk commented May 23, 2023

@ricea @zcorpan thoughts?

Copy link

@ricea ricea left a comment

Choose a reason for hiding this comment

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

This change looks good to me. Since it is already shipping in Chromium, I'm not too worried about compatibility.

@zcorpan
Copy link
Member

zcorpan commented May 24, 2023

This seems OK to me. cc @valenting

@valenting
Copy link
Collaborator

This makes sense to me. I filed Bug 1834703 - Return null origin of "blob:" URL containing inner "blob:" URL for Firefox changes. Thank you for the tests.

@annevk
Copy link
Member

annevk commented May 24, 2023

@ricea to be clear, all browsers have failures here. E.g., "Origin parsing: blob:file://host/path without base" yields !EQ("null", "file://") in Chromium. (Same for ftp, ws, and wss.)

@rmisev do you want to file the remaining implementation bugs?

@ricea
Copy link

ricea commented May 24, 2023

@ricea to be clear, all browsers have failures here. E.g., "Origin parsing: blob:file://host/path without base" yields !EQ("null", "file://") in Chromium. (Same for ftp, ws, and wss.)

I am okay with that.

@rmisev rmisev changed the title Return null origin of "blob:" URL containing inner "blob:" URL Return null origin of "blob:" URL containing inner non-"http(s):" URL May 24, 2023
@rmisev
Copy link
Member Author

rmisev commented May 24, 2023

@rmisev do you want to file the remaining implementation bugs?

@annevk, I think you would fill in the bug reports faster than me.

annevk pushed a commit to web-platform-tests/wpt that referenced this pull request May 24, 2023
@annevk annevk merged commit eee49fd into whatwg:main May 24, 2023
@rmisev rmisev deleted the blob-origin branch May 25, 2023 06:37
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 30, 2023
…"http(s):" URL r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
http/https schemes to comply with new spec change.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request May 31, 2023
…"http(s):" URL r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
http/https schemes to comply with new spec change.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request May 31, 2023
…"http(s):" URL r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
http/https schemes to comply with new spec change.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: 34c5add98599ea6a4896ef1c424ef3120531ba00
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request May 31, 2023
…"http(s):" URL r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
http/https schemes to comply with new spec change.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: 34c5add98599ea6a4896ef1c424ef3120531ba00
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request May 31, 2023
…"http(s):" URL r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
http/https schemes to comply with new spec change.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: 34c5add98599ea6a4896ef1c424ef3120531ba00
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 31, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 1, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: 7cd945c5be6eac2287abb63f113bdc2ad17930a6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Jun 1, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: 7cd945c5be6eac2287abb63f113bdc2ad17930a6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jun 1, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: 7cd945c5be6eac2287abb63f113bdc2ad17930a6
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Jun 2, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 11, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Jun 12, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 13, 2023
…ner non-"http(s):" URL, a=testonly

Automatic update from web-platform-tests
URL: origin of "blob:" URL containing inner  non-"http(s):" URL

Tests for whatwg/url#771.
--

wpt-commits: fbd7ee145c0bd0158ae30f3a2fbf3c54263da19e
wpt-pr: 40133
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Jun 14, 2023
…ner non-"http(s):" URL, a=testonly

Automatic update from web-platform-tests
URL: origin of "blob:" URL containing inner  non-"http(s):" URL

Tests for whatwg/url#771.
--

wpt-commits: fbd7ee145c0bd0158ae30f3a2fbf3c54263da19e
wpt-pr: 40133
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Jun 16, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: af0665af954105365927736b6a65c4d28533bc4d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Jun 16, 2023
…ner non-"http(s):" URL, a=testonly

Automatic update from web-platform-tests
URL: origin of "blob:" URL containing inner  non-"http(s):" URL

Tests for whatwg/url#771.
--

wpt-commits: fbd7ee145c0bd0158ae30f3a2fbf3c54263da19e
wpt-pr: 40133

UltraBlame original commit: 6c15bd706256e597096ab747a1b24bc6a2798cbf
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 16, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: af0665af954105365927736b6a65c4d28533bc4d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 16, 2023
…ner non-"http(s):" URL, a=testonly

Automatic update from web-platform-tests
URL: origin of "blob:" URL containing inner  non-"http(s):" URL

Tests for whatwg/url#771.
--

wpt-commits: fbd7ee145c0bd0158ae30f3a2fbf3c54263da19e
wpt-pr: 40133

UltraBlame original commit: 6c15bd706256e597096ab747a1b24bc6a2798cbf
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jun 16, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400

UltraBlame original commit: af0665af954105365927736b6a65c4d28533bc4d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jun 16, 2023
…ner non-"http(s):" URL, a=testonly

Automatic update from web-platform-tests
URL: origin of "blob:" URL containing inner  non-"http(s):" URL

Tests for whatwg/url#771.
--

wpt-commits: fbd7ee145c0bd0158ae30f3a2fbf3c54263da19e
wpt-pr: 40133

UltraBlame original commit: 6c15bd706256e597096ab747a1b24bc6a2798cbf
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 21, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

16 WPT subtests newly pass 🎉

Differential Revision: https://phabricator.services.mozilla.com/D179400
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Jun 22, 2023
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

16 WPT subtests newly pass 🎉

Differential Revision: https://phabricator.services.mozilla.com/D179400
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 25, 2024
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

16 WPT subtests newly pass 🎉

Differential Revision: https://phabricator.services.mozilla.com/D179400
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request May 28, 2024
… inner schemes r=smaug,valentin

Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: whatwg/url#771
WPT tests: web-platform-tests/wpt#40133

16 WPT subtests newly pass 🎉

Differential Revision: https://phabricator.services.mozilla.com/D179400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

The origin of "blob:" URL containing inner "blob:" URL
5 participants