Closed
Bug 1162531
Opened 8 years ago
Closed 8 years ago
Add a test for distribution add-on installations
Categories
(Firefox for Android Graveyard :: Add-on Manager, defect)
Firefox for Android Graveyard
Add-on Manager
Tracking
(firefox41 fixed)
RESOLVED
FIXED
Firefox 41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: Margaret, Assigned: Margaret)
References
Details
Attachments
(1 file)
8.61 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
I discovered this while working on bug 1004517. I suspect there is some race between add-on installation and initializing our home config listeners.
Assignee | ||
Comment 1•8 years ago
|
||
What's happening here is that distribution add-ons never appear to have their startup method called with the ADDON_INSTALL reason, so my home panel add-on didn't install the panel. To work around this, I can just store a pref in the add-on to know whether or not to install the panel. However, it seems like a bug that the install logic never fires for these add-ons, since that would break bundling other bootstrap add-ons that have special install logic. Regardless, I will add a testcase to testDistribution to cover add-ons, since we don't currently have that.
Assignee | ||
Comment 2•8 years ago
|
||
This is fixed with my patch for bug 923581. But I will add a test here.
Depends on: 923581
Summary: Home panels in distribution add-ons do not appear in about:home → Add a test for distribution add-on installations
Assignee | ||
Comment 3•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=349a238f2c47 I added this add-on to our mock distribution: https://github.com/leibovic/distribution-test
Attachment #8605449 -
Flags: review?(rnewman)
Comment 4•8 years ago
|
||
Comment on attachment 8605449 [details] [diff] [review] Add test for add-ons in distributions Review of attachment 8605449 [details] [diff] [review]: ----------------------------------------------------------------- > Modified Binary File: mobile/android/tests/browser/robocop/assets/mock-package.zip I trust you! ::: mobile/android/tests/browser/robocop/testDistribution.java @@ +376,5 @@ > + > + JSONObject data = null; > + int requestId = -1; > + > + // Wait until we get the correct "Preferences:Data" event This code is shared with checkPreferences; refactor out a `getPrefs` private method. Array of names in, JSONObject out.
Attachment #8605449 -
Flags: review?(rnewman) → review+
Updated•8 years ago
|
Status: NEW → ASSIGNED
Version: Firefox 35 → Trunk
Assignee | ||
Comment 5•8 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/c113a1280020
Comment 6•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c113a1280020
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Updated•2 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•