Closed
Bug 932320
Opened 11 years ago
Closed 11 years ago
Use JS_DefineProperty for replaceable properties
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
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)
1.62 KB,
patch
|
bzbarsky
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | 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)
Comment 1•11 years ago
|
||
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+
Assignee | ||
Comment 2•11 years ago
|
||
Yes, we're hitting this with Xrays. But at one point I accidentally made Window a proxy too, and hit it there.
Comment 3•11 years ago
|
||
Given bug 933513 we'll need to backport this to Aurora 27 too, right?
status-firefox27:
--- → affected
status-firefox28:
--- → affected
tracking-firefox27:
--- → ?
tracking-firefox28:
--- → ?
Assignee | ||
Comment 4•11 years ago
|
||
Updated•11 years ago
|
status-firefox26:
--- → unaffected
Keywords: regression
Comment 5•11 years ago
|
||
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
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Assignee | ||
Comment 7•11 years ago
|
||
(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
Assignee | ||
Comment 8•11 years ago
|
||
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?
Assignee | ||
Comment 9•11 years ago
|
||
(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.
Updated•11 years ago
|
Attachment #824029 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 10•11 years ago
|
||
Updated•11 years ago
|
Whiteboard: [qa-]
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
•