From 3442ae7718679a4da8664bdbb561f746e0357203 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Wed, 2 May 2018 06:57:57 +0200 Subject: Fix unsafe "instanceof" negations https://github.com/MoonchildProductions/Pale-Moon/pull/1173 --- mobile/android/chrome/content/InputWidgetHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile') diff --git a/mobile/android/chrome/content/InputWidgetHelper.js b/mobile/android/chrome/content/InputWidgetHelper.js index 9c753bd7b..cf66a263e 100644 --- a/mobile/android/chrome/content/InputWidgetHelper.js +++ b/mobile/android/chrome/content/InputWidgetHelper.js @@ -63,7 +63,7 @@ var InputWidgetHelper = { }, hasInputWidget: function(aElement) { - if (!aElement instanceof HTMLInputElement) + if (!(aElement instanceof HTMLInputElement)) return false; let type = aElement.getAttribute('type'); -- cgit v1.2.3