Closed Bug 74801 Opened 23 years ago Closed 23 years ago

nsWBContentListener should go away

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: jud, Assigned: jud)

References

Details

(Keywords: memory-footprint)

Attachments

(3 files)

Currently nsWebBrowser uses an intermediary nsIURIContentListener to hook up the
embeddor w/ the underlying nsIURIContentListener chain. This layer is extraneous
as the embeddor can be hooked directly up to the underlying
nsIURIContentListener (currently nsDSContentListener). The existing
nsWBContentListener is doing nothing more than fowarding the exact same calls
that the underlying nsDSContentListener is forwarding. The existing
nsWBContentListener was added due to a regression last summer and the regression
has since been fixed.
Blocks: 64833
Keywords: footprint
Target Milestone: --- → mozilla0.9
Keywords: patch
r/sr=blizzard
Assignee: valeski → adamlock
oops
Assignee: adamlock → valeski
Good. The WBURIContentListener is, in most methods that it impls, just dead
wood. Except in IsPreferred(), where it actually does something it does the
wrong thing (says it's not preferred for text/plain) r=ccarlen
fix is in. thanks all.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
There are some lingering bugs from this checkin.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
The call down to the docshell has to get a GetInterface, not a QueryInterface. 
Because of that the call can return nsnull so it doesn't require an assertion. 
In the case where the GetInterface() to the docshell returns null the setter
will return NS_ERROR_FAILURE.  Maybe it should return NS_ERROR_NO_INTERFACE?
n, I like the NS_ERROR_FAILURE return. NO_INTERFACE in these methods, to me, is
more info than the caller should see.

*thanks* for finding this.

r=valeski
I went ahead and checked this in. thanks blizzard.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
No problem.
*** Bug 75101 has been marked as a duplicate of this bug. ***
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
no trace of nsWBContentListener or WBURIContentListener in lxr.mozilla.org. 
Status: RESOLVED → VERIFIED
No longer blocks: 64833
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: