Bug 1501234 - Use openTrustedLinkIn in gAccessibilityServiceIndicator. r=dao
authorhereissophie@gmail.com
Wed, 05 Dec 2018 19:52:35 +0100
changeset 505937 d18e3cc2eaebea0f78dedc43655214b4b7d337a6
parent 505919 7d32febb06fde6818e60f875f2e39f98e9107d7a
child 505938 62cb0a02ae13d64b91bfa539c084767a5d26ddae
push id10301
push userarchaeopteryx@coole-files.de
push dateThu, 06 Dec 2018 16:36:14 +0000
treeherdermozilla-beta@7d2f3c71997c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1501234
milestone65.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 1501234 - Use openTrustedLinkIn in gAccessibilityServiceIndicator. r=dao
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -7426,17 +7426,17 @@ const gAccessibilityServiceIndicator = {
   },
 
   handleEvent({ key, type }) {
     if ((type === "keypress" && [" ", "Enter"].includes(key)) ||
          type === "click") {
       let a11yServicesSupportURL =
         Services.urlFormatter.formatURLPref("accessibility.support.url");
       // This is a known URL coming from trusted UI
-      gBrowser.selectedTab = gBrowser.addTrustedTab(a11yServicesSupportURL);
+      openTrustedLinkIn(a11yServicesSupportURL, "tab");
       Services.telemetry.scalarSet("a11y.indicator_acted_on", true);
     }
   },
 
   uninit() {
     Services.prefs.removeObserver("accessibility.indicator.enabled", this);
     Services.obs.removeObserver(this, "a11y-init-or-shutdown");
   },