
ma1 pushed to branch tor-browser-115.23.0esr-13.5-1 at The Tor Project / Applications / Tor Browser Commits: b7bbc040 by hackademix at 2025-04-24T15:54:21+02:00 fixup! Firefox preference overrides. Disable the UITour API. - - - - - 336e1eba by Hubert Boma Manilla at 2025-04-24T18:11:51+02:00 Bug 1956698 - [devtools] Escape the method value r=devtools-reviewers,nchevobbe, a=dsmith Differential Revision: https://phabricator.services.mozilla.com/D243799 - - - - - 3 changed files: - browser/app/profile/001-base-profile.js - devtools/client/netmonitor/src/utils/powershell.js - devtools/client/netmonitor/test/browser_net_copy_as_powershell.js Changes: ===================================== browser/app/profile/001-base-profile.js ===================================== @@ -171,6 +171,12 @@ pref("browser.safebrowsing.provider.mozilla.updateURL", ""); pref("browser.safebrowsing.provider.mozilla.gethashURL", ""); pref("datareporting.healthreport.uploadEnabled", false); pref("datareporting.policy.dataSubmissionEnabled", false); + +// Disable the UITour API +// See tor-browser#41457 and +// https://bugzilla.mozilla.org/show_bug.cgi?id=1915280 +pref("browser.uitour.enabled", false); + // Make sure Unified Telemetry is really disabled, see: #18738. pref("toolkit.telemetry.unified", false); // This needs to be locked, or nightly builds will automatically lock it to true ===================================== devtools/client/netmonitor/src/utils/powershell.js ===================================== @@ -86,7 +86,7 @@ const PowerShell = { parameters.push(`-Uri ${escapeStr(url)}`); if (method !== "GET") { - parameters.push(`-Method ${method}`); + parameters.push(`-Method ${escapeStr(method)}`); } if (session.length) { ===================================== devtools/client/netmonitor/test/browser_net_copy_as_powershell.js ===================================== @@ -60,7 +60,7 @@ Invoke-WebRequest -UseBasicParsing -Uri "https://example.com/browser/devtools/cl $session.Cookies.Add((New-Object System.Net.Cookie("bob", "true", "/", "example.com"))) $session.Cookies.Add((New-Object System.Net.Cookie("tom", "cool", "/", "example.com"))) Invoke-WebRequest -UseBasicParsing -Uri "https://example.com/browser/devtools/client/netmonitor/test/sjs_simple-test-..." \` --Method POST \` +-Method "POST" \` -WebSession $session \` -UserAgent "${navigator.userAgent}" \` -Headers @{ @@ -89,7 +89,7 @@ Invoke-WebRequest -UseBasicParsing -Uri "https://example.com/browser/devtools/cl $session.Cookies.Add((New-Object System.Net.Cookie("bob", "true", "/", "example.com"))) $session.Cookies.Add((New-Object System.Net.Cookie("tom", "cool", "/", "example.com"))) Invoke-WebRequest -UseBasicParsing -Uri "https://example.com/browser/devtools/client/netmonitor/test/sjs_simple-test-..." \` --Method POST \` +-Method "POST" \` -WebSession $session \` -UserAgent "${navigator.userAgent}" \` -Headers @{ View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/57303f2... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/57303f2... You're receiving this email because of your account on gitlab.torproject.org.
participants (1)
-
ma1 (@ma1)