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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user