mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
[Basilisk] Issue #2 - Remove Safebrowsing and TrackingProtection from the FE
This resolves #2
This commit is contained in:
parent
591a887bf3
commit
6cefc52d32
36 changed files with 0 additions and 1389 deletions
|
|
@ -50,11 +50,6 @@ Cu.import("resource://gre/modules/NotificationDB.jsm");
|
|||
["webrtcUI", "resource:///modules/webrtcUI.jsm", ]
|
||||
].forEach(([name, resource]) => XPCOMUtils.defineLazyModuleGetter(this, name, resource));
|
||||
|
||||
#ifdef MOZ_SAFE_BROWSING
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "SafeBrowsing",
|
||||
"resource://gre/modules/SafeBrowsing.jsm");
|
||||
#endif
|
||||
|
||||
// lazy service getters
|
||||
[
|
||||
["Favicons", "@mozilla.org/browser/favicon-service;1", "mozIAsyncFavicons"],
|
||||
|
|
@ -959,7 +954,6 @@ var gBrowserInit = {
|
|||
BrowserOnClick.init();
|
||||
FeedHandler.init();
|
||||
AboutPrivateBrowsingListener.init();
|
||||
TrackingProtection.init();
|
||||
RefreshBlocker.init();
|
||||
CaptivePortalWatcher.init();
|
||||
|
||||
|
|
@ -1168,11 +1162,6 @@ var gBrowserInit = {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef MOZ_SAFE_BROWSING
|
||||
// Bug 778855 - Perf regression if we do this here. To be addressed in bug 779008.
|
||||
setTimeout(function() { SafeBrowsing.init(); }, 2000);
|
||||
#endif
|
||||
|
||||
Services.obs.addObserver(gIdentityHandler, "perm-changed", false);
|
||||
Services.obs.addObserver(gSessionHistoryObserver, "browser:purge-session-history", false);
|
||||
Services.obs.addObserver(gXPInstallObserver, "addon-install-disabled", false);
|
||||
|
|
@ -1442,8 +1431,6 @@ var gBrowserInit = {
|
|||
|
||||
FeedHandler.uninit();
|
||||
|
||||
TrackingProtection.uninit();
|
||||
|
||||
RefreshBlocker.uninit();
|
||||
|
||||
CaptivePortalWatcher.uninit();
|
||||
|
|
@ -4188,7 +4175,6 @@ var XULBrowserWindow = {
|
|||
uri = Services.uriFixup.createExposableURI(uri);
|
||||
} catch (e) {}
|
||||
gIdentityHandler.updateIdentity(this._state, uri);
|
||||
TrackingProtection.onSecurityChange(this._state, aIsSimulated);
|
||||
},
|
||||
|
||||
// simulate all change notifications after switching tabs
|
||||
|
|
@ -7625,12 +7611,6 @@ var AboutPrivateBrowsingListener = {
|
|||
msg => {
|
||||
OpenBrowserWindow({private: true});
|
||||
});
|
||||
window.messageManager.addMessageListener(
|
||||
"AboutPrivateBrowsing:ToggleTrackingProtection",
|
||||
msg => {
|
||||
const PREF = "privacy.trackingprotection.pbmode.enabled";
|
||||
Services.prefs.setBoolPref(PREF, !Services.prefs.getBoolPref(PREF));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue