Skip to content

Update URL & interface to accept Location XMLHttpRequest - #2552

Open
Adam Naji (Bashamega) wants to merge 5 commits into
microsoft:mainfrom
Bashamega:fix/location-issue
Open

Update URL & interface to accept Location XMLHttpRequest#2552
Adam Naji (Bashamega) wants to merge 5 commits into
microsoft:mainfrom
Bashamega:fix/location-issue

Conversation

@Bashamega

@Bashamega Adam Naji (Bashamega) commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

closes #2536

Also, I couldn't figure out how to override fetch

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by Kagami Sascha Rosylight (@saschanaz) - if they write a comment saying "LGTM" then it will be merged.

@Bashamega

Copy link
Copy Markdown
Contributor Author

Should i handle the fallback to WorkerLocation in the emitter or what should i do in this situation?

method parse signatureIndex=0 {
param base overrideType="string | URL | Location"
}
}

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

This comment was marked as resolved.

Signed-off-by: Bashamega <adambashaahmednaji@gmail.com>
@bddjr

Copy link
Copy Markdown

🤔It seems that we need to separately make webworker.generated.d.ts exempt from this change.
I don't know how to do that, so I didn't submit a PR.

Comment thread inputfiles/patches/url.kdl Outdated

interface URL {
constructor signatureIndex=0 {
param url overrideType="string | URL | Location"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not additionalTypes? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because location is not supported in web worker, i don't know how to handle web worker

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the exposure checker should autoremove them... but maybe we don't do that for additionalTypes? 🤔

…ethod parameters across multiple baseline files
@Bashamega

Copy link
Copy Markdown
Contributor Author

It wasn't implemented, but I have added it Kagami Sascha Rosylight (@saschanaz)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Web API type definition issue] URL, fetch, and XMLHttpRequest.prototype.open should accept Location as an argument

3 participants