Closed Bug 2068978 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62407 - [Extensions] Implement runtime.onEnabled lifecycle event

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62407 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62407
Details from upstream follow.

Justin Lulejian <jlulejian@chromium.org> wrote:

[Extensions] Implement runtime.onEnabled lifecycle event

Currently, extensions have no standard lifecycle event to detect when
they are re-enabled after being disabled by the user or system. While
runtime.onInstalled fires on installation and update and
runtime.onStartup fires on browser profile startup, enabling an
extension does not trigger a dedicated notification to the extension.

With this change, extensions can listen to runtime.onEnabled, which
fires whenever an extension transitions from a disabled state to an
enabled state while the browser is running.

TAG=agy
CONV=852bdb46-5859-4cdd-9d25-ef2e63da3746

Low-Coverage-Reason: COVERAGE_UNDERREPORTED logic executed via extension doesn't seem to get reported.
Fixed: 550432518
Change-Id: I277fd4e05aa4e1e15929b006f6d95347fc510057
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8275812
Auto-Submit: Justin Lulejian \<jlulejian@chromium.org>
Commit-Queue: Justin Lulejian \<jlulejian@chromium.org>
Reviewed-by: Tim \<tjudkins@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1690907}

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Test result changes from PR not available.

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2444038098f4 https://hg.mozilla.org/integration/autoland/rev/334731bb2595 [wpt PR 62407] - [Extensions] Implement runtime.onEnabled lifecycle event, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.