mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
Fix 43119 -- make the Page Info dialog pretty, and 49187 -- allow copy/drag in view source. r=ben
This commit is contained in:
parent
36f246c1d3
commit
88f2fe8ca8
@ -1302,7 +1302,6 @@ function BrowserChangeTextSize(newSize)
|
||||
|
||||
function BrowserViewSource()
|
||||
{
|
||||
dump("BrowserViewSource(); \n ");
|
||||
var docCharset = null;
|
||||
|
||||
try
|
||||
@ -1310,7 +1309,7 @@ function BrowserChangeTextSize(newSize)
|
||||
var wnd = document.commandDispatcher.focusedWindow;
|
||||
if (window == wnd) wnd = window._content;
|
||||
docCharset = "charset="+ wnd.document.characterSet;
|
||||
dump("*** Current document charset: " + docCharset + "\n");
|
||||
// dump("*** Current document charset: " + docCharset + "\n");
|
||||
}
|
||||
|
||||
catch(ex)
|
||||
@ -1341,14 +1340,13 @@ function BrowserChangeTextSize(newSize)
|
||||
dump("*** Failed to preset charset menu for the view-source window\n");
|
||||
window.openDialog( "chrome://navigator/content/viewSource.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no",
|
||||
"scrollbars,resizable,chrome,dialog=no",
|
||||
window._content.location);
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserPageInfo()
|
||||
{
|
||||
dump("BrowserPageInfo(); \n ");
|
||||
var charsetArg = new String();
|
||||
|
||||
if (appCore != null) {
|
||||
@ -1374,7 +1372,7 @@ function BrowserChangeTextSize(newSize)
|
||||
|
||||
} else {
|
||||
//if everythig else fails, forget about the charset
|
||||
window.openDialog( "chrome://navigator/content/viewSource.xul",
|
||||
window.openDialog( "chrome://navigator/content/pageInfo.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no",
|
||||
window._content.location);
|
||||
|
Loading…
Reference in New Issue
Block a user