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)

defect

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: nobody → lgreco
Blocks: 1302504
Status: NEW → ASSIGNED
Depends on: 1385880
Priority: -- → P2
Depends on: 1364945
Attachment #8894560 - Flags: review?(mixedpuppy)
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 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).
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/cd645c43199c Fix Android options_ui on disable/enable addon. r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Attached image Bug1388098.gif
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
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: