зеркало из https://github.com/mozilla/pjs.git
Fix callers of old BrowserLoadURL() to directly use loadShortcutOrURI(aURL). bug=61808, r=blake, a=ben
This commit is contained in:
Родитель
3eebd6a924
Коммит
1cc4019000
|
@ -164,13 +164,10 @@
|
|||
|
||||
function middleMousePaste()
|
||||
{
|
||||
var url = readFromClipboard();
|
||||
//dump ("Loading URL on clipboard: '" + url + "'; length = " + url.length + "\n");
|
||||
if (url) {
|
||||
var urlBar = document.getElementById("urlbar");
|
||||
urlBar.value = url;
|
||||
BrowserLoadURL();
|
||||
return true;
|
||||
var url = readFromClipboard();
|
||||
if (url) {
|
||||
loadShortcutOrURI(url);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -165,9 +165,7 @@ var contentAreaDNDObserver = {
|
|||
return true;
|
||||
switch (document.firstChild.getAttribute('windowtype')) {
|
||||
case "navigator:browser":
|
||||
var urlBar = document.getElementById("urlbar");
|
||||
urlBar.value = url;
|
||||
BrowserLoadURL();
|
||||
loadShortcutOrURI(url);
|
||||
break;
|
||||
case "navigator:view-source":
|
||||
viewSource(url);
|
||||
|
|
Загрузка…
Ссылка в новой задаче