Bug 1689601, make it possible to call Document::CanSavePresentation non-recursively, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D105236
This commit is contained in:
Olli Pettay
2021-03-02 12:13:19 +00:00
parent d3b77018bf
commit a8409a18ad
4 changed files with 15 additions and 12 deletions

View File

@@ -6938,7 +6938,7 @@ bool nsDocShell::CanSavePresentation(uint32_t aLoadType,
uint16_t bfCacheCombo = 0;
bool canSavePresentation =
doc->CanSavePresentation(aNewRequest, bfCacheCombo);
doc->CanSavePresentation(aNewRequest, bfCacheCombo, true);
MOZ_ASSERT_IF(canSavePresentation, bfCacheCombo == 0);
if (canSavePresentation && doc->IsTopLevelContentDocument()) {
auto* browsingContextGroup = mBrowsingContext->Group();