Skip to content

Throw SecurityError on non-trustworthy URLs in fetchLater - #1858

Closed
TimvdLippe wants to merge 1 commit into
whatwg:mainfrom
TimvdLippe:patch-2
Closed

TimvdLippe wants to merge 1 commit into
whatwg:mainfrom
TimvdLippe:patch-2

Conversation

@TimvdLippe

@TimvdLippe TimvdLippe commented Sep 28, 2025 •

Copy link
Copy Markdown
Contributor

@annevk

annevk commented Sep 29, 2025

Copy link
Copy Markdown
Member

cc @noamr

@annevk

annevk commented Sep 29, 2025

Copy link
Copy Markdown
Member

I wonder if the test is wrong here. I think we decided that we should align with fetch() on throwing TypeError everywhere.

@noamr

noamr commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

I wonder if the test is wrong here. I think we decided that we should align with fetch() on throwing TypeError everywhere.

Yea that's what I recall as well.
We should fix the test and chromium implementation
Cc @mingyc

@TimvdLippe

Copy link
Copy Markdown
Contributor Author

As part of the Servo PR I can update the test. Shall I?

@annevk

annevk commented Sep 29, 2025

Copy link
Copy Markdown
Member

Yeah please. After that this PR can be closed. Thank you!

@noamr

noamr commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

As part of the Servo PR I can update the test. Shall I?

Thanks for opening these issues as part of Servo, it helps makes the specs & general interop bettter!

github-merge-queue Bot pushed a commit to servo/servo that referenced this pull request Oct 1, 2025
Allows fetches to be deferred, only in a secure context. It does not yet
implement quota computation, since we don't have a concept of document
quota yet.

Also update the `fetch/api/idlharness` test to run in a secure context,
since this API is only available there.

Positive Mozilla position:
mozilla/standards-positions#703
Positive WebKit position:
WebKit/standards-positions#85

Closes whatwg/fetch#1858

Signed-off-by: Tim van der Lippe <[email protected]>
github-merge-queue Bot pushed a commit to servo/servo that referenced this pull request Oct 2, 2025
Allows fetches to be deferred, only in a secure context. It does not yet
implement quota computation, since we don't have a concept of document
quota yet.

Also update the `fetch/api/idlharness` test to run in a secure context,
since this API is only available there.

Positive Mozilla position:
mozilla/standards-positions#703
Positive WebKit position:
WebKit/standards-positions#85

Closes whatwg/fetch#1858

Signed-off-by: Tim van der Lippe <[email protected]>
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.

3 participants