mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
@@ -363,6 +363,10 @@ GetPointerCapabilities(nsPresContext* aPresContext,
|
||||
if (baseWindow) {
|
||||
nsCOMPtr<nsIWidget> mainWidget;
|
||||
baseWindow->GetMainWidget(getter_AddRefs(mainWidget));
|
||||
if (!mainWidget) {
|
||||
// We don't have a usable widget to query; bail. See Issue #2981
|
||||
return;
|
||||
}
|
||||
mainWidget->GetPointerCapabilities(aCaps);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user