Closed Bug 958778 Opened 10 years ago Closed 9 years ago

De-holder nsIXPConnect::GetWrappedNativePrototype()

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file, 1 obsolete file)

Once WrapNative is cleared up, that leaves GetWrappedNativePrototype, CreateSandbox and InitClassesWithNewWrappedGlobal.  HoldObject gets left behind as a shim for places that use holders on the heap.  I think that will work out okay.
Filing separate bugs for each part.
Summary: De-holder nsIXPConnect → De-holder nsIXPConnect::GetWrappedNativePrototype()
Again, this can wait for a few weeks. This one is a lot smaller than the other one.

try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b2952db5b7e8
Attachment #8624955 - Flags: review?(gkrizsanits)
Assignee: nobody → continuation
Comment on attachment 8624955 [details] [diff] [review]
De-holder nsIXPConnect::GetWrappedNativePrototype().

Review of attachment 8624955 [details] [diff] [review]:
-----------------------------------------------------------------

Same comment about the |in JSMutableHandleObject aRetVal|. If what I suggested does not work out for some reason I'm fine with whatever Bobby or Boris suggests in this case.
Attachment #8624955 - Flags: review?(gkrizsanits)
Attachment #8628003 - Flags: review?(gkrizsanits) → review+
Comment on attachment 8628003 [details] [diff] [review]
De-holder nsIXPConnect::GetWrappedNativePrototype().

Review of attachment 8628003 [details] [diff] [review]:
-----------------------------------------------------------------

Sorry I overlooked this one.

::: js/xpconnect/idl/nsIXPConnect.idl
@@ +262,5 @@
>  // For use with the service manager
>  // {CB6593E0-F9B2-11d2-BDD6-000064657374}
>  #define NS_XPCONNECT_CID \
> +{ 0xb91f1eeb, 0x2fe4, 0x44cc, \
> +  { 0x99, 0x83, 0xab, 0xcc, 0x06, 0xd6, 0x9a, 0x94 } }

You don't have to change the CID only the uuid of the interface.
https://hg.mozilla.org/mozilla-central/rev/3a3dfde50685
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Attachment #8624955 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: