summaryrefslogtreecommitdiff
path: root/dom/base/Navigator.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-12 16:19:33 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-12 16:19:58 +0200
commit6971bbb2277a260e398b8811be1970f8b3853357 (patch)
tree8c593b8e09f2cfb457df72d40dc719bb0e0df066 /dom/base/Navigator.cpp
parentf8b5e24d175a9bee266d005d6c81a189044d820b (diff)
downloaduxp-6971bbb2277a260e398b8811be1970f8b3853357.tar.gz
Remove MOZ_WIDGET_GONK [1/2]
Tag mcp-graveyard/UXP#288
Diffstat (limited to 'dom/base/Navigator.cpp')
-rw-r--r--dom/base/Navigator.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp
index 5c315517c1..ed96ee23b9 100644
--- a/dom/base/Navigator.cpp
+++ b/dom/base/Navigator.cpp
@@ -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());
}