morgan pushed to branch base-browser-128.3.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
520cda9e
by Morgan at 2024-10-01T20:36:57+00:00
5 changed files:
- browser/components/about/AboutRedirector.cpp
- browser/components/about/components.conf
- docshell/base/nsAboutRedirector.cpp
- docshell/build/components.conf
- toolkit/content/jar.mn
Changes:
... | ... | @@ -86,9 +86,11 @@ static const RedirEntry kRedirMap[] = { |
86 | 86 | {"rights", "chrome://global/content/aboutRights.xhtml",
|
87 | 87 | nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
88 | 88 | nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
|
89 | +#ifndef BASE_BROWSER_VERSION
|
|
89 | 90 | {"robots", "chrome://browser/content/aboutRobots.xhtml",
|
90 | 91 | nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
91 | 92 | nsIAboutModule::ALLOW_SCRIPT},
|
93 | +#endif
|
|
92 | 94 | {"sessionrestore", "chrome://browser/content/aboutSessionRestore.xhtml",
|
93 | 95 | nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
|
94 | 96 | nsIAboutModule::IS_SECURE_CHROME_UI},
|
... | ... | @@ -23,7 +23,7 @@ pages = [ |
23 | 23 | 'reader',
|
24 | 24 | 'restartrequired',
|
25 | 25 | 'rights',
|
26 | - 'robots',
|
|
26 | + # Removed 'robots'. tor-browser#42831.
|
|
27 | 27 | 'sessionrestore',
|
28 | 28 | 'settings',
|
29 | 29 | # Removed 'shoppingsidebar'. tor-browser#42831.
|
... | ... | @@ -135,8 +135,10 @@ static const RedirEntry kRedirMap[] = { |
135 | 135 | nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
|
136 | 136 | nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
|
137 | 137 | nsIAboutModule::IS_SECURE_CHROME_UI},
|
138 | +#ifndef BASE_BROWSER_VERSION
|
|
138 | 139 | {"mozilla", "chrome://global/content/mozilla.html",
|
139 | 140 | nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT},
|
141 | +#endif
|
|
140 | 142 | #if !defined(ANDROID) && !defined(XP_WIN)
|
141 | 143 | {"webauthn", "chrome://global/content/aboutWebauthn.html",
|
142 | 144 | nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
|
... | ... | @@ -181,15 +183,17 @@ static const RedirEntry kRedirMap[] = { |
181 | 183 | {"windows-messages", "chrome://global/content/aboutWindowsMessages.html",
|
182 | 184 | nsIAboutModule::ALLOW_SCRIPT},
|
183 | 185 | #endif
|
184 | -#ifndef MOZ_GLEAN_ANDROID
|
|
186 | +#ifdef MOZ_TELEMETRY_REPORTING
|
|
187 | +# ifndef MOZ_GLEAN_ANDROID
|
|
185 | 188 | {"glean", "chrome://global/content/aboutGlean.html",
|
186 | -# if !defined(NIGHTLY_BUILD) && defined(MOZILLA_OFFICIAL)
|
|
189 | +# if !defined(NIGHTLY_BUILD) && defined(MOZILLA_OFFICIAL)
|
|
187 | 190 | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
|
188 | -# endif
|
|
191 | +# endif
|
|
189 | 192 | nsIAboutModule::ALLOW_SCRIPT},
|
190 | -#endif
|
|
193 | +# endif
|
|
191 | 194 | {"telemetry", "chrome://global/content/aboutTelemetry.xhtml",
|
192 | 195 | nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
|
196 | +#endif
|
|
193 | 197 | {"translations", "chrome://global/content/translations/translations.html",
|
194 | 198 | nsIAboutModule::ALLOW_SCRIPT |
|
195 | 199 | nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
... | ... | @@ -200,8 +204,10 @@ static const RedirEntry kRedirMap[] = { |
200 | 204 | {"url-classifier", "chrome://global/content/aboutUrlClassifier.xhtml",
|
201 | 205 | nsIAboutModule::ALLOW_SCRIPT},
|
202 | 206 | #endif
|
207 | +#ifdef MOZ_WEBRTC
|
|
203 | 208 | {"webrtc", "chrome://global/content/aboutwebrtc/aboutWebrtc.html",
|
204 | 209 | nsIAboutModule::ALLOW_SCRIPT},
|
210 | +#endif
|
|
205 | 211 | {"crashparent", "about:blank", nsIAboutModule::HIDE_FROM_ABOUTABOUT},
|
206 | 212 | {"crashcontent", "about:blank",
|
207 | 213 | nsIAboutModule::HIDE_FROM_ABOUTABOUT |
|
... | ... | @@ -22,7 +22,7 @@ about_pages = [ |
22 | 22 | 'logging',
|
23 | 23 | 'logo',
|
24 | 24 | 'memory',
|
25 | - 'mozilla',
|
|
25 | + # Removed 'mozilla'. tor-browser#42831.
|
|
26 | 26 | 'neterror',
|
27 | 27 | 'networking',
|
28 | 28 | 'performance',
|
... | ... | @@ -30,20 +30,22 @@ about_pages = [ |
30 | 30 | 'serviceworkers',
|
31 | 31 | 'srcdoc',
|
32 | 32 | 'support',
|
33 | - 'telemetry',
|
|
34 | 33 | 'translations',
|
35 | - 'url-classifier',
|
|
36 | - 'webrtc',
|
|
34 | + # Removed 'url-classifier'. tor-browser#42831.
|
|
37 | 35 | ]
|
38 | 36 | |
39 | 37 | if defined('MOZ_CRASHREPORTER'):
|
40 | 38 | about_pages.append('crashes')
|
39 | +if defined('MOZ_TELEMETRY_REPORTING'):
|
|
40 | + about_pages.append('telemetry')
|
|
41 | +if defined('MOZ_WEBRTC'):
|
|
42 | + about_pages.append('webrtc')
|
|
41 | 43 | if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'android':
|
42 | 44 | about_pages.append('profiles')
|
43 | 45 | if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
44 | 46 | about_pages.append('third-party')
|
45 | 47 | about_pages.append('windows-messages')
|
46 | -if not defined('MOZ_GLEAN_ANDROID'):
|
|
48 | +if defined('MOZ_TELEMETRY_REPORTING') and not defined('MOZ_GLEAN_ANDROID'):
|
|
47 | 49 | about_pages.append('glean')
|
48 | 50 | if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'android' and buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'windows':
|
49 | 51 | about_pages.append('webauthn')
|
... | ... | @@ -23,6 +23,7 @@ toolkit.jar: |
23 | 23 | #endif
|
24 | 24 | content/global/aboutServiceWorkers.js
|
25 | 25 | content/global/aboutServiceWorkers.xhtml
|
26 | +#ifdef MOZ_WEBRTC
|
|
26 | 27 | content/global/aboutwebrtc/aboutWebrtc.css (aboutwebrtc/aboutWebrtc.css)
|
27 | 28 | content/global/aboutwebrtc/aboutWebrtc.mjs (aboutwebrtc/aboutWebrtc.mjs)
|
28 | 29 | content/global/aboutwebrtc/graph.mjs (aboutwebrtc/graph.mjs)
|
... | ... | @@ -31,16 +32,19 @@ toolkit.jar: |
31 | 32 | content/global/aboutwebrtc/disclosure.mjs (aboutwebrtc/disclosure.mjs)
|
32 | 33 | content/global/aboutwebrtc/copyButton.mjs (aboutwebrtc/copyButton.mjs)
|
33 | 34 | content/global/aboutwebrtc/aboutWebrtc.html (aboutwebrtc/aboutWebrtc.html)
|
35 | +#endif
|
|
34 | 36 | content/global/aboutSupport.js
|
35 | 37 | * content/global/aboutSupport.xhtml
|
36 | -#ifndef MOZ_GLEAN_ANDROID
|
|
38 | +#ifdef MOZ_TELEMETRY_REPORTING
|
|
39 | +# ifndef MOZ_GLEAN_ANDROID
|
|
37 | 40 | content/global/aboutGlean.js
|
38 | 41 | content/global/aboutGlean.html
|
39 | 42 | content/global/aboutGlean.css
|
40 | -#endif
|
|
43 | +# endif
|
|
41 | 44 | content/global/aboutTelemetry.js
|
42 | 45 | content/global/aboutTelemetry.xhtml
|
43 | 46 | content/global/aboutTelemetry.css
|
47 | +#endif
|
|
44 | 48 | content/global/aboutUrlClassifier.js
|
45 | 49 | content/global/aboutUrlClassifier.xhtml
|
46 | 50 | content/global/aboutUrlClassifier.css
|