[Darn it Ben, stop breaking stuff.] If metaKey is down, open URL in new browser window.
git-svn-id: svn://10.0.0.236/trunk@76956 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -84,18 +84,26 @@ function OpenBookmarkURL(event, node, datasources)
|
||||
return(false);
|
||||
}
|
||||
|
||||
// If we don't have a browser window or metaKey is down,
|
||||
// then open a new browser window
|
||||
if (!window._content || event.metaKey)
|
||||
if (!window._content)
|
||||
{
|
||||
const WM_PROGID = "component://netscape/rdf/datasource?name=window-mediator";
|
||||
var wm = nsJSComponentManager.getService(WM_PROGID, "nsIWindowMediator");
|
||||
if (wm) {
|
||||
navWindow = wm.getMostRecentWindow("navigator:browser");
|
||||
if (navWindow)
|
||||
navWindow.appCore.loadUrl(url); // it pains me to type this.
|
||||
}
|
||||
else
|
||||
const WM_PROGID = "component://netscape/rdf/datasource?name=window-mediator";
|
||||
var wm = nsJSComponentManager.getService(WM_PROGID, "nsIWindowMediator");
|
||||
if (wm)
|
||||
{
|
||||
navWindow = wm.getMostRecentWindow("navigator:browser");
|
||||
if (navWindow)
|
||||
{
|
||||
navWindow.appCore.loadUrl(url);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url );
|
||||
}
|
||||
}
|
||||
else if (event.metaKey)
|
||||
{
|
||||
// if metaKey is down, open in a new browser window
|
||||
window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url );
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user