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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user