Closed
Bug 1528383
Opened 7 years ago
Closed 7 years ago
Consider unconditionally supporting `wrappedJSObject` on wrapped JS objects
Categories
(Core :: XPConnect, enhancement, P3)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla67
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
Details
Attachments
(1 file)
Right now XPCOM objects implemented in JS need to explicitly write this.wrappedJSObject = this; in their ctor to support .wrappedJSObject on their wrapped object. It might be nice for ergonomics of using some APIs, especially those taking and returning nsISupports, to simply always support that getter.
| Assignee | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Assignee: nobody → nika
Priority: -- → P2
| Assignee | ||
Updated•7 years ago
|
Priority: P2 → P3
Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8e58294baf24
Allow getting 'wrappedJSObject' without the attribute being defined, r=bholley
Comment 3•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox67:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Comment 4•7 years ago
|
||
https://hg.mozilla.org/projects/oak/rev/8e58294baf24a304a10a1ac46607abc7711ad0a3
Bug 1528383 - Allow getting 'wrappedJSObject' without the attribute being defined, r=bholley
You need to log in
before you can comment on or make changes to this bug.
Description
•