GetContentViewer from the nsIDocShell instead of nsIWebShell
git-svn-id: svn://10.0.0.236/branches/travisWebshell_20000308_BRANCH@62507 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
809000e98e
commit
b4082ec38d
@ -1243,7 +1243,7 @@ nsWebShellWindow::OnEndDocumentLoad(nsIDocumentLoader* loader,
|
||||
// register as document listener
|
||||
// this is needed for menus
|
||||
nsCOMPtr<nsIContentViewer> cv;
|
||||
mWebShell->GetContentViewer(getter_AddRefs(cv));
|
||||
mDocShell->GetContentViewer(getter_AddRefs(cv));
|
||||
if (cv) {
|
||||
|
||||
nsCOMPtr<nsIDocumentViewer> docv(do_QueryInterface(cv));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user