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

URLSearchParams.keys() is broken when running in GM #3136

Open
ppixiv opened this issue Apr 13, 2022 · 2 comments
Open

URLSearchParams.keys() is broken when running in GM #3136

ppixiv opened this issue Apr 13, 2022 · 2 comments

Comments

@ppixiv
Copy link

ppixiv commented Apr 13, 2022

Not sure if this project is active, but thought I'd at least mention this:

Iterating over URLSearchParams.keys() fails inside the GM environment with "TypeError: searchParams2.keys() is not iterable". It looks like the Symbol.iterator symbol is lost from the object returned from keys(). unsafeWindow.URLSearchParams works.

iterator.txt

@arantius
Copy link
Collaborator

arantius commented Nov 5, 2023

Confirmed with example from documentation ( https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/keys#examples ); i.e. https://gist.github.com/arantius/933b3921877c3ac4316f38dbc956784d .

This feels like a bug in Firefox, most likely.

@arantius
Copy link
Collaborator

arantius commented Apr 4, 2024

This is http://bugzil.la/1023984 .

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

No branches or pull requests

2 participants