Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen
☠☠ backed out by 52b106ba3e95 ☠ ☠
authorJim Chen <nchen@mozilla.com>
Tue, 05 Sep 2017 15:27:37 -0400
changeset 378986 f069f3c695977904c4b2dda44a5218efe17d28b5
parent 378985 1cc1955d6af318c6d57e483b70618a6f59e52681
child 378987 d08ea6b954941a493134160669bbaa384e6520e2
push id50463
push usernchen@mozilla.com
push dateTue, 05 Sep 2017 19:31:32 +0000
treeherderautoland@f069f3c69597 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1394580
milestone57.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 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen MozReview-Commit-ID: BZJSvnNC3OS
mobile/android/components/geckoview/GeckoViewPrompt.js
--- a/mobile/android/components/geckoview/GeckoViewPrompt.js
+++ b/mobile/android/components/geckoview/GeckoViewPrompt.js
@@ -364,17 +364,17 @@ function PromptDelegate(aDomWin) {
   if (!aDomWin) {
     return;
   }
   let gvWin = aDomWin.QueryInterface(Ci.nsIInterfaceRequestor)
                      .getInterface(Ci.nsIDocShell).QueryInterface(Ci.nsIDocShellTreeItem)
                      .rootTreeItem.QueryInterface(Ci.nsIInterfaceRequestor)
                      .getInterface(Ci.nsIDOMWindow);
   try {
-    this._dispatcher = EventDispatcher.for(gvWin);
+    this._dispatcher = gvWin.WindowEventDispatcher || EventDispatcher.for(gvWin);
   } catch (e) {
     // Use global dispatcher.
   }
 }
 
 PromptDelegate.prototype = {
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIPrompt]),