Open
Bug 718543
Opened 13 years ago
Updated 2 years ago
SpecialPowers wrapper should preserve identity
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
REOPENED
mozilla13
People
(Reporter: bholley, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
See bug 702353 comment 10. We can't do this reliably until we fix bug 673468.
Reporter | ||
Comment 1•13 years ago
|
||
Attaching the patch for posterity. Should be ready to land once weakmaps do the right thing in the wrapper case.
Reporter | ||
Updated•13 years ago
|
Attachment #589073 -
Attachment is patch: true
Reporter | ||
Comment 2•13 years ago
|
||
Comment on attachment 589073 [details] [diff] [review]
patch v1
Looks like the dependent bug was fixed. Flagging mrbkap for review.
Attachment #589073 -
Flags: review?(mrbkap)
Updated•13 years ago
|
Attachment #589073 -
Flags: review?(mrbkap) → review+
Reporter | ||
Comment 3•13 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=6368d51f5470
Reporter | ||
Comment 4•13 years ago
|
||
Looks good - pushed to m-i:
http://hg.mozilla.org/integration/mozilla-inbound/rev/f9145dab4be9
Assignee: nobody → bobbyholley+bmo
Flags: in-testsuite+
Target Milestone: --- → mozilla13
Comment 5•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Version: unspecified → Trunk
Reporter | ||
Comment 6•13 years ago
|
||
Backed out due to bug 731442:
http://hg.mozilla.org/mozilla-central/rev/75fcd465d506
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 7•13 years ago
|
||
I don't know if this bug or the other bug is the place to discuss that, but basically the problem is that only native classes that are wrapper caches that preserve their wrapper can be used as weak map keys.
The warning in question is at this line:
http://mxr.mozilla.org/mozilla-central/source/js/src/jsweakmap.cpp#292
The actual callback function is here:
http://mxr.mozilla.org/mozilla-central/source/js/xpconnect/src/XPCJSRuntime.cpp#1996
Notice that we don't actually allow all wrapper cache classes as weak map keys. This is because there are some wrapper caches that don't preserve their wrapper. Right now, we only allow nsINodes because that seemed like the most common thing people would use.
Reporter | ||
Updated•9 years ago
|
Assignee: bobbyholley → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•