-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Location shouldn't use %ObjProto_toString% as the value of its "toString" property #2284
Comments
Fixing this basically involves removing that step as far as I can tell. The reason that step was added was because IDL defined it for unforgeable interfaces, which were a thing at some point. However, only |
I realized that apart from that step the one other mention of |
I mistakenly copied all boilerplate from IDL’s unforgeable interfaces concept (which was only ever used for Location) and thereby turned the fallback behavior into the actual behavior (or an exception arguably, as [[Configurable]] is false). Fixes #2284.
I mistakenly copied all boilerplate from IDL’s unforgeable interfaces concept (which was only ever used for Location) and thereby turned the toString() fallback behavior into the actual behavior (or an exception arguably, as [[Configurable]] is false). We also determined that only Firefox supports an unforgeable toJSON() and nobody really has a use for it, so that is dropped. Tests: web-platform-tests/wpt#4623. Fixes #2284.
I mistakenly copied all boilerplate from IDL’s unforgeable interfaces concept (which was only ever used for Location) and thereby turned the toString() fallback behavior into the actual behavior (or an exception arguably, as [[Configurable]] is false). We also determined that only Firefox supports an unforgeable toJSON() and nobody really has a use for it, so that is dropped. Tests: web-platform-tests/wpt#4623. Fixes whatwg#2284.
Step 2 in https://html.spec.whatwg.org/multipage/browsers.html#the-location-interface performs:
@annevk told me that this contradicts the [Unforgeable] stringifier which is defined later.
Originally filed at https://bugzilla.mozilla.org/show_bug.cgi?id=1333045.
The text was updated successfully, but these errors were encountered: