mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 04:22:30 -10:00
Use nsISubstitutingProtocolHandler to return a SubstitutingURL and to resolve the thumbnail URL to the backing nsIFile. Now the image loader code will realise that moz-page-thumb:// URLs are backed by a file and will be able to use the file mtime to evaluate whether the cached imgRequest has expired. * Implement the nsISubstitutingProtocolHandler methods in the thumbnail protocol handler. The resolveURI method does all the work, the other methods are just stubs. * moz-page-thumb:// is now an URL rather than an URI, so update the signature accordingly. * Add xpcshell-test to affirm that SubstitutingURL::EnsureFile() resolves the backing file correctly. * Adjust the mochitest to account for the one second granularity of the mtime tracking.
7 lines
129 B
INI
7 lines
129 B
INI
[DEFAULT]
|
|
head =
|
|
tail =
|
|
|
|
[test_thumbnails_interfaces.js]
|
|
skip-if = os == 'b2g' || os == 'android' # xpcom interface not packaged
|