Bug 1711729 - Make browser/components/search/test/browser/browser_search_telemetry_sources_ads.js pass with Fission+BFCache by marking bfcache loads coming from shistory, r=peterv

With the patch the correct flag is passed up to here https://searchfox.org/mozilla-central/rev/6e630edb09c3ab06d0103665b16c9ea7dce782c5/browser/components/search/SearchSERPTelemetry.jsm#233-234

Differential Revision: https://phabricator.services.mozilla.com/D115639
This commit is contained in:
Olli Pettay
2021-05-25 12:28:07 +00:00
parent 24179a7c14
commit 5265dd6e47

View File

@@ -1216,6 +1216,7 @@ void nsDocShell::FirePageHideShowNonRecursive(bool aShow) {
nsCOMPtr<nsIChannel> channel = doc->GetChannel();
if (channel) {
SetLoadType(LOAD_HISTORY);
SetCurrentURI(doc->GetDocumentURI(), channel,
/* aFireOnLocationChange */ true,
/* aIsInitialAboutBlank */ false, /* aLocationFlags */ 0);