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:
jaggernaut%netscape.com 2002-01-02 11:56:07 +00:00
Родитель 8f3e0acdc6
Коммит d32fec141a
1 изменённых файлов: 3 добавлений и 9 удалений

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

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