From ec09c35ecc8fb129c4c0ac761ee2532ab9eab78f Mon Sep 17 00:00:00 2001 From: Frank-Rainer Grahl Date: Mon, 14 Jan 2019 23:49:44 +0100 Subject: [PATCH] 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]. --- suite/base/content/nsContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite/base/content/nsContextMenu.js b/suite/base/content/nsContextMenu.js index 5c3699ba5c..668bdd45fd 100644 --- a/suite/base/content/nsContextMenu.js +++ b/suite/base/content/nsContextMenu.js @@ -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;