Bug 1519902 - Use current document for imageCache.findEntryProperties(). r=IanN
Port Bug 1202085 part 2 [Do not store images that have been synthesized by a service worker in the image cache].
This commit is contained in:
Родитель
ee45a09805
Коммит
ec09c35ecc
|
@ -89,7 +89,7 @@ nsContextMenu.prototype = {
|
|||
let imageCache = Cc["@mozilla.org/image/tools;1"]
|
||||
.getService(Ci.imgITools)
|
||||
.getImgCacheForDocument(doc);
|
||||
let props = imageCache.findEntryProperties(popupNode.currentURI);
|
||||
let props = imageCache.findEntryProperties(popupNode.currentURI, doc);
|
||||
if (props) {
|
||||
let nsISupportsCString = Ci.nsISupportsCString;
|
||||
contentType = props.get("type", nsISupportsCString).data;
|
||||
|
|
Загрузка…
Ссылка в новой задаче