Bug 1590435 - Remove defaultPrevented check in GeckoViewPrompt's click handler. r=geckoview-reviewers,snorp
authorDylan Roeh <droeh@mozilla.com>
Mon, 11 Nov 2019 15:50:18 +0000
changeset 501505 dc73a80c1fef84887281bf4c2e4e06c4c6d2c9b6
parent 501504 b22289ed379251ead49c73eae149884c38a47edc
child 501506 78e9d7e282ced07b64b281219fba4117c95318fd
push id114170
push usermalexandru@mozilla.com
push dateTue, 12 Nov 2019 21:58:32 +0000
treeherdermozilla-inbound@9e3f44e87a1a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgeckoview-reviewers, snorp
bugs1590435
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1590435 - Remove defaultPrevented check in GeckoViewPrompt's click handler. r=geckoview-reviewers,snorp Differential Revision: https://phabricator.services.mozilla.com/D52423
mobile/android/components/geckoview/GeckoViewPrompt.js
--- a/mobile/android/components/geckoview/GeckoViewPrompt.js
+++ b/mobile/android/components/geckoview/GeckoViewPrompt.js
@@ -48,17 +48,16 @@ PromptFactory.prototype = {
         this._handlePopupBlocked(aEvent);
         break;
     }
   },
 
   _handleClick: function(aEvent) {
     let target = aEvent.composedTarget;
     if (
-      aEvent.defaultPrevented ||
       target.isContentEditable ||
       target.disabled ||
       target.readOnly ||
       !target.willValidate
     ) {
       // target.willValidate is false when any associated fieldset is disabled,
       // in which case this element is treated as disabled per spec.
       return;