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,12 +1452,14 @@ nsresult nsSystemInfo::Init() {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (XRE_IsParentProcess()) {
|
||||||
nsString pointerExplanation;
|
nsString pointerExplanation;
|
||||||
widget::WinUtils::GetPointerExplanation(&pointerExplanation);
|
widget::WinUtils::GetPointerExplanation(&pointerExplanation);
|
||||||
rv = SetPropertyAsAString(u"pointingDevices"_ns, pointerExplanation);
|
rv = SetPropertyAsAString(u"pointingDevices"_ns, pointerExplanation);
|
||||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue