forked from mirrors/gecko-dev
Bug 1892051: Only call WinUtils::GetPointerExplanation in the parent process. r=cmartin
This fails when we have a USER_RESTRICTED access token level for content. Differential Revision: https://phabricator.services.mozilla.com/D207767
This commit is contained in:
parent
1ffd0193d6
commit
51bc14e903
1 changed files with 7 additions and 5 deletions
|
|
@ -1452,11 +1452,13 @@ nsresult nsSystemInfo::Init() {
|
|||
return rv;
|
||||
}
|
||||
|
||||
nsString pointerExplanation;
|
||||
widget::WinUtils::GetPointerExplanation(&pointerExplanation);
|
||||
rv = SetPropertyAsAString(u"pointingDevices"_ns, pointerExplanation);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
if (XRE_IsParentProcess()) {
|
||||
nsString pointerExplanation;
|
||||
widget::WinUtils::GetPointerExplanation(&pointerExplanation);
|
||||
rv = SetPropertyAsAString(u"pointingDevices"_ns, pointerExplanation);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue