mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 04:16:16 +00:00
Added "_blank" to window.open as per danm's notification.
This commit is contained in:
parent
0e6cf27eda
commit
6dc38f96d8
@ -55,7 +55,7 @@ function toOpenWindowByType( inType, uri )
|
||||
if ( topWindow )
|
||||
topWindow.focus();
|
||||
else
|
||||
window.open(uri, "", "chrome,menubar,toolbar,resizable");
|
||||
window.open(uri, "_blank", "chrome,menubar,toolbar,resizable");
|
||||
}
|
||||
|
||||
function CycleWindow( inType, inChromeURL )
|
||||
@ -75,7 +75,7 @@ function CycleWindow( inType, inChromeURL )
|
||||
if ( topWindowOfType == null )
|
||||
{
|
||||
dump( " no windows of this type so create a new one \n");
|
||||
window.open( inChromeURL, "","chrome,menubar,toolbar,location,status,resizable" );
|
||||
window.open(inChromeURL, "_blank", "chrome,menubar,toolbar,location,status,resizable");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -118,7 +118,7 @@ function CycleWindow( inType, inChromeURL )
|
||||
else
|
||||
{
|
||||
dump("open window \n");
|
||||
window.open( inChromeURL, "","chrome,menubar,toolbar,location,status,resizable" );
|
||||
window.open( inChromeURL, "_blank","chrome,menubar,toolbar,location,status,resizable" );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user