diff options
author | Gaming4JC <g4jc@bulletmail.org> | 2018-10-20 17:32:25 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@bulletmail.org> | 2018-10-20 17:32:25 -0400 |
commit | ed7558c44bb6cf0054b0aeeae84e9dbdfbf8aa8b (patch) | |
tree | 2aeb74ad8d69f66b90901ad96bedf64ac89da12b /base | |
parent | 976c0fcb0e2e89b3ded27aa3f281321c835910dc (diff) | |
download | iceweasel-uxp-ed7558c44bb6cf0054b0aeeae84e9dbdfbf8aa8b.tar.gz |
backport: Remove and tidy remaining translator references
Diffstat (limited to 'base')
-rw-r--r-- | base/content/browser.css | 5 | ||||
-rwxr-xr-x | base/content/browser.js | 12 | ||||
-rw-r--r-- | base/content/browser.xul | 6 |
3 files changed, 0 insertions, 23 deletions
diff --git a/base/content/browser.css b/base/content/browser.css index cffe34c..02e60ed 100644 --- a/base/content/browser.css +++ b/base/content/browser.css @@ -929,11 +929,6 @@ html|*#gcli-output-frame, transition: none; } -/* Translation */ -notification[value="translation"] { - -moz-binding: url("chrome://browser/content/translation-infobar.xml#translationbar"); -} - /** See bug 872317 for why the following rule is necessary. */ #downloads-button { diff --git a/base/content/browser.js b/base/content/browser.js index 283159b..257c398 100755 --- a/base/content/browser.js +++ b/base/content/browser.js @@ -43,7 +43,6 @@ Cu.import("resource://gre/modules/NotificationDB.jsm"); ["SitePermissions", "resource:///modules/SitePermissions.jsm"], ["TabCrashHandler", "resource:///modules/ContentCrashHandlers.jsm"], ["Task", "resource://gre/modules/Task.jsm"], - ["Translation", "resource:///modules/translation/Translation.jsm"], ["UpdateUtils", "resource://gre/modules/UpdateUtils.jsm"], ["Weave", "resource://services-sync/main.js"], ["fxAccounts", "resource://gre/modules/FxAccounts.jsm"], @@ -940,7 +939,6 @@ var gBrowserInit = { // the listener is registered. DOMLinkHandler.init(); gPageStyleMenu.init(); - LanguageDetectionListener.init(); BrowserOnClick.init(); FeedHandler.init(); DevEdition.init(); @@ -5589,16 +5587,6 @@ function setStyleDisabled(disabled) { gPageStyleMenu.disableStyle(); } - -var LanguageDetectionListener = { - init: function() { - window.messageManager.addMessageListener("Translation:DocumentState", msg => { - Translation.documentStateReceived(msg.target, msg.data); - }); - } -}; - - var BrowserOffline = { _inited: false, diff --git a/base/content/browser.xul b/base/content/browser.xul index 0e6ea75..e8c9e92 100644 --- a/base/content/browser.xul +++ b/base/content/browser.xul @@ -671,12 +671,6 @@ tooltiptext="&urlbar.webRTCShareScreenNotificationAnchor.tooltip;"/> <image id="servicesInstall-notification-icon" class="notification-anchor-icon service-icon" role="button" tooltiptext="&urlbar.servicesNotificationAnchor.tooltip;"/> - <image id="translate-notification-icon" class="notification-anchor-icon translation-icon" role="button" - tooltiptext="&urlbar.translateNotificationAnchor.tooltip;"/> - <image id="translated-notification-icon" class="notification-anchor-icon translation-icon in-use" role="button" - tooltiptext="&urlbar.translatedNotificationAnchor.tooltip;"/> - <image id="eme-notification-icon" class="notification-anchor-icon drm-icon" role="button" - tooltiptext="&urlbar.emeNotificationAnchor.tooltip;"/> </box> <image id="tracking-protection-icon"/> <image id="connection-icon"/> |