Bug 1661753 - Don't return early from nsDocShell::UpdateURLAndHistory when only session-history-in-parent related code is running, r=peterv
Depends on D88450 Differential Revision: https://phabricator.services.mozilla.com/D88630
This commit is contained in:
@@ -10693,7 +10693,7 @@ nsresult nsDocShell::UpdateURLAndHistory(Document* aDocument, nsIURI* aNewURI,
|
||||
// history. This will erase all SHEntries after the new entry and make this
|
||||
// entry the current one. This operation may modify mOSHE, which we need
|
||||
// later, so we keep a reference here.
|
||||
NS_ENSURE_TRUE(mOSHE || aReplace, NS_ERROR_FAILURE);
|
||||
NS_ENSURE_TRUE(mOSHE || mActiveEntry || aReplace, NS_ERROR_FAILURE);
|
||||
nsCOMPtr<nsISHEntry> oldOSHE = mOSHE;
|
||||
|
||||
// If this push/replaceState changed the document's current URI and the new
|
||||
|
||||
Reference in New Issue
Block a user