forked from Feodor2/Mypal68
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change and remove things in extensions
- Loading branch information
Fedor
committed
Oct 6, 2023
1 parent
25620e4
commit 5ce6c62
Showing
189 changed files
with
296 additions
and
15,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,14 +51,6 @@ pref("extensions.webextensions.default-content-security-policy", "script-src 'se | |
pref("extensions.webextensions.remote", true); | ||
pref("extensions.webextensions.background-delayed-startup", true); | ||
|
||
// Extensions that should not be flagged as legacy in about:addons | ||
pref("extensions.legacy.exceptions", "[email protected],@testpilot-containers,jid1-NeEaf3sAHdKHPA@jetpack,@activity-streams,[email protected],@testpilot-addon,@min-vid,[email protected],[email protected],[email protected],[email protected]"); | ||
|
||
// Require signed add-ons by default | ||
pref("extensions.langpacks.signatures.required", false); | ||
pref("xpinstall.signatures.required", false); | ||
pref("xpinstall.signatures.devInfoURL", "data:text/plain,"); | ||
|
||
// Dictionary download preference | ||
pref("browser.dictionaries.download.url", "data:text/plain,"); | ||
|
||
|
@@ -717,7 +709,7 @@ pref("browser.preferences.search", true); | |
pref("browser.preferences.defaultPerformanceSettings.enabled", true); | ||
|
||
pref("browser.download.show_plugins_in_list", true); | ||
pref("browser.download.hide_plugins_without_extensions", true); | ||
pref("browser.download.hide_plugins_without_extensions", false); | ||
|
||
// Backspace and Shift+Backspace behavior | ||
// 0 goes Back/Forward | ||
|
@@ -1582,8 +1574,6 @@ pref("browser.tabs.crashReporting.requestEmail", false); | |
pref("browser.tabs.crashReporting.emailMe", false); | ||
pref("browser.tabs.crashReporting.email", ""); | ||
|
||
pref("extensions.legacy.enabled", false); | ||
|
||
// How often to check for CPOW timeouts. CPOWs are only timed out by | ||
// the hang monitor. | ||
pref("dom.ipc.cpow.timeout", 500); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,6 @@ const { AddonTestUtils } = ChromeUtils.import( | |
|
||
AddonTestUtils.initMochitest(this); | ||
|
||
hookExtensionsTelemetry(); | ||
AddonTestUtils.hookAMTelemetryEvents(); | ||
|
||
const ID_PERMS = "[email protected]"; | ||
const ID_ORIGINS = "[email protected]"; | ||
|
||
|
@@ -27,8 +24,6 @@ add_task(async function setup() { | |
// We don't have pre-pinned certificates for the local mochitest server | ||
["extensions.install.requireBuiltInCerts", false], | ||
["extensions.update.requireBuiltInCerts", false], | ||
// Don't require the extensions to be signed | ||
["xpinstall.signatures.required", false], | ||
], | ||
}); | ||
|
||
|
@@ -92,23 +87,6 @@ async function testNoPrompt(origUrl, id) { | |
await addon.uninstall(); | ||
await SpecialPowers.popPrefEnv(); | ||
|
||
// Test that the expected telemetry events have been recorded (and that they do not | ||
// include the permission_prompt event). | ||
const amEvents = AddonTestUtils.getAMTelemetryEvents(); | ||
const updateEventsSteps = amEvents | ||
.filter(evt => { | ||
return evt.method === "update" && evt.extra && evt.extra.addon_id == id; | ||
}) | ||
.map(evt => { | ||
return evt.extra.step; | ||
}); | ||
|
||
// Expect telemetry events related to a completed update with no permissions_prompt event. | ||
Assert.deepEqual( | ||
updateEventsSteps, | ||
["started", "download_started", "download_completed", "completed"], | ||
"Got the steps from the collected telemetry events" | ||
); | ||
} | ||
|
||
// Test that an update that adds new non-promptable permissions is just | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.