gecko-dev/browser/components/extensions/child
Rob Wu 676bc162aa Bug 1905505 - Remove unnecessary resetIdleOnEvent from child modules r=rpl
This patch updates every use of EventManager in child/ext-*.js files
that can referenced from extension contexts of envType "addon_child".

Pre patch, these could trigger "background-script-reset-idle" and
result in triggering "background-script-reset-idle" in the parent
despite the background being stopped, and consequently trigger the
reported bug. The previous patch fixes the negative consequence of this
unexpected event, this patch fixes an underlying cause by removing the
triggers.

Forcing resetIdleOnEvent to false does not have any negative impact on
these modules, because all of these events are dependencies of an
EventManager in the parent, which already activates the functionality
associated with resetIdleOnEvent=true.

To minimize the likelihood of affecting unit tests, this patch keeps the
EventManager of test.onMessage at resetIdleOnEvent=true as before, and
defers to bug 1901294 for changing it to false.

Differential Revision: https://phabricator.services.mozilla.com/D215298
2024-07-01 17:07:10 +00:00
..
.eslintrc.js
ext-browser-content-only.js
ext-browser.js
ext-devtools-inspectedWindow.js
ext-devtools-network.js
ext-devtools-panels.js
ext-devtools.js
ext-menus-child.js
ext-menus.js Bug 1905505 - Remove unnecessary resetIdleOnEvent from child modules r=rpl 2024-07-01 17:07:10 +00:00
ext-omnibox.js Bug 1905505 - Remove unnecessary resetIdleOnEvent from child modules r=rpl 2024-07-01 17:07:10 +00:00
ext-tabs.js