зеркало из https://github.com/mozilla/pjs.git
BrowserViewSource now brings up viewSource.xul instead of navigator.xul. Navigator.xul no longer supports coming up in viewSource mode. Using the same window for such a thing causes unneeded slow down and complexity.
This commit is contained in:
Родитель
5e239d84f5
Коммит
8304436808
|
@ -229,17 +229,6 @@ function Shutdown()
|
|||
appCore.stop();
|
||||
}
|
||||
dump( "Loading page specified via openDialog\n" );
|
||||
dump("Check if a view source window \n");
|
||||
if( window.arguments[1]=="view-source" )
|
||||
{
|
||||
dump(" A view source window \n");
|
||||
var element = document.getElementById("main-window");
|
||||
|
||||
var preface = element.getAttribute("viewsourcetitlepreface");
|
||||
element.setAttribute( "titlepreface", preface );
|
||||
appCore.isViewSource = true;
|
||||
element.setAttribute("windowtype","Browser:view-source");
|
||||
}
|
||||
appCore.loadUrl( window.arguments[0] );
|
||||
}
|
||||
|
||||
|
@ -962,12 +951,10 @@ function BrowserEditBookmarks()
|
|||
function BrowserViewSource()
|
||||
{
|
||||
dump("BrowserViewSource(); \n ");
|
||||
// Use a browser window to view source
|
||||
window.openDialog( "chrome://navigator/content/",
|
||||
"_blank",
|
||||
"chrome,menubar,status,dialog=no,resizable",
|
||||
window.content.location,
|
||||
"view-source" );
|
||||
window.openDialog( "chrome://navigator/content/viewSource.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no",
|
||||
window.content.location);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче