Bug 1027024 - Never translate 'language' disappears when close/open translation infobar using a expired key, r=mikedeboer. a=gavin
authorFlorian Quèze <florian@queze.net>
Thu, 19 Jun 2014 12:09:28 +0200
changeset 207347 d9ac8792c337ca5dec794cf2019cfad741e0380d
parent 207346 019279c9a206616a4a9c485be4fddd7c4db862f0
child 207348 aa4cb3562ef13b0e1b7428f71e71068ba3946367
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikedeboer, gavin
bugs1027024
milestone32.0a2
Bug 1027024 - Never translate 'language' disappears when close/open translation infobar using a expired key, r=mikedeboer. a=gavin
browser/components/translation/translation-infobar.xml
--- a/browser/components/translation/translation-infobar.xml
+++ b/browser/components/translation/translation-infobar.xml
@@ -155,21 +155,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");