Bug 1655866: Part 2 - Move HasBeforeUnload flag to WindowContext. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D88315
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user