tor-browser

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

commit 5dff3104946def02199c3f2f43cbf5e932273e51
parent 340ee3c1fc2283f0b23d293d60fc8711b1516889
Author: Jan-Niklas Jaeschke <jjaschke@mozilla.com>
Date:   Wed,  1 Oct 2025 08:46:36 +0000

Bug 1991850 - Navigation API: Change `NavigationDestination::mState` to use the interface instead of the implementation. r=farre

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

Diffstat:
Mdom/navigation/NavigationDestination.cpp | 8+++-----
Mdom/navigation/NavigationDestination.h | 4++--
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/dom/navigation/NavigationDestination.cpp b/dom/navigation/NavigationDestination.cpp @@ -24,11 +24,9 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(NavigationDestination) NS_INTERFACE_MAP_ENTRY(nsISupports) NS_INTERFACE_MAP_END -NavigationDestination::NavigationDestination(nsIGlobalObject* aGlobal, - nsIURI* aURI, - NavigationHistoryEntry* aEntry, - nsStructuredCloneContainer* aState, - bool aIsSameDocument) +NavigationDestination::NavigationDestination( + nsIGlobalObject* aGlobal, nsIURI* aURI, NavigationHistoryEntry* aEntry, + nsIStructuredCloneContainer* aState, bool aIsSameDocument) : mGlobal(aGlobal), mURL(aURI), mEntry(aEntry), diff --git a/dom/navigation/NavigationDestination.h b/dom/navigation/NavigationDestination.h @@ -31,7 +31,7 @@ class NavigationDestination final : public nsISupports, public nsWrapperCache { NavigationDestination(nsIGlobalObject* aGlobal, nsIURI* aURI, NavigationHistoryEntry* aEntry, - nsStructuredCloneContainer* aState, + nsIStructuredCloneContainer* aState, bool aIsSameDocument); void GetUrl(nsString& aURL) const; @@ -61,7 +61,7 @@ class NavigationDestination final : public nsISupports, public nsWrapperCache { RefPtr<NavigationHistoryEntry> mEntry; // https://html.spec.whatwg.org/#concept-navigationdestination-state - RefPtr<nsStructuredCloneContainer> mState; + RefPtr<nsIStructuredCloneContainer> mState; // https://html.spec.whatwg.org/#concept-navigationdestination-samedocument bool mIsSameDocument = false;