mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #832 Part 1: Remove modules, chrome, and preferences.
This commit is contained in:
parent
2bce502df7
commit
7dac76098e
21 changed files with 0 additions and 2998 deletions
|
|
@ -933,11 +933,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 {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,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"],
|
||||
|
|
@ -974,7 +973,6 @@ var gBrowserInit = {
|
|||
// the listener is registered.
|
||||
DOMLinkHandler.init();
|
||||
gPageStyleMenu.init();
|
||||
LanguageDetectionListener.init();
|
||||
BrowserOnClick.init();
|
||||
FeedHandler.init();
|
||||
DevEdition.init();
|
||||
|
|
@ -5688,16 +5686,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,
|
||||
|
||||
|
|
|
|||
|
|
@ -677,10 +677,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>
|
||||
|
|
|
|||
|
|
@ -558,13 +558,6 @@ var PageStyleHandler = {
|
|||
};
|
||||
PageStyleHandler.init();
|
||||
|
||||
// Keep a reference to the translation content handler to avoid it it being GC'ed.
|
||||
var trHandler = null;
|
||||
if (Services.prefs.getBoolPref("browser.translation.detectLanguage")) {
|
||||
Cu.import("resource:///modules/translation/TranslationContentHandler.jsm");
|
||||
trHandler = new TranslationContentHandler(global, docShell);
|
||||
}
|
||||
|
||||
function gKeywordURIFixup(fixupInfo) {
|
||||
fixupInfo.QueryInterface(Ci.nsIURIFixupInfo);
|
||||
if (!fixupInfo.consumer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue