When bringing up the View Source window, set the title and set the mode on the docShell.

git-svn-id: svn://10.0.0.236/trunk@62852 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
2000-03-14 04:39:46 +00:00
parent 4650052cfd
commit ae2697ef17

View File

@@ -773,6 +773,8 @@ nsViewerApp::ViewSource(nsString& aURL)
}
bw->SetApp(this);
bw->Init(mAppShell, nsRect(0, 0, 620, 400), PRUint32(~0), mAllowPlugins);
bw->mDocShell->SetViewMode(nsIDocShell::viewSource);
bw->SetTitle(L"View Source");
bw->Show();
bw->GoTo(aURL.GetUnicode(),"view-source");
NS_RELEASE(bw);