Bug 1677774 - Relax CanSet for TouchEventsOverrideInternal. r=nika

As a temporary fix to prevent crashes we are loosening the `CanSet`
restrictions for TouchEventsOverrideInternal. In the future this will
be fixed properly by changing DevTools to set this property from the
parent only, at which time tighter restrictions on setting
`TouchEventsOverrideInternal` may be added.

Differential Revision: https://phabricator.services.mozilla.com/D103080
This commit is contained in:
Steven MacLeod
2021-01-26 20:38:20 +00:00
parent 018005d716
commit 8e4c90b237

View File

@@ -2459,7 +2459,8 @@ bool BrowsingContext::CanSet(
FieldIndex<IDX_TouchEventsOverrideInternal>,
const enum TouchEventsOverride& aTouchEventsOverride,
ContentParent* aSource) {
return CheckOnlyOwningProcessCanSet(aSource);
// TODO: Bug 1688948 - Should only be set in the parent process.
return true;
}
bool BrowsingContext::CanSet(FieldIndex<IDX_DisplayMode>,