Closed Bug 149715 Opened 23 years ago Closed 23 years ago

do_GetInterface() is not safe to use from embedding

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: dougt, Assigned: dougt)

Details

Attachments

(1 file)

something like: nsCOMPtr<nsIClipboardCommands> clipCmds = do_GetInterface(webBrowser); is not safe from an embedding application as this act caused a link against the XPCOM library. It is much safer if we moved nsIInterfaceRequestor.cpp to the glue library so that an embedding application can fulfill the link dependency without having to link to xpcom. We should have done this when we moved the header and idl file to glue.
this patch will be much smaller if we get seawood to do a raw cvs move.
Comment on attachment 86686 [details] [diff] [review] Moves nsIInterfaceRequestor.cpp to glue. nsIFoo.cpp is a WRONG WRONG WRONG name. WRONG WRONG DOUBLE PLUS UNGOOD WRONG. OK, I feel better now. Thanks, dougt. sr=shaver.
Attachment #86686 - Flags: superreview+
Comment on attachment 86686 [details] [diff] [review] Moves nsIInterfaceRequestor.cpp to glue. r=darin
Attachment #86686 - Flags: review+
Status: NEW → RESOLVED
Closed: 23 years ago
Keywords: mozilla1.0.1
Resolution: --- → FIXED
landed the fix on the trunk last night.
Comment on attachment 86686 [details] [diff] [review] Moves nsIInterfaceRequestor.cpp to glue. Please land this on the 1.0.1 branch. Once there, remove the "mozilla1.0.1+" keyword, and add the "fixed1.0.1"
Attachment #86686 - Flags: approval+
Keywords: fixed1.0.1
Keywords: mozilla1.0.1+
Verified FIXED using LXR for both trunk and MOZILLA_1_0_BRANCH.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: