Closed Bug 932320 Opened 11 years ago Closed 11 years ago

Use JS_DefineProperty for replaceable properties

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28
Tracking Status
firefox26 --- unaffected
firefox27 + fixed
firefox28 + fixed

People

(Reporter: peterv, Assigned: peterv)

References

Details

(Keywords: regression, Whiteboard: [qa-])

Attachments

(1 file)

Attached patch v1 (deleted) — Splinter Review
js_DefineOwnProperty should really be used to implement DefineOwnProperty, using it for replaceable properties fails for proxies (like DOM binding proxies or Xrays) because we end up in some code that expects the PropertyDescriptor to have been created from a JS object that was passed in. The generated code for replaceable properties creates its own PropertyDescriptor, not passed in from JS. JS_DefineProperty works equally well here.
Attachment #824029 - Flags: review?(bzbarsky)
Blocks: 932322
Comment on attachment 824029 [details] [diff] [review] v1 r=me, though I wonder how this came up.... Where do we have replaceable properties on a proxy, exactly? Note that the Window binding is NOT a proxy. Was the issue xrays?
Attachment #824029 - Flags: review?(bzbarsky) → review+
Yes, we're hitting this with Xrays. But at one point I accidentally made Window a proxy too, and hit it there.
Blocks: 933513
Given bug 933513 we'll need to backport this to Aurora 27 too, right?
either this patch or the patch on bug 932315 caused a large tp5o shutdown regression on windows xp: https://groups.google.com/forum/#!topic/mozilla.dev.tree-management/r9iehVDynmM
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
(In reply to Joel Maher (:jmaher) from comment #5) > either this patch or the patch on bug 932315 caused a large tp5o shutdown > regression on windows xp: Backouts on try seem to implicate bug 932315, which is pretty weird. But backing out just this patch didn't change the numbers significantly: Both backed out: https://tbpl.mozilla.org/?tree=Try&rev=5a846b15ad15 Just this backed out: https://tbpl.mozilla.org/?tree=Try&rev=ccc02d51f76b Nothing backed out: https://tbpl.mozilla.org/?tree=Try&rev=9571d819903a
Comment on attachment 824029 [details] [diff] [review] v1 [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 932322 User impact if declined: broken addons and websites Testing completed (on m-c, etc.): landed on m-c Risk to taking this patch (and alternatives if risky): low risk String or IDL/UUID changes made by this patch: none
Attachment #824029 - Flags: approval-mozilla-aurora?
(In reply to Peter Van der Beken [:peterv] from comment #8) > Comment on attachment 824029 [details] [diff] [review] > Bug caused by (feature/regressing bug #): bug 932322 Er, that was meant to be bug 918345.
Attachment #824029 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Whiteboard: [qa-]
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: