mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 13:40:37 -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.
23 lines
656 B
INI
23 lines
656 B
INI
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
|
|
XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell.ini']
|
|
|
|
EXTRA_COMPONENTS += [
|
|
'BrowserPageThumbs.manifest',
|
|
'PageThumbsProtocol.js',
|
|
]
|
|
|
|
EXTRA_JS_MODULES += [
|
|
'BackgroundPageThumbs.jsm',
|
|
'PageThumbs.jsm',
|
|
'PageThumbsWorker.js',
|
|
'PageThumbUtils.jsm',
|
|
]
|
|
|
|
JAR_MANIFESTS += ['jar.mn']
|