adding a new timer-driven function to open a new navigator window. bug 24903 r=ben

This commit is contained in:
danm%netscape.com 2006-09-14 05:47:23 +00:00
Родитель 3c52ebf2ea
Коммит 079db6d4d5
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -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 ) {