Bug 1027024 - Never translate 'language' disappears when close/open translation infobar using a expired key, r=mikedeboer.
authorFlorian Quèze <florian@queze.net>
Thu, 19 Jun 2014 12:09:28 +0200
changeset 189591 c16d14ddb71bb936b6f0f64d0d4cef34c3a0ee57
parent 189590 de0630683d16ec23f9e8a858b92a278925f906f7
child 189592 164923fd51c6de1de52a2297a72aa10a20b4ef97
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmikedeboer
bugs1027024
milestone33.0a1
Bug 1027024 - Never translate 'language' disappears when close/open translation infobar using a expired key, r=mikedeboer.
browser/components/translation/translation-infobar.xml
--- a/browser/components/translation/translation-infobar.xml
+++ b/browser/components/translation/translation-infobar.xml
@@ -147,21 +147,16 @@
           ]]>
         </setter>
       </property>
 
       <method name="init">
         <parameter name="aTranslation"/>
         <body>
           <![CDATA[
-            if (Translation.serviceUnavailable) {
-              this.state = Translation.STATE_UNAVAILABLE;
-              return;
-            }
-
             this.translation = aTranslation;
             let bundle = Cc["@mozilla.org/intl/stringbundle;1"]
                            .getService(Ci.nsIStringBundleService)
                            .createBundle("chrome://global/locale/languageNames.properties");
 
             // Fill the lists of supported source languages.
             let detectedLanguage = this._getAnonElt("detectedLanguage");
             let fromLanguage = this._getAnonElt("fromLanguage");