Closed
Bug 1424160
Opened 8 years ago
Closed 7 years ago
Update class strings for IDL iterator objects and prototypes
Categories
(Core :: DOM: Bindings (WebIDL), defect, P3)
Core
DOM: Bindings (WebIDL)
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: TimothyGu, Assigned: bzbarsky)
Details
Attachments
(3 files)
3.66 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
12.40 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
5.45 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.70 Safari/537.36
Steps to reproduce:
Execute the following steps in the console:
const it = new URLSearchParams().keys();
console.log(Object.prototype.toString.call(it));
console.log(Object.prototype.toString.call(Object.getPrototypeOf(it)));
console.log(Object.getPrototypeOf(it)[Symbol.toStringTag);
Actual results:
The following is printed
[object URLSearchParamsIterator]
[object URLSearchParamsIteratorPrototype]
undefined
Expected results:
After https://github.com/heycam/webidl/pull/483:
[object URLSearchParams Iterator]
[object URLSearchParams Iterator]
URLSearchParams Iterator
Reporter | ||
Comment 1•8 years ago
|
||
With a typo in the original description fixed:
const it = new URLSearchParams().keys();
console.log(Object.prototype.toString.call(it));
console.log(Object.prototype.toString.call(Object.getPrototypeOf(it)));
console.log(Object.getPrototypeOf(it)[Symbol.toStringTag]);
Updated•8 years ago
|
Priority: -- → P3
Reporter | ||
Comment 2•8 years ago
|
||
WPT available in https://github.com/w3c/web-platform-tests/pull/8796
![]() |
Assignee | |
Comment 3•7 years ago
|
||
We want to have some class names with spaces in them, but everything assumes
that an interface identifier is in fact an identifier (e.g. uses it in C++
identifiers like namespace names).
Attachment #8976366 -
Flags: review?(kyle)
![]() |
Assignee | |
Updated•7 years ago
|
Assignee: nobody → bzbarsky
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
![]() |
Assignee | |
Comment 4•7 years ago
|
||
Attachment #8976367 -
Flags: review?(kyle)
![]() |
Assignee | |
Comment 5•7 years ago
|
||
Attachment #8976368 -
Flags: review?(kyle)
Updated•7 years ago
|
Attachment #8976366 -
Flags: review?(kyle) → review+
Updated•7 years ago
|
Attachment #8976367 -
Flags: review?(kyle) → review+
Updated•7 years ago
|
Attachment #8976368 -
Flags: review?(kyle) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/973e3a16f6dc
part 1. Allow interfaces the have a different name for SpiderMonkey class name purposes. r=qdot
https://hg.mozilla.org/integration/mozilla-inbound/rev/b0d319aaafbe
part 2. Add infrastructure for defining @@toStringTag on Web IDL prototypes. r=qdot
https://hg.mozilla.org/integration/mozilla-inbound/rev/e5e68461d391
part 3. Set up @@toStringTag on our synthesized iterator interfaces. r=qdot
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/973e3a16f6dc
https://hg.mozilla.org/mozilla-central/rev/b0d319aaafbe
https://hg.mozilla.org/mozilla-central/rev/e5e68461d391
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
![]() |
Assignee | |
Updated•7 years ago
|
Component: DOM → DOM: Bindings (WebIDL)
You need to log in
before you can comment on or make changes to this bug.
Description
•