Bug 1655866: Part 2 - Move HasBeforeUnload flag to WindowContext. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D88315
This commit is contained in:
Kris Maglione
2020-09-21 22:40:51 +00:00
parent a4ae7750b4
commit 8f2c0afdfb
7 changed files with 20 additions and 20 deletions

View File

@@ -156,6 +156,12 @@ bool WindowContext::CanSet(FieldIndex<IDX_AllowMixedContent>,
return CheckOnlyOwningProcessCanSet(aSource);
}
bool WindowContext::CanSet(FieldIndex<IDX_HasBeforeUnload>,
const bool& aHasBeforeUnload,
ContentParent* aSource) {
return CheckOnlyOwningProcessCanSet(aSource);
}
bool WindowContext::CanSet(FieldIndex<IDX_CookieBehavior>,
const Maybe<uint32_t>& aValue,
ContentParent* aSource) {