Open Bug 2011056 Opened 8 days ago Updated 11 hours ago

Handle OwnPropertyKeys according to the spec

Categories

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

defect

Tracking

()

ASSIGNED

People

(Reporter: jkt, Assigned: jkt, NeedInfo)

References

Details

Attachments

(1 file)

Per the WebIDL specification, [[OwnPropertyKeys]] for the named properties object should return only @@toStringTag. Named properties should be resolved via [[GetOwnProperty]] but not enumerated as own keys.

Spec reference: https://webidl.spec.whatwg.org/#named-properties-object

Currently, WindowNamedPropertiesHandler::ownPropNames enumerates child browsing context names and document-exposed names when JSITER_HIDDEN is set. This is incorrect per spec.

See in https://bugzilla.mozilla.org/show_bug.cgi?id=1730243 test fails.

Assignee: nobody → jonathan
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P2
See Also: → 1712180

I think you'll have to send this to lando, I don't have l3 access anymore. Thanks for the review!

Flags: needinfo?(tschuster)
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/69888f58354c https://hg.mozilla.org/integration/autoland/rev/354c926233a2 Revert "Bug 2011056 - Handle OwnPropertyKeys according to the spec r=tschuster" for causing failures at test_window_element_enumeration.html.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: