tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 2c345632297cc39da2b2c3ae36caa93bf5bc1673
parent 15bece78c5e18aa98691c3b36c03d62ee75bb42f
Author: Tooru Fujisawa <arai_a@mac.com>
Date:   Wed, 19 Nov 2025 01:45:54 +0000

Bug 1999649 - Part 2: Remove unused mIsLinkRelPreload field. r=bthrall

Preload or not is unrelated to the cache content.

Differential Revision: https://phabricator.services.mozilla.com/D272505

Diffstat:
Mdom/script/SharedScriptCache.cpp | 1-
Mdom/script/SharedScriptCache.h | 3---
2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/dom/script/SharedScriptCache.cpp b/dom/script/SharedScriptCache.cpp @@ -30,7 +30,6 @@ ScriptHashKey::ScriptHashKey( : PLDHashEntryHdr(), mKind(aRequest->mKind), mCORSMode(aFetchOptions->mCORSMode), - mIsLinkRelPreload(aRequest->GetScriptLoadContext()->IsPreload()), mReferrerPolicy(aReferrerPolicy), mURI(aURI), mLoaderPrincipal(aLoader->LoaderPrincipal()), diff --git a/dom/script/SharedScriptCache.h b/dom/script/SharedScriptCache.h @@ -41,7 +41,6 @@ class ScriptHashKey : public PLDHashEntryHdr { : PLDHashEntryHdr(), mKind(aKey.mKind), mCORSMode(aKey.mCORSMode), - mIsLinkRelPreload(aKey.mIsLinkRelPreload), mReferrerPolicy(aKey.mReferrerPolicy), mURI(aKey.mURI), mLoaderPrincipal(aKey.mLoaderPrincipal), @@ -58,7 +57,6 @@ class ScriptHashKey : public PLDHashEntryHdr { : PLDHashEntryHdr(), mKind(std::move(aKey.mKind)), mCORSMode(std::move(aKey.mCORSMode)), - mIsLinkRelPreload(std::move(aKey.mIsLinkRelPreload)), mReferrerPolicy(std::move(aKey.mReferrerPolicy)), mURI(std::move(aKey.mURI)), mLoaderPrincipal(std::move(aKey.mLoaderPrincipal)), @@ -105,7 +103,6 @@ class ScriptHashKey : public PLDHashEntryHdr { protected: const JS::loader::ScriptKind mKind; const CORSMode mCORSMode; - const bool mIsLinkRelPreload; const mozilla::dom::ReferrerPolicy mReferrerPolicy; const nsCOMPtr<nsIURI> mURI;