зеркало из https://github.com/mozilla/pjs.git
adding a new timer-driven function to open a new navigator window. bug 24903 r=ben
This commit is contained in:
Родитель
3c52ebf2ea
Коммит
079db6d4d5
|
@ -621,7 +621,15 @@ function RevealSearchPanel()
|
|||
function BrowserOpenWindow()
|
||||
{
|
||||
//opens a window where users can select a web location to open
|
||||
window.openDialog( "chrome://navigator/content/openLocation.xul", "_blank", "chrome,modal", appCore );
|
||||
window.openDialog( "chrome://navigator/content/openLocation.xul", "_blank", "chrome", appCore );
|
||||
}
|
||||
|
||||
/* Called from the openLocation dialog. This allows that dialog to instruct
|
||||
its opener to open a new window and then step completely out of the way.
|
||||
Anything less byzantine is causing horrible crashes, rather believably,
|
||||
though oddly only on Linux. */
|
||||
function delayedOpenWindow(chrome,flags,url) {
|
||||
setTimeout("window.openDialog('"+chrome+"','_blank','"+flags+"','"+url+"')", 10);
|
||||
}
|
||||
|
||||
function createInstance( progid, iidName ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче