Remove MOZ_WIDGET_GONK [1/2]

Tag #288
This commit is contained in:
wolfbeast 2018-05-12 16:19:33 +02:00 committed by Roy Tam
commit b586913598
53 changed files with 60 additions and 750 deletions

View file

@ -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());
}