зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1854139 - Remove unused aFireOnLocationChange argument from nsDocShell::OnNewURI. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D188728
This commit is contained in:
Родитель
bacbbc2358
Коммит
6df6e2ea90
|
@ -7889,7 +7889,7 @@ nsresult nsDocShell::CreateContentViewer(const nsACString& aContentType,
|
|||
if (failedURI) {
|
||||
errorOnLocationChangeNeeded =
|
||||
OnNewURI(failedURI, failedChannel, triggeringPrincipal, nullptr,
|
||||
nullptr, nullptr, false, false, false);
|
||||
nullptr, nullptr, false, false);
|
||||
}
|
||||
|
||||
// Be sure to have a correct mLSHE, it may have been cleared by
|
||||
|
@ -7916,9 +7916,8 @@ nsresult nsDocShell::CreateContentViewer(const nsACString& aContentType,
|
|||
bool onLocationChangeNeeded = false;
|
||||
if (finalURI) {
|
||||
// Pass false for aCloneSHChildren, since we're loading a new page here.
|
||||
onLocationChangeNeeded =
|
||||
OnNewURI(finalURI, aOpenedChannel, nullptr, nullptr, nullptr, nullptr,
|
||||
false, true, false);
|
||||
onLocationChangeNeeded = OnNewURI(finalURI, aOpenedChannel, nullptr,
|
||||
nullptr, nullptr, nullptr, true, false);
|
||||
}
|
||||
|
||||
// let's try resetting the load group if we need to...
|
||||
|
@ -8911,7 +8910,7 @@ nsresult nsDocShell::HandleSameDocumentNavigation(
|
|||
// 1668126)
|
||||
bool locationChangeNeeded = OnNewURI(
|
||||
newURI, nullptr, newURITriggeringPrincipal, newURIPrincipalToInherit,
|
||||
newURIPartitionedPrincipalToInherit, newCsp, false, true, true);
|
||||
newURIPartitionedPrincipalToInherit, newCsp, true, true);
|
||||
|
||||
nsCOMPtr<nsIInputStream> postData;
|
||||
uint32_t cacheKey = 0;
|
||||
|
@ -10946,8 +10945,7 @@ bool nsDocShell::OnNewURI(nsIURI* aURI, nsIChannel* aChannel,
|
|||
nsIPrincipal* aPrincipalToInherit,
|
||||
nsIPrincipal* aPartitionedPrincipalToInherit,
|
||||
nsIContentSecurityPolicy* aCsp,
|
||||
bool aFireOnLocationChange, bool aAddToGlobalHistory,
|
||||
bool aCloneSHChildren) {
|
||||
bool aAddToGlobalHistory, bool aCloneSHChildren) {
|
||||
MOZ_ASSERT(aURI, "uri is null");
|
||||
MOZ_ASSERT(!aChannel || !aTriggeringPrincipal, "Shouldn't have both set");
|
||||
|
||||
|
@ -11162,7 +11160,7 @@ bool nsDocShell::OnNewURI(nsIURI* aURI, nsIChannel* aChannel,
|
|||
aCloneSHChildren ? uint32_t(LOCATION_CHANGE_SAME_DOCUMENT) : 0;
|
||||
|
||||
bool onLocationChangeNeeded =
|
||||
SetCurrentURI(aURI, aChannel, aFireOnLocationChange,
|
||||
SetCurrentURI(aURI, aChannel, false,
|
||||
/* aIsInitialAboutBlank */ false, locationFlags);
|
||||
// Make sure to store the referrer from the channel, if any
|
||||
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(aChannel));
|
||||
|
|
|
@ -719,9 +719,7 @@ class nsDocShell final : public nsDocLoader,
|
|||
nsDocShellLoadState* aLoadState);
|
||||
|
||||
private:
|
||||
// Returns true if would have called FireOnLocationChange,
|
||||
// but did not because aFireOnLocationChange was false on entry.
|
||||
// In this case it is the caller's responsibility to ensure
|
||||
// Returns true if it is the caller's responsibility to ensure
|
||||
// FireOnLocationChange is called.
|
||||
// In all other cases false is returned.
|
||||
// Either aChannel or aTriggeringPrincipal must be null. If aChannel is
|
||||
|
@ -736,9 +734,9 @@ class nsDocShell final : public nsDocLoader,
|
|||
bool OnNewURI(nsIURI* aURI, nsIChannel* aChannel,
|
||||
nsIPrincipal* aTriggeringPrincipal,
|
||||
nsIPrincipal* aPrincipalToInherit,
|
||||
nsIPrincipal* aPartitionedPrincipalToInehrit,
|
||||
nsIContentSecurityPolicy* aCsp, bool aFireOnLocationChange,
|
||||
bool aAddToGlobalHistory, bool aCloneSHChildren);
|
||||
nsIPrincipal* aPartitionedPrincipalToInherit,
|
||||
nsIContentSecurityPolicy* aCsp, bool aAddToGlobalHistory,
|
||||
bool aCloneSHChildren);
|
||||
|
||||
public:
|
||||
// If wireframe collection is enabled, will attempt to gather the
|
||||
|
|
Загрузка…
Ссылка в новой задаче