Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
Differential Revision: https://phabricator.services.mozilla.com/D44758
This commit is contained in:
@@ -704,6 +704,16 @@ nsDocShell::LoadURI(nsDocShellLoadState* aLoadState) {
|
||||
}
|
||||
}
|
||||
|
||||
if (aLoadState->GetOriginalURIString().isSome()) {
|
||||
// Save URI string in case it's needed later when
|
||||
// sending to search engine service in EndPageLoad()
|
||||
mOriginalUriString = *aLoadState->GetOriginalURIString();
|
||||
}
|
||||
|
||||
if (aLoadState->GetCancelContentJSEpoch().isSome()) {
|
||||
SetCancelContentJSEpoch(*aLoadState->GetCancelContentJSEpoch());
|
||||
}
|
||||
|
||||
// Note: we allow loads to get through here even if mFiredUnloadEvent is
|
||||
// true; that case will get handled in LoadInternal or LoadHistoryEntry,
|
||||
// so we pass false as the second parameter to IsNavigationAllowed.
|
||||
|
||||
Reference in New Issue
Block a user