зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1629653 - Remove unused argument from ImageCacheKey::GetSpecialCaseDocumentToken; r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70729 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c34d93b70f
Коммит
869ca5daa1
|
@ -44,7 +44,7 @@ ImageCacheKey::ImageCacheKey(nsIURI* aURI, const OriginAttributes& aAttrs,
|
|||
Document* aDocument)
|
||||
: mURI(aURI),
|
||||
mOriginAttributes(aAttrs),
|
||||
mControlledDocument(GetSpecialCaseDocumentToken(aDocument, aURI)),
|
||||
mControlledDocument(GetSpecialCaseDocumentToken(aDocument)),
|
||||
mTopLevelBaseDomain(GetTopLevelBaseDomain(aDocument, aURI)),
|
||||
mIsChrome(false) {
|
||||
if (mURI->SchemeIs("blob")) {
|
||||
|
@ -144,8 +144,7 @@ void ImageCacheKey::EnsureHash() const {
|
|||
}
|
||||
|
||||
/* static */
|
||||
void* ImageCacheKey::GetSpecialCaseDocumentToken(Document* aDocument,
|
||||
nsIURI* aURI) {
|
||||
void* ImageCacheKey::GetSpecialCaseDocumentToken(Document* aDocument) {
|
||||
// Cookie-averse documents can never have storage granted to them. Since they
|
||||
// may not have inner windows, they would require special handling below, so
|
||||
// just bail out early here.
|
||||
|
|
|
@ -61,8 +61,7 @@ class ImageCacheKey final {
|
|||
private:
|
||||
// For ServiceWorker we need to use the document as
|
||||
// token for the key. All those exceptions are handled by this method.
|
||||
static void* GetSpecialCaseDocumentToken(dom::Document* aDocument,
|
||||
nsIURI* aURI);
|
||||
static void* GetSpecialCaseDocumentToken(dom::Document* aDocument);
|
||||
|
||||
// For anti-tracking we need to use the top-level document's base domain for
|
||||
// the key. This is handled by this method.
|
||||
|
|
Загрузка…
Ссылка в новой задаче