Rewrite XRemote code. It sucks less now. Fixes bugs 62250, 66543, 84239, 89911, 90580, 94289, 98764. r=jag, sr=alecf

This commit is contained in:
blizzard%redhat.com 2006-07-29 05:38:48 +00:00
Родитель b1f8acd519
Коммит 7bbb8073c5
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -41,7 +41,9 @@ function onLoad()
dialog.openEditWindow = document.getElementById("editWindow");
dialog.bundle = document.getElementById("openLocationBundle");
browser = window.arguments[0];
if ("arguments" in window && window.arguments.length >= 1)
browser = window.arguments[0];
if (!browser) {
// No browser supplied - we are calling from Composer
dialog.openAppList.selectedItem = dialog.openEditWindow;
@ -163,4 +165,5 @@ function useUBHistoryItem(aMenuItem)
{
var urlbar = document.getElementById("dialog.input");
urlbar.value = aMenuItem.getAttribute("label");
}
}