зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2966333a83
Коммит
4e722a3118
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче