зеркало из https://github.com/mozilla/pjs.git
Bug 697117 - Clean up some errors found at runtime [r=lucasr]
This commit is contained in:
Родитель
92d3555e3f
Коммит
75e5f84cca
|
@ -819,7 +819,7 @@ abstract public class GeckoApp
|
|||
String faviconUrl = url.getProtocol() + "://" + url.getAuthority() + "/favicon.ico";
|
||||
new DownloadFaviconTask().execute(faviconUrl, "" + tabId);
|
||||
} catch (MalformedURLException e) {
|
||||
Log.d(LOG_FILE_NAME, "Error loading favicon: " + e);
|
||||
// Optional so not a real error
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -479,7 +479,17 @@ var BrowserEventHandler = {
|
|||
}
|
||||
|
||||
case "DOMTitleChanged": {
|
||||
if (!aEvent.isTrusted)
|
||||
return;
|
||||
|
||||
let contentWin = aEvent.target.defaultView;
|
||||
if (contentWin != contentWin.top)
|
||||
return;
|
||||
|
||||
let browser = BrowserApp.getBrowserForDocument(aEvent.target);
|
||||
if (!browser)
|
||||
return;
|
||||
|
||||
let tabID = BrowserApp.getTabForBrowser(browser).id;
|
||||
sendMessageToJava({
|
||||
gecko: {
|
||||
|
|
|
@ -30,7 +30,9 @@ BrowserCLH.prototype = {
|
|||
let urlParam = "about:home";
|
||||
try {
|
||||
urlParam = aCmdLine.handleFlagWithParam("remote", false);
|
||||
} catch (e) { dump("" + e); }
|
||||
} catch (e) {
|
||||
// Optional so not a real error
|
||||
}
|
||||
dump("fs_handle: " + urlParam);
|
||||
try {
|
||||
let urifixup = Cc["@mozilla.org/docshell/urifixup;1"].getService(Ci.nsIURIFixup);
|
||||
|
|
Загрузка…
Ссылка в новой задаче