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:
Frank-Rainer Grahl 2019-01-14 23:49:44 +01:00
Родитель ee45a09805
Коммит ec09c35ecc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;