Bug 1459590 - Ensure GeckoView select and input element work with ShadowDom; r=jchen
authorEdgar Chen <echen@mozilla.com>
Fri, 20 Jul 2018 21:37:07 +0000
changeset 427695 3de5d538b2d44bcf3315970af7ed5443b4ecc308
parent 427631 9daa53881b7ae80bf6b093dac5d7744cf7fd18b1
child 427696 0efbf75ea1b67c99f285517d5f5235b7f98162e4
push id105521
push userapavel@mozilla.com
push dateSun, 22 Jul 2018 21:52:17 +0000
treeherdermozilla-inbound@7d4c1ef1c1b5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1459590
milestone63.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 1459590 - Ensure GeckoView select and input element work with ShadowDom; r=jchen Differential Revision: https://phabricator.services.mozilla.com/D2153
mobile/android/components/geckoview/GeckoViewPrompt.js
--- a/mobile/android/components/geckoview/GeckoViewPrompt.js
+++ b/mobile/android/components/geckoview/GeckoViewPrompt.js
@@ -31,17 +31,17 @@ PromptFactory.prototype = {
         break;
       case "contextmenu":
         this._handleContextMenu(aEvent);
         break;
     }
   },
 
   _handleClick: function(aEvent) {
-    let target = aEvent.target;
+    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;
     }
 
     let win = target.ownerGlobal;