Bug 1486157 - Change language provider attribution to use openWebLinkIn. r=Gijs
authorJonathan Kingston <jkt@mozilla.com>
Mon, 27 Aug 2018 13:27:39 +0000
changeset 488667 684d84410d7f92e221ae395959bb7b7d5da33a94
parent 488666 a2e7223d34fcb8eefedf5aa303ad9f0b9fe9b5e0
child 488668 6f25c83bb4d5e17285cb4f4f62d71e2cabe20801
push id9734
push usershindli@mozilla.com
push dateThu, 30 Aug 2018 12:18:07 +0000
treeherdermozilla-beta@71c71ab3afae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1486157
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 1486157 - Change language provider attribution to use openWebLinkIn. r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D4273
browser/components/translation/Translation.jsm
--- a/browser/components/translation/Translation.jsm
+++ b/browser/components/translation/Translation.jsm
@@ -70,17 +70,17 @@ var Translation = {
 
     if (trUI.shouldShowInfoBar(aBrowser.currentURI))
       trUI.showTranslationInfoBar();
   },
 
   openProviderAttribution() {
     let attribution = this.supportedEngines[this.translationEngine];
     ChromeUtils.import("resource:///modules/BrowserWindowTracker.jsm");
-    BrowserWindowTracker.getTopWindow().openUILinkIn(attribution, "tab");
+    BrowserWindowTracker.getTopWindow().openWebLinkIn(attribution, "tab");
   },
 
   /**
    * The list of translation engines and their attributions.
    */
   supportedEngines: {
     "bing": "http://aka.ms/MicrosoftTranslatorAttribution",
     "yandex": "http://translate.yandex.com/"