Bug 312353, Opening new tab doesn't set cursor in urlbar due to JS Error from reporter (aURI has no properties), patch by Karsten "Mnyromyr" D�sterloh <mnyromyr@tprac.de>, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2005-10-14 00:00:24 +00:00
Родитель d3e0b7cf5c
Коммит 49ea584e87
1 изменённых файлов: 9 добавлений и 7 удалений

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

@ -50,14 +50,16 @@ var reporterListener = {
var broadcaster = document.getElementById("reporterItemsBroadcaster");
var isEnabled = false;
switch (aURI.scheme) {
case "http":
case "https":
case "ftp":
case "gopher":
isEnabled = true;
if (aURI instanceof Components.interfaces.nsIURI) {
switch (aURI.scheme) {
case "http":
case "https":
case "ftp":
case "gopher":
isEnabled = true;
}
}
broadcaster.setAttribute("disabled", !isEnabled);
},