зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1433037 - WindowsPreviewPerTab should use decodeImageAsync, r=aosmond
This commit is contained in:
Родитель
25ab1ff0da
Коммит
f02b4b3641
|
@ -101,8 +101,8 @@ function _imageFromURI(uri, privateMode, callback) {
|
|||
|
||||
try {
|
||||
let threadManager = Cc["@mozilla.org/thread-manager;1"].getService();
|
||||
imgTools.decodeImage(inputStream, channel.contentType, decodeCallback,
|
||||
threadManager.currentThread);
|
||||
imgTools.decodeImageAsync(inputStream, channel.contentType,
|
||||
decodeCallback, threadManager.currentThread);
|
||||
} catch (e) {
|
||||
// We failed, so use the default favicon (only if this wasn't the default
|
||||
// favicon).
|
||||
|
|
Загрузка…
Ссылка в новой задаче