Bug 1739685 - part1 : copy ShouldDelayMediaFromStart in ReplacedBy() . r=emilio

A follow-up based on [1].

[1]
https://phabricator.services.mozilla.com/D128126#4226792
https://bugzilla.mozilla.org/show_bug.cgi?id=1733902#c12

Differential Revision: https://phabricator.services.mozilla.com/D130292
This commit is contained in:
alwu
2021-11-08 18:48:04 +00:00
parent e1f69bb44f
commit 6ccf446bf7

View File

@@ -304,6 +304,7 @@ void CanonicalBrowsingContext::ReplacedBy(
txn.SetHistoryID(GetHistoryID());
txn.SetExplicitActive(GetExplicitActive());
txn.SetHasRestoreData(GetHasRestoreData());
txn.SetShouldDelayMediaFromStart(GetShouldDelayMediaFromStart());
if (aNewContext->EverAttached()) {
MOZ_ALWAYS_SUCCEEDS(txn.Commit(aNewContext));
} else {