Bug 1453345 part 2. Switch geckoview's prompt setup to not rely on XPCWrappedJS implementing nsIDOMEventListener. r=jchen
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 12 Apr 2018 00:03:44 -0400
changeset 466453 b7d33dbd5c48f59a6414951daa4f1a5e6a895e1c
parent 466452 81d403264f0cd61686c0b842d6a1391b07c1ed43
child 466454 57eb117b924686acfbfbf17341a83011b73cb532
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1453345
milestone61.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 1453345 part 2. Switch geckoview's prompt setup to not rely on XPCWrappedJS implementing nsIDOMEventListener. r=jchen MozReview-Commit-ID: 3CKiDtpQePU
mobile/android/chrome/geckoview/GeckoViewPromptContent.js
--- a/mobile/android/chrome/geckoview/GeckoViewPromptContent.js
+++ b/mobile/android/chrome/geckoview/GeckoViewPromptContent.js
@@ -2,14 +2,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 ChromeUtils.import("resource://gre/modules/GeckoViewUtils.jsm");
 
 GeckoViewUtils.addLazyEventListener(this, ["click", "contextmenu"], {
   handler: _ =>
-    Cc["@mozilla.org/prompter;1"].getService(Ci.nsIDOMEventListener),
+    Cc["@mozilla.org/prompter;1"].getService().wrappedJSObject,
   options: {
     capture: false,
     mozSystemGroup: true,
   },
 });