Bug 1659520 - Use explicit type arguments for SyncedContext field setters, r=farre

Differential Revision: https://phabricator.services.mozilla.com/D87466
This commit is contained in:
Nika Layzell
2020-08-26 07:53:26 +00:00
parent 5ec7f2734d
commit 758beeb5cd
4 changed files with 31 additions and 18 deletions

View File

@@ -1773,7 +1773,10 @@ nsDocShell::GetAllowContentRetargeting(bool* aAllowContentRetargeting) {
NS_IMETHODIMP
nsDocShell::SetAllowContentRetargeting(bool aAllowContentRetargeting) {
return mBrowsingContext->SetAllowContentRetargeting(aAllowContentRetargeting);
BrowsingContext::Transaction txn;
txn.SetAllowContentRetargeting(aAllowContentRetargeting);
txn.SetAllowContentRetargetingOnChildren(aAllowContentRetargeting);
return txn.Commit(mBrowsingContext);
}
NS_IMETHODIMP