B2G/gecko/image/test/mochitest/imgutils.js
// Helper function to clear the image cache of content images
Helper function to clear the image cache of content images
Helper function to clear the image cache of content images
function clearImageCache()
{
  var tools = SpecialPowers.Cc["@mozilla.org/image/tools;1"]
                             .getService(SpecialPowers.Ci.imgITools);
  var imageCache = tools.getImgCacheForDocument(window.document);
  imageCache.clearCache(false); 
}
function clearImageCache ( ) { var tools = SpecialPowers . Cc [ "@mozilla.org/image/tools;1" ] . getService ( SpecialPowers . Ci . imgITools ) ; var imageCache = tools . getImgCacheForDocument ( window . document ) ; imageCache . clearCache ( false ) ; }
Helper function to clear the image cache of content images
Helper function to clear the image cache of content images
// true=chrome, false=content