Closed
Bug 1270349
Opened 9 years ago
Closed 9 years ago
Implement [LegacyUnenumerableNamedProperties] in IDL
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
(Whiteboard: btpp-active)
Attachments
(5 files)
|
5.16 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
5.40 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
1.53 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
27.02 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
35.18 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
See https://github.com/heycam/webidl/pull/91
The idea is that instead of asking the object on a per-name basis whether it's enumerable or not, we just annotate in the IDL whether the named props are enumerable. Then we can have codegen do the right thing and I think we can get rid of both NameIsEnumerable() on various classes and the flags argument to GetSupportedNames.
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8749047 -
Flags: review?(peterv)
| Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8749048 -
Flags: review?(peterv)
| Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8749049 -
Flags: review?(peterv)
| Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8749051 -
Flags: review?(peterv)
| Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8749053 -
Flags: review?(peterv)
Updated•9 years ago
|
Whiteboard: btpp-active
Updated•9 years ago
|
Attachment #8749047 -
Flags: review?(peterv) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8749048 [details] [diff] [review]
part 2. Add [LegacyUnenumerableNamedProperties] to the interfaces that specify it in DOM and HTML
Review of attachment 8749048 [details] [diff] [review]:
-----------------------------------------------------------------
Window seems to be missing though?
Attachment #8749048 -
Flags: review?(peterv) → review+
Updated•9 years ago
|
Attachment #8749049 -
Flags: review?(peterv) → review+
Updated•9 years ago
|
Attachment #8749051 -
Flags: review?(peterv) → review+
| Assignee | ||
Comment 7•9 years ago
|
||
> Window seems to be missing though?
Yeah, we don't codegen the proxy for Window, because it's the named properties handler instead.
I could add it there, and I guess I should, but it won't do anything.
https://hg.mozilla.org/integration/mozilla-inbound/rev/c13bb8a0b16b
https://hg.mozilla.org/integration/mozilla-inbound/rev/a3361d3f04b3
https://hg.mozilla.org/integration/mozilla-inbound/rev/4a29d3bb1b6b
https://hg.mozilla.org/integration/mozilla-inbound/rev/db1255660184
https://hg.mozilla.org/integration/mozilla-inbound/rev/29ee431f3921
Comment 9•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c13bb8a0b16b
https://hg.mozilla.org/mozilla-central/rev/a3361d3f04b3
https://hg.mozilla.org/mozilla-central/rev/4a29d3bb1b6b
https://hg.mozilla.org/mozilla-central/rev/db1255660184
https://hg.mozilla.org/mozilla-central/rev/29ee431f3921
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment 10•9 years ago
|
||
Comment on attachment 8749053 [details] [diff] [review]
part 5. Use LegacyUnenumerableNamedProperties instead of passing flags to GetSupportedNames to determine whether named props on DOM proxies should be reflected in ownPropertyKeys
Review of attachment 8749053 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/nsMimeTypeArray.cpp
@@ +130,5 @@
> return mMimeTypes.Length();
> }
>
> void
> +nsMimeTypeArray::GetSupportedNames(nsTArray< nsString >& aRetval)
Maybe remove the spaces inside <> here too?
Attachment #8749053 -
Flags: review?(peterv) → review+
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
| bugherder | ||
Comment 13•9 years ago
|
||
Either this bug or bug 1268047 regressed being able to upload photos to dpreview.com photography community forums. See bug 1310414.
| Assignee | ||
Comment 14•9 years ago
|
||
That would have been bug 1268047.
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•