Closed Bug 1270349 Opened 9 years ago Closed 9 years ago

Implement [LegacyUnenumerableNamedProperties] in IDL

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

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)

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.
Blocks: 1270364
Blocks: 1270366
Blocks: 1270369
Whiteboard: btpp-active
Attachment #8749047 - Flags: review?(peterv) → review+
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+
Attachment #8749049 - Flags: review?(peterv) → review+
Attachment #8749051 - Flags: review?(peterv) → review+
> 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.
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+
Either this bug or bug 1268047 regressed being able to upload photos to dpreview.com photography community forums. See bug 1310414.
That would have been bug 1268047.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: