Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Nicolas Chevobbe 8048a7981b Bug 1801337 - Fix uninstall on sitepermission AddonCard created on the AOM onInstalled event. r=rpl.
There are 2 folds to this patch.

First, the `SitePermsAddonInstalling` was calling its parent constructor (`SitePermsAddonWrapper`),
without the expected permissions parameter. This would then lead to the `uninstall`
method to not do anything as there were no permissions.
This is fixed by passing the permission for which we want to install the addon.

Second, if multiple addons were installed for the same origin (e.g. "midi" and "midi-sysex")
while about:addons was open, removing the addon would only revoke the "first" permission,
as `SitePermsAddonInstalling` only holds one permission.
To fix this, we define an `SitePermsAddonInstalling#uninstall` method that checks
if we registered a `SitePermsAddonWrapper` instance for this origin, and in such
case, uninstall the addon from this instance instead of the `SitePermsAddonInstalling`,
one, as the `SitePermsAddonWrapper` instance has the whole set of permissions
granted for a given origin.

Test cases are added to ensure we don't regress this.

Differential Revision: https://phabricator.services.mozilla.com/D162431
2022-11-23 08:54:07 +00:00
.cargo Bug 1799402 - Vendor wpf-gpu-raster Rust crate. r=jrmuizel,supply-chain-reviewers 2022-11-12 08:06:43 +00:00
.vscode
accessible Bug 1778433 part 3: Remove defunct *AccessibleWrap types. r=nlapre 2022-11-22 04:55:11 +00:00
browser Bug 1792775 - Part 11.1: Update expected test results in non-SpiderMonkey files. r=platform-i18n-reviewers,gregtatum 2022-11-23 08:43:23 +00:00
build Bug 1801746 - Fail more gracefully when rustc is not found after bug 1791476. r=firefox-build-system-reviewers,ahochheiden 2022-11-22 20:45:11 +00:00
caps Backed out changeset 02a9e51358f1 (bug 1792138) for causing mochitests failures on browser_ext_windows_create_url.js. CLOSED TREE 2022-11-17 18:38:00 +02:00
chrome Bug 1799314 - Convert consumers of testing modules to import ES modules direct (miscellaneous). r=mossop 2022-11-17 12:00:32 +00:00
config Bug 1792775 - Part 2: Update in-tree ICU to 72. r=platform-i18n-reviewers,dminor 2022-11-23 08:38:46 +00:00
devtools Bug 1800836 - [devtools] Stop passing the NetworkEvent owner to NetworkUtils.sys.mjs r=bomsy 2022-11-22 20:02:15 +00:00
docs Bug 1801651: update sorting of mots module r=glob 2022-11-22 16:21:50 +00:00
docshell Bug 1793834 - part 1/12: adding a mostly-empty about:windows-messages page r=Gijs,fluent-reviewers,flod 2022-11-22 03:44:51 +00:00
dom Bug 1640128 - Support inline style/script hashes from default-src. r=freddyb 2022-11-23 08:29:12 +00:00
editor Bug 1799314 - Convert consumers of testing modules to import ES modules direct (miscellaneous). r=mossop 2022-11-17 12:00:32 +00:00
extensions Bug 1800927: Fix the Updatebot linter and offending moz.yaml files r=ahal,webdriver-reviewers 2022-11-21 19:35:16 +00:00
gfx Bug 1792775 - Part 9: Handle new script codes in GetCommonFallbackFonts. r=platform-i18n-reviewers,jfkthame 2022-11-23 08:43:21 +00:00
gradle/wrapper
hal Bug 1800412 - Add a preference to control whether the EcoQoS is used for background content processes, r=gsvelto. 2022-11-14 12:10:55 +00:00
image Bug 1800979 - Mark CSS image value loads as not cancelable. r=tnikkel 2022-11-20 00:22:20 +00:00
intl Bug 1792775 - Part 11.1: Update expected test results in non-SpiderMonkey files. r=platform-i18n-reviewers,gregtatum 2022-11-23 08:43:23 +00:00
ipc Bug 1790816 - Reformat ipc/ with isort. r=mccr8 DONTBUILD 2022-11-22 11:07:46 +00:00
js Bug 1792775 - Part 14: Temporarily disable some test262 tests. r=dminor 2022-11-23 08:43:24 +00:00
layout Backed out changeset b893eee8c864 (bug 1800969) for causing failures in test_css-properties-db.js CLOSED TREE 2022-11-23 08:39:01 +02:00
media Bug 1800927: Fix the Updatebot linter and offending moz.yaml files r=ahal,webdriver-reviewers 2022-11-21 19:35:16 +00:00
memory Bug 1799630 - replace sprintf by snprintf or SprintfLiteral r=emilio 2022-11-10 07:01:11 +00:00
mfbt Bug 1800293 - mfbt: Don't use std::is_literal_type when compiling as C++20. r=glandium 2022-11-16 00:54:27 +00:00
mobile Bug 1772920 - Port osfile.jsm usage to IOUtils in mobile/android/ r=geckoview-reviewers,extension-reviewers,m_kato,robwu 2022-11-22 21:52:58 +00:00
modules Bug 1801291 - Enable MV3 by default. r=rpl 2022-11-22 16:43:11 +00:00
mozglue Bug 1799952 - Add rust-analyzer scip index for Searchfox. r=asuth,glandium 2022-11-21 08:07:27 +00:00
netwerk Bug 1797947 - Make devtools generated fetch requests excluded from resource timing r=jdescottes,valentin,necko-reviewers 2022-11-22 14:24:19 +00:00
nsprpub
other-licenses Bug 1800048: Don't expose the LINKS_TO relation via ATK and IA2. r=morgan 2022-11-15 06:46:24 +00:00
parser Bug 1709012 - Remove NS_ASSERTION about executor queue being empty upon destruction. r=edgar 2022-11-22 12:30:04 +00:00
python Bug 1798283 - Add a subcommand cargo clippy to mach. r=glandium 2022-11-22 23:55:13 +00:00
remote Bug 1790816 - Reformat remote/ with isort. r=webdriver-reviewers,whimboo DONTBUILD 2022-11-22 10:59:05 +00:00
security No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM 2022-11-21 14:06:35 +00:00
services Bug 1801059: Fix Error syncing tabs in tps tests r=isabel_rios 2022-11-22 18:24:39 +00:00
servo Backed out changeset b893eee8c864 (bug 1800969) for causing failures in test_css-properties-db.js CLOSED TREE 2022-11-23 08:39:01 +02:00
startupcache
storage Bug 1799314 - Convert consumers of testing modules to import ES modules direct (miscellaneous). r=mossop 2022-11-17 12:00:32 +00:00
supply-chain Bug 1799442 - Update Glean to v51.8.2, rkv to 0.18 r=janerik,supply-chain-reviewers 2022-11-18 13:56:27 +00:00
taskcluster Bug 1795042 - [ci] Migrate 'system-symbols-reprocess' tasks from AWS -> GCP, r=MasterWayZ 2022-11-22 16:12:37 +00:00
testing Bug 1640128 - Support inline style/script hashes from default-src. r=freddyb 2022-11-23 08:29:12 +00:00
third_party Bug 1800927: Fix the Updatebot linter and offending moz.yaml files r=ahal,webdriver-reviewers 2022-11-21 19:35:16 +00:00
toolkit Bug 1801337 - Fix uninstall on sitepermission AddonCard created on the AOM onInstalled event. r=rpl. 2022-11-23 08:54:07 +00:00
tools Bug 1801448 - Port osfile.jsm usage to IOUtils in tools/ r=gregtatum 2022-11-22 20:25:07 +00:00
uriloader Backed out changeset 02a9e51358f1 (bug 1792138) for causing mochitests failures on browser_ext_windows_create_url.js. CLOSED TREE 2022-11-17 18:38:00 +02:00
view Bug 1800992 - Invalidate frame in nsView::WindowResized. r=tnikkel 2022-11-23 06:45:41 +00:00
widget Bug 1801844 - Remove some min-widget-size for various menuitem bits. r=cmartin 2022-11-22 17:08:26 +00:00
xpcom Bug 1790816 - Reformat xpcom/ with isort. r=mccr8 DONTBUILD 2022-11-22 13:37:48 +00:00
xpfe/appshell Bug 1801031 - Use attribute atoms for screenX/screenY in one more place. r=smaug 2022-11-18 13:32:33 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore
.cron.yml Bug 1666491 - Add a eslint-build tester (tier 3) that depends on xpt artifacts. r=nalexander,releng-reviewers,gbrown 2022-11-17 10:57:41 +00:00
.eslintignore Bug 1794693 - [devtools] Convert source-map jest test into mochitests. r=bomsy 2022-11-08 16:01:01 +00:00
.eslintrc-test-paths.js
.eslintrc.js Bug 1799314 - Convert most of the JSM modules in testing/ to ES modules. r=ahal 2022-11-17 12:00:25 +00:00
.flake8
.git-blame-ignore-revs
.gitattributes
.gitignore
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Backed out 2 changesets (bug 1801426, bug 1790483) for causing bc failures on browser_all_files_referenced.js. CLOSED TREE 2022-11-23 03:09:29 +02:00
.hgtags No bug - tagging 41c78f88417ab2629a8f39dd4f4cbb56e59bbf85 with FIREFOX_NIGHTLY_108_END a=release DONTBUILD CLOSED TREE 2022-11-14 15:13:16 +00:00
.isort.cfg
.lando.ini Bug 1801965: update .lando.ini file for new autoformatting implementation r=zeid DONTBUILD 2022-11-22 20:19:59 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1799442 - Update Glean to v51.8.2, rkv to 0.18 r=janerik,supply-chain-reviewers 2022-11-18 13:56:27 +00:00
Cargo.lock Bug 1801767 - Remove fs::remove_dir_all usage in remove_disk_cache() r=gfx-reviewers,bradwerth 2022-11-22 05:35:25 +00:00
Cargo.toml
client.mk
client.py
CLOBBER Bug 1792775 - Part 13: Updating ICU requires a clobber. r=platform-i18n-reviewers,dminor 2022-11-23 08:43:24 +00:00
configure
configure.py
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach
mach.cmd
mach.ps1
Makefile.in
mots.yaml Bug 1801651: update sorting of mots module r=glob 2022-11-22 16:21:50 +00:00
moz.build
moz.configure
mozilla-config.h.in
old-configure.in
package-lock.json
package.json
README.txt
settings.gradle Bug 1740799 - Add android-format lint test. r=nalexander,linter-reviewers,sylvestre 2022-11-18 00:55:03 +00:00
substitute-local-geckoview.gradle
test.mozbuild

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.