зеркало из https://github.com/mozilla/gecko-dev.git
Bug 677975 - Exception [nsIShellService.createShortcut] @ BookmarkHelper.js :: <TOP_LEVEL> :: line 92 [r=wjohnston]
This commit is contained in:
Родитель
6aa84bfb22
Коммит
2eaf36edd5
|
@ -76,6 +76,9 @@ var BookmarkHelper = {
|
|||
createShortcut: function BH_createShortcut(aTitle, aURL, aIconURL) {
|
||||
const kIconSize = 64;
|
||||
|
||||
aTitle = aTitle || aURL;
|
||||
aIconURL = aIconURL || "chrome://browser/skin/images/favicon-default-32.png";
|
||||
|
||||
let canvas = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
|
||||
canvas.setAttribute("style", "display: none");
|
||||
|
||||
|
@ -95,6 +98,10 @@ var BookmarkHelper = {
|
|||
}
|
||||
}
|
||||
|
||||
image.onerror = function() {
|
||||
Cu.reportError("CreateShortcut: image load error");
|
||||
}
|
||||
|
||||
image.src = aIconURL;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче