Closed
Bug 1388098
Opened 8 years ago
Closed 7 years ago
Fix disable/enable hides extension options on Firefox for Android
Categories
(WebExtensions :: Android, defect, P2)
WebExtensions
Android
Tracking
(firefox57 verified)
VERIFIED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | verified |
People
(Reporter: rpl, Assigned: rpl)
References
Details
Attachments
(2 files)
This is a follow up of Bug 1385880, which fixes the same issue on Firefox Desktop.
Now that Bug 1385880 has been landed on mozilla-central and it has introduced the `startupPromise` property on the `addon` wrapper object, we can use this promise to ensure that the webextension options ui iframe is shown as expected when the addon is disabled and immediately enabled from the "about:addons" page on Firefox for Android.
Assignee | ||
Updated•8 years ago
|
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8894560 -
Flags: review?(mixedpuppy)
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8894560 [details]
Bug 1388098 - Fix Android options_ui on disable/enable addon.
https://reviewboard.mozilla.org/r/165718/#review175554
::: mobile/android/components/extensions/test/mochitest/test_ext_options_ui.html:447
(Diff revision 3)
> + info("Wait the addon details to have been loaded");
> + await ContentTask.spawn(aboutAddonsTab.browser, addonID, waitAboutAddonsRendered);
> + await ContentTask.spawn(aboutAddonsTab.browser, addonID, navigateToAddonDetails);
> +
> + info("Wait the addon options page to have been loaded");
> + await extension.awaitMessage("options-page-loaded");
is there a potential race here with the above tasks?
Attachment #8894560 -
Flags: review?(mixedpuppy) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8894560 [details]
Bug 1388098 - Fix Android options_ui on disable/enable addon.
https://reviewboard.mozilla.org/r/165718/#review175554
> is there a potential race here with the above tasks?
The `browser.test` messages are collected by the extension test utils and so `extension.awaitMessage` should be resolve to handle it correctly (by resolving immediatelly if the message has been already received and collected or by waiting until the options page is able to load and send the test message, also if any `browser.test` message is still in the queue while the test is exiting, it is automatically detected and raised as an error).
Comment hidden (mozreview-request) |
Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/cd645c43199c
Fix Android options_ui on disable/enable addon. r=mixedpuppy
Comment 9•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Comment 10•7 years ago
|
||
This issue is verified as fixed on Fennec 57.0a1 (2017-09-07) under Android 6.0.1.
Options_ui is shown as expected when the extension is disabled and immediately enabled from the "about:addons" web page.
Please see the attached video.
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•