DescriptionThis fixes three issues:
1) We were using the wrong load context all along. We got the load context from the window, yet the tooltip will always load images from default cache (i.e. not private browsing cache).
2) Checking isNew in onCacheEntryAvailable isn`t sufficient to recognize whether an entry exists. If a cache entry doesn`t exist isNew will be false and status will be an error code.
3) The fallback code for Firefox 31 and below is no longer needed.
For reference, the point of this code is preventing the tooltip from triggering network requests (privacy). So the image should only be shown if the request can be satisfied from cache.
Patch Set 1 #
Total comments: 3
MessagesTotal messages: 4
|