From a0ad7fc38353bac4a6f27f8a2a6cfe574e2d2fd3 Mon Sep 17 00:00:00 2001 From: Felipe Gomes Date: Fri, 10 Oct 2014 17:37:51 -0300 Subject: [PATCH] Bug 1081296 - Add sumo link for promotional translation doorhanger. r=florian --- browser/components/translation/translation-infobar.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/components/translation/translation-infobar.xml b/browser/components/translation/translation-infobar.xml index 8c10a34b0d5..71ff73b6b07 100644 --- a/browser/components/translation/translation-infobar.xml +++ b/browser/components/translation/translation-infobar.xml @@ -31,7 +31,8 @@ anonid="welcomeHeadline"/> - + @@ -215,7 +216,8 @@ this.state = aTranslation.state; const kWelcomePref = "browser.translation.ui.welcomeMessageShown"; - if (Services.prefs.prefHasUserValue(kWelcomePref)) + if (Services.prefs.prefHasUserValue(kWelcomePref) || + this.translation.browser != gBrowser.selectedBrowser) return; this.addEventListener("transitionend", function onShown() {