Closed Bug 273319 Opened 21 years ago Closed 21 years ago

[FIXr]Eliminate nsIWebShell and nsIWebShellContainer

Categories

(Core :: DOM: Navigation, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha6

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file, 2 obsolete files)

Once bug 272471 is fixed, it should be pretty simple to eliminate nsIWebShell and nsIWebShellContainer. The comments that bug's patch adds to nsIWebShell describe what needs to be done.
Priority: -- → P1
Target Milestone: --- → mozilla1.8alpha6
We'll want to kill nsIWebShellServices too, I think. Probably a separate bug...
Another note to self -- nsIXULCommand seems unused.
I field bug 273812 on fixing the mac widget code to not use nsIDocShell (I'm switching it to that from nsIWebShell).
Attached patch Patch (obsolete) — Splinter Review
Attachment #168318 - Attachment is obsolete: true
Comment on attachment 168319 [details] [diff] [review] With nsIWebShell.h actually removed What do you guys think? Basic changes are: 1) Switch things like viewer and mac menu code to nsIDocShell instead. 2) Remove some dead code in viewer. 3) Switch mailnews off of nsIWebShellContainer. I did verify that cached compose windows work fine in the build with this patch.
Attachment #168319 - Flags: superreview?(jst)
Attachment #168319 - Flags: review?(cbiesinger)
Summary: Eliminate nsIWebShell and nsIWebShellContainer → [FIX]Eliminate nsIWebShell and nsIWebShellContainer
Comment on attachment 168319 [details] [diff] [review] With nsIWebShell.h actually removed Very nice cleanup! sr=jst
Attachment #168319 - Flags: superreview?(jst) → superreview+
Comment on attachment 168319 [details] [diff] [review] With nsIWebShell.h actually removed xpcom/tests/SizeTest06.cpp a kinda pointless change, this won't compile anyway :-) but sure. webshell/tests/viewer/nsBrowserWindow.cpp 9 -// nsAutoString theString(theURL); -// mApp->ViewSource(theString); //XXX Find out how the string is allocated, and perhaps delete it... unsure what the comment refers to, but maybe to theString? in which case, it should be deleted together with the commented-out code... stopping before xpfe/appshell/src/nsWebShellWindow.cpp, will finish the review tomorrow...
Comment on attachment 168319 [details] [diff] [review] With nsIWebShell.h actually removed (I only skimmed the mac menu changes, assuming they are basically s/DocShell/WebShell/g) +nsWebShellWindow::GetDocShell(nsIDocShell *& aDocShell) hmm, maybe that signature should be changed at some point to use the more common nsIDocShell** parameter type
Attachment #168319 - Flags: review?(cbiesinger) → review+
webshellwindow may need extra smacking too.... I'd rather move us to nsWebBrowser and kill off webshellwindow, really. I'll land this when I get back.
Summary: [FIX]Eliminate nsIWebShell and nsIWebShellContainer → [FIXr]Eliminate nsIWebShell and nsIWebShellContainer
Attached patch Updated to tipSplinter Review
Attachment #168319 - Attachment is obsolete: true
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: