зеркало из 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()
|
function middleMousePaste()
|
||||||
{
|
{
|
||||||
var url = readFromClipboard();
|
var url = readFromClipboard();
|
||||||
//dump ("Loading URL on clipboard: '" + url + "'; length = " + url.length + "\n");
|
if (url) {
|
||||||
if (url) {
|
loadShortcutOrURI(url);
|
||||||
var urlBar = document.getElementById("urlbar");
|
return true;
|
||||||
urlBar.value = url;
|
|
||||||
BrowserLoadURL();
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,9 +165,7 @@ var contentAreaDNDObserver = {
|
||||||
return true;
|
return true;
|
||||||
switch (document.firstChild.getAttribute('windowtype')) {
|
switch (document.firstChild.getAttribute('windowtype')) {
|
||||||
case "navigator:browser":
|
case "navigator:browser":
|
||||||
var urlBar = document.getElementById("urlbar");
|
loadShortcutOrURI(url);
|
||||||
urlBar.value = url;
|
|
||||||
BrowserLoadURL();
|
|
||||||
break;
|
break;
|
||||||
case "navigator:view-source":
|
case "navigator:view-source":
|
||||||
viewSource(url);
|
viewSource(url);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче