mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Fix for 102066, new tab in open location dialog, r=bryner, sr=brendan
This commit is contained in:
parent
952f12e121
commit
124f1946ed
@ -46,7 +46,6 @@ var gBrowser = null;
|
||||
// focused frame URL
|
||||
var gFocusedURL = null;
|
||||
|
||||
|
||||
/**
|
||||
* We can avoid adding multiple load event listeners and save some time by adding
|
||||
* one listener that calls all real handlers.
|
||||
@ -762,6 +761,13 @@ function delayedOpenWindow(chrome,flags,url)
|
||||
setTimeout("openDialog('"+chrome+"','_blank','"+flags+"','"+url+"')", 10);
|
||||
}
|
||||
|
||||
/* Required because the tab needs time to set up its content viewers and get the load of
|
||||
the URI kicked off before becoming the active content area. */
|
||||
function delayedOpenTab(url)
|
||||
{
|
||||
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
|
||||
}
|
||||
|
||||
function BrowserOpenFileWindow()
|
||||
{
|
||||
// Get filepicker component.
|
||||
|
Loading…
x
Reference in New Issue
Block a user