mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
parent
9195e9e4e3
commit
b586913598
53 changed files with 60 additions and 750 deletions
|
|
@ -767,12 +767,6 @@ StaticRefPtr<VibrateWindowListener> gVibrateWindowListener;
|
|||
|
||||
static bool
|
||||
MayVibrate(nsIDocument* doc) {
|
||||
#if MOZ_WIDGET_GONK
|
||||
if (XRE_IsParentProcess()) {
|
||||
return true; // The system app can always vibrate
|
||||
}
|
||||
#endif // MOZ_WIDGET_GONK
|
||||
|
||||
// Hidden documents cannot start or stop a vibration.
|
||||
return (doc && !doc->Hidden());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue