/
0006-Remove-tracking-protection-panel-from-url-bar.patch
125 lines (109 loc) · 4.54 KB
/
0006-Remove-tracking-protection-panel-from-url-bar.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
From: Sam Macbeth <sam@cliqz.com>
Date: Fri, 11 Sep 2020 15:34:04 +0200
Subject: Remove tracking protection panel from url bar
---
.../base/content/appmenu-viewcache.inc.xhtml | 2 ++
browser/base/content/browser-siteIdentity.js | 8 ++++----
browser/base/content/browser.js | 20 +++++++++----------
browser/base/content/browser.xhtml | 2 +-
4 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/browser/base/content/appmenu-viewcache.inc.xhtml b/browser/base/content/appmenu-viewcache.inc.xhtml
index 204b84f000..24af9db9fa 100644
--- a/browser/base/content/appmenu-viewcache.inc.xhtml
+++ b/browser/base/content/appmenu-viewcache.inc.xhtml
@@ -24,6 +24,7 @@
oncommand="gSync.toggleAccountPanel(this, event)"/>
</toolbaritem>
<toolbarseparator class="sync-ui-item"/>
+ <!--
<toolbaritem>
<toolbarbutton id="appMenu-protection-report-button"
class="subviewbutton subviewbutton-iconic"
@@ -35,6 +36,7 @@
</label>
</toolbarbutton>
</toolbaritem>
+ -->
<toolbarseparator id="appMenu-tp-separator"/>
<toolbarbutton id="appMenu-new-window-button"
class="subviewbutton subviewbutton-iconic"
diff --git a/browser/base/content/browser-siteIdentity.js b/browser/base/content/browser-siteIdentity.js
index 905232e41d..ace7caba66 100644
--- a/browser/base/content/browser-siteIdentity.js
+++ b/browser/base/content/browser-siteIdentity.js
@@ -907,10 +907,10 @@ var gIdentityHandler = {
}
// Hide the shield icon if it is a chrome page.
- gProtectionsHandler._trackingProtectionIconContainer.classList.toggle(
- "chromeUI",
- this._isSecureInternalUI
- );
+ // gProtectionsHandler._trackingProtectionIconContainer.classList.toggle(
+ // "chromeUI",
+ // this._isSecureInternalUI
+ // );
},
/**
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index 678f147171..598b45ba49 100644
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1908,7 +1908,7 @@ var gBrowserInit = {
BookmarkingUI.init();
BrowserSearch.delayedStartupInit();
- gProtectionsHandler.init();
+ // gProtectionsHandler.init();
HomePage.delayedStartup().catch(Cu.reportError);
let safeMode = document.getElementById("helpSafeMode");
@@ -2502,7 +2502,7 @@ var gBrowserInit = {
Services.prefs.removeObserver(ctrlTab.prefName, ctrlTab);
ctrlTab.uninit();
gBrowserThumbnails.uninit();
- gProtectionsHandler.uninit();
+ // gProtectionsHandler.uninit();
FullZoom.destroy();
Services.obs.removeObserver(gIdentityHandler, "perm-changed");
@@ -5257,7 +5257,7 @@ var XULBrowserWindow = {
const nsIWebProgressListener = Ci.nsIWebProgressListener;
let browser = gBrowser.selectedBrowser;
- gProtectionsHandler.onStateChange(aWebProgress, aStateFlags);
+ // gProtectionsHandler.onStateChange(aWebProgress, aStateFlags);
if (
aStateFlags & nsIWebProgressListener.STATE_START &&
@@ -5431,7 +5431,7 @@ var XULBrowserWindow = {
gPermissionPanel.onLocationChange();
- gProtectionsHandler.onLocationChange();
+ // gProtectionsHandler.onLocationChange();
BrowserPageActions.onLocationChange();
@@ -5589,12 +5589,12 @@ var XULBrowserWindow = {
);
}
- gProtectionsHandler.onContentBlockingEvent(
- aEvent,
- aWebProgress,
- aIsSimulated,
- this._event // previous content blocking event
- );
+ // gProtectionsHandler.onContentBlockingEvent(
+ // aEvent,
+ // aWebProgress,
+ // aIsSimulated,
+ // this._event // previous content blocking event
+ // );
// We need the state of the previous content blocking event, so update
// event after onContentBlockingEvent is called.
diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml
index 82fd0d32d6..4a8a14bfca 100644
--- a/browser/base/content/browser.xhtml
+++ b/browser/base/content/browser.xhtml
@@ -71,7 +71,7 @@
<link rel="localization" href="browser/browserContext.ftl"/>
<link rel="localization" href="browser/browserSets.ftl"/>
<link rel="localization" href="browser/menubar.ftl"/>
- <link rel="localization" href="browser/protectionsPanel.ftl"/>
+ <!-- <link rel="localization" href="browser/protectionsPanel.ftl"/> -->
<link rel="localization" href="browser/appmenu.ftl"/>
<link rel="localization" href="preview/interventions.ftl"/>
<link rel="localization" href="browser/sidebarMenu.ftl"/>
--
2.32.0