зеркало из https://github.com/mozilla/gecko-dev.git
Bug 102155: javascript error in contentAreaUtils.js. Patch by Mike Young <youngfam@nni.com>, r=caillon@returnzero.com, sr=jag
This commit is contained in:
Родитель
8f3e0acdc6
Коммит
d32fec141a
|
@ -97,18 +97,12 @@ function openNewTabWith(url)
|
|||
urlSecurityCheck(url, document);
|
||||
var wintype = document.firstChild.getAttribute('windowtype');
|
||||
|
||||
// if and only if the current window is a browser window and it has a document with a character
|
||||
// set, then extract the current charset menu setting from the current document and use it to
|
||||
// initialize the new browser window...
|
||||
if (window && (wintype == "navigator:browser")) {
|
||||
var browser = getBrowser();
|
||||
var t = browser.addTab(url); // open link in new tab
|
||||
if (pref && !pref.getBoolPref("browser.tabs.loadInBackground"))
|
||||
browser.selectedTab = t;
|
||||
}
|
||||
|
||||
// Fix new window.
|
||||
newWin.saveFileAndPos = true;
|
||||
}
|
||||
|
||||
function findParentNode(node, parentNode)
|
||||
|
|
Загрузка…
Ссылка в новой задаче