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 2000-06-13 23:21:37 +00:00
Родитель a21d3a445a
Коммит e9b4ff0cee
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();
}