42306: remove hacky workaround for middle mouse handling, no longer

needed; event bubbling now happens correctly.  r=saari,mjudge; a=beppe
This commit is contained in:
akkana%netscape.com 2006-09-14 05:50:54 +00:00
Родитель 2966333a83
Коммит 4e722a3118
1 изменённых файлов: 9 добавлений и 13 удалений

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

@ -1197,19 +1197,15 @@ function BrowserEditBookmarks()
if (tagName) tagName = tagName.toLowerCase();
var type = target.type;
if (type) type = type.toLowerCase();
if (!((tagName == "input"
&& (type == "" || type == "text" || type == "password"))
|| tagName == "textarea"))
var url = readFromClipboard();
//dump ("Loading URL on clipboard: '" + url + "'; length = " + url.length + "\n");
if (url.length > 0)
{
var url = readFromClipboard();
//dump ("Loading URL on clipboard: '" + url + "'; length = " + url.length + "\n");
if (url.length > 0)
{
var urlBar = document.getElementById("urlbar");
urlBar.value = url;
BrowserLoadURL();
event.preventBubble();
}
var urlBar = document.getElementById("urlbar");
urlBar.value = url;
BrowserLoadURL();
event.preventBubble();
}
}
}
@ -1480,4 +1476,4 @@ function dumpMemoryLeaks() {
if (leakDetector != null)
leakDetector.dumpLeaks();
}