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:
Edgar Chen 2020-04-13 20:50:19 +00:00
Родитель c34d93b70f
Коммит 869ca5daa1
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -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.