Closed Bug 1528383 Opened 6 years ago Closed 6 years ago

Consider unconditionally supporting `wrappedJSObject` on wrapped JS objects

Categories

(Core :: XPConnect, enhancement, P3)

enhancement

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: nobody → nika
Priority: -- → P2
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
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
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.

Attachment

General

Created:
Updated:
Size: