Closed
Bug 68187
Opened 24 years ago
Closed 24 years ago
nsIWebBrowser::AddBrowserListener() needs to take an nsIWeakReference
Categories
(Core Graveyard :: Embedding: APIs, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9
People
(Reporter: jud, Assigned: jud)
Details
Attachments
(6 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
right now we have the impl requirement that the listener impl nsIWeakReference.
this should be reflected by replacing nsISupports w/ nsIWeakReference in the
method signature.
Assignee | ||
Updated•24 years ago
|
Severity: normal → major
Priority: -- → P1
Target Milestone: --- → mozilla0.9
Assignee | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
This all looks good, except that you should prefer direct-initialization over
copy-initialization, that is, prefer constructions
nsCOMPtr<nsIWeakReference> listener(do_QueryInterface(...));
// ...
nsCOMPtr<nsIWeakReference> thisListener(do_QueryInterface(listener));
over the form with '='. After you fix that, sr=scc.
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
Assignee | ||
Comment 5•24 years ago
|
||
I've updated the patches as the direct QI to a nsIWeakReference was failing. I
needed to be using NS_GetWeakReference (which I now am). I've also added a patch
to viewer so it can use the new mechanism as well.
Comment 6•24 years ago
|
||
More evidence, I guess, that I really need to provide a |do_GetWeakReference|.
This still isn't right. To get a weak reference you need to say
nsCOMPtr<nsIWeakReference> weakling( dont_AddRef(NS_GetWeakReference(...)) );
Assignee | ||
Comment 7•24 years ago
|
||
Assignee | ||
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
Now I buy it. One of us should file a bug, though, that |do_GetWeakReference|
is wanted. sr=scc
Comment 10•24 years ago
|
||
Comment 11•24 years ago
|
||
The patch to CBrowserShell.cpp in patch id=25206 didn't quite compile - now it does.
Assignee | ||
Comment 12•24 years ago
|
||
thanks for the mac check conrad. these changes (including conrad's mods) are in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 13•24 years ago
|
||
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
Comment 14•24 years ago
|
||
in nsIWebBrowser.idl, we see that the listener accepts a weak reference:
void addWebBrowserListener(in nsIWeakReference aListener, in nsIIDRef aIID);
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•