Implement process crash UI
Categories
(Fenix :: WebExtensions, enhancement)
Tracking
(firefox117 wontfix, firefox118 verified, firefox119 verified)
People
(Reporter: willdurand, Assigned: zmckenney)
References
(Blocks 1 open bug)
Details
(Whiteboard: [addons-jira])
Attachments
(7 files)
85.87 KB,
image/png
|
Details | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
106.29 KB,
image/png
|
Details | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
682.84 KB,
image/jpeg
|
Details | |
3.40 MB,
image/jpeg
|
Details |
Once Bug 1819737 lands, we'll have a new delegate method that will notify Fenix when a process crash has happened. When that is the case and when the process is stopped by Gecko, we'll need to show some UI to users asking them to either be "ok with continuing without extensions for the rest of the session" OR "try to restart" the extensions process again (which might cause it to crash again).
Updated•1 year ago
|
Comment hidden (obsolete) |
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 3•1 year ago
|
||
Here is the updated spec from UX. That's what we want to ship.
Comment 4•1 year ago
|
||
Authored by Zac McKenney
https://github.com/mozilla-mobile/firefox-android/commit/0cc85ed36c62b5ea3516b8c96f3a01043cebc3c9
[main] Bug 1846979 - Add extensions process crash dialog strings.
Comment 5•1 year ago
|
||
Reporter | ||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
Authored by Zac McKenney
https://github.com/mozilla-mobile/firefox-android/commit/2c533231b6886b1359065b7adac11fa1139aa4dc
[main] Bug 1846979 - Add extensions process spawning disabled dialog
Reporter | ||
Comment 7•1 year ago
|
||
For QA...
Prerequisite:
The extensions process must be enabled on Firefox for Android. Currently the STR are:
- install
nimbus-cli
- create a file named
feature.json
and add the following content into it:{ "enabled": true }
- run:
nimbus-cli --app fenix --channel nightly test-feature extensions-process ./feature.json
That command in (3) will load the experiment in fenix and that should also enable the extensions process.
You can unlock the "debug menu" in fenix by taping a few times to the Firefox logo in "Settings > About Firefox Nightly", this will add a "Nimbus Experiments" menu item, and the "extensions-process" nimbus feature should be listed there.
STR:
- With the extensions process enabled, install an add-on, e.g. uBlock Origin
- Open a new tab and go to
about:processes
, there should be an extensions process - Open a new tab and go to
about:crashextensions
- Reload the tab in (3) to crash the extensions process again. Repeat 4 times. At this point, the process has crashed 5 times.
- Reload the tab in (3) one more time
Expected: a dialog is shown (more or less like in Comment 3) and about:processes
should not have any extensions process anymore
If you click "try restarting add-ons", you should expect the extensions process to be listed in about:processes
again.
If you click "continue with add-ons disabled", no extensions process should be listed in about:processes
.
Reporter | ||
Comment 8•1 year ago
|
||
:mixedpuppy as per the uplift request process guide (which explains why I need your approval ;-)), I'd like to nominate the PR #3472 as a candidate to backport to the 118 branch so that we have the whole UI for the experiment. Are you OK with that? Thanks!
Comment 9•1 year ago
|
||
(In reply to William Durand [:willdurand] from comment #8)
:mixedpuppy as per the uplift request process guide (which explains why I need your approval ;-)), I'd like to nominate the PR #3472 as a candidate to backport to the 118 branch so that we have the whole UI for the experiment. Are you OK with that? Thanks!
approved
Comment 10•1 year ago
|
||
Reporter | ||
Comment 11•1 year ago
|
||
Comment on attachment 9351800 [details] [review]
[mozilla-mobile/firefox-android] Bug 1846979 - Add extensions process spawning disabled dialog (backport #3472) (#3513)
Beta/Release Uplift Approval Request
- User impact if declined: None.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch is covered by tests and has been manually verified. We'd need this patch in 118 because it adds UI in Fenix for an experiment (extensions process).
- String changes made/needed:
- Is Android affected?: Yes
Comment 12•1 year ago
|
||
Verified as Fixed. Tested on the latest Nightly for Android (119.0a1/Build #2015972707, d110b3c281+)(GV: 119.0a1-20230906214643)(AS: 119.20230906050317) based on the STR from Comment 7.
Results:
- Crashing the extensions process 6 times consecutively will display the UI.
- Selecting “Try restarting add-ons” will restart the extensions process and it will be visible in about:processes
- Selecting “Continue with add-ons disabled” will not restart the extensions process and it will no longer be listed in about:processes
- In case “Continue with add-ons disabled” has been selected, the extensions process can be restarted by restarting the browser or by disabling/re-enabling an installed add-on.
For more details see the attached screenshot.
Comment 13•1 year ago
|
||
Comment 14•1 year ago
|
||
Comment on attachment 9351800 [details] [review] [mozilla-mobile/firefox-android] Bug 1846979 - Add extensions process spawning disabled dialog (backport #3472) (#3513) Approved for 118.0b6, thanks.
Comment 15•1 year ago
|
||
Authored by Zac McKenney
https://github.com/mozilla-mobile/firefox-android/commit/1a386d0be60c1322c5dd1bd859debc66a567aca3
[releases_v118] Bug 1846979 - Add extensions process spawning disabled dialog
Authored by https://github.com/pascalchevrel
https://github.com/mozilla-mobile/firefox-android/commit/9154a7d3978662973ac106796767b9c560217665
[releases_v118] Merge pull request #3513 from mozilla-mobile/mergify/bp/releases_v118/pr-3472
Comment 16•1 year ago
|
||
Verified as Fixed. Tested on the latest Beta for Android build available from https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v3.firefox-android.apks.fenix-beta.latest/arm64-v8a (118.0b6/Build #2015972923, 5b0ad0d350+)(GV: 118.0-20230907180212)(AS: 118) based on the STR from Comment 7.
Results:
- Crashing the extensions process 6 times consecutively will display the UI.
- Selecting “Try restarting add-ons” will restart the extensions process and it will be visible in about:processes
- Selecting “Continue with add-ons disabled” will not restart the extensions process and it will no longer be listed in about:processes
- In case “Continue with add-ons disabled” has been selected, the extensions process can be restarted by restarting the browser or by disabling/re-enabling an installed add-on.
For more details see the attached screenshot.
Comment 17•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•9 months ago
|
Description
•