Steffen
Well-known member
- Affected version
- 2.1.0
XenForo uses "Notification.permission" without checking whether "Notification" is defined. We log this error for a few Firefox users. It seems like they have somehow disabled notifications but pass all the other checks in "XF.Push.isSupported".
Diff:
--- a/js/xf/core.js
+++ b/js/xf/core.js
@@ -6728,6 +6728,7 @@ if (window.jQuery === undefined) jQuery = $ = {};
&& XF.getApp() === 'public'
&& 'serviceWorker' in navigator
&& 'PushManager' in window
+ && 'Notification' in window
);
}