Closed Bug 990125 Opened 10 years ago Closed 10 years ago

Duplicate reminders to update apps

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect, P1)

15 Branch
ARM
Android
defect

Tracking

(firefox29 verified, firefox30 verified, firefox31 verified)

VERIFIED FIXED
Firefox 31
Tracking Status
firefox29 --- verified
firefox30 --- verified
firefox31 --- verified

People

(Reporter: lmandel, Assigned: myk)

References

Details

Attachments

(2 files)

I'm seeing duplicate reminders to update apps in my notification window. I expect that I should only see one notification at a time.
There are a couple different possible causes of this, but the one that seems most likely is that the automatic update service is running in each individual app process in addition to the main Fennec process.

We might actually want that in the future, so apps can update themselves if the user doesn't start Fennec.  But that's not how the updater is currently designed to work, so it's a bug for it to work like that today.
Assignee: nobody → myk
Status: NEW → ASSIGNED
Priority: -- → P1
Here's the minimal fix.  It adds a pref to enable the automatic webapp update check and disables it on webapp firstrun.

It might be better to remove the declarative WebappsUpdateTimer component registration and instead register the timer programmatically only when running Fennec against the default (non-webapp) profile.

But that's a bigger, riskier change, and I'm looking to minimize risk here to make this a candidate for uplift.  We can always do that later if it makes sense.  And in any case this whole "set a pref on firstrun for the webapp" codepath seems pretty well worn, as is the declarative component registration.  So maybe it's the right thing to do anyway.
Attachment #8405079 - Flags: review?(mark.finkle)
Comment on attachment 8405079 [details] [diff] [review]
patch v1: ignore automatic update checks in webapp processes

Someday, we might have a JSM that, among other things, provides an easy way to determine under what context the process is being run: browser, webapp, widget (GeckoView).

This seems workable for now. I suppose, when the time comes, we'd just remove the preference from the code and nothing will be affected.
Attachment #8405079 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/mozilla-central/rev/afc7a9404a5f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8405079 [details] [diff] [review]
patch v1: ignore automatic update checks in webapp processes

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
  Bug 934760 and its followups.

User impact if declined:
  Users will receive multiple notifications about updates.

Testing completed (on m-c, etc.): 
  I tested locally, and this landed on Inbound Friday and on Central
  this morning.

Risk to taking this patch (and alternatives if risky): 
  This is a low-risk patch and the minimal fix.

String or IDL/UUID changes made by this patch:
  None.
Attachment #8405079 - Flags: approval-mozilla-beta?
Attachment #8405079 - Flags: approval-mozilla-aurora?
Attachment #8405079 - Flags: approval-mozilla-beta?
Attachment #8405079 - Flags: approval-mozilla-beta+
Attachment #8405079 - Flags: approval-mozilla-aurora?
Attachment #8405079 - Flags: approval-mozilla-aurora+
Verified as fixed in builds:
- 30.0a2 (2014-04-17);
- 31.0a1 (2014-04-17);
- 29.0b8
Devices: Asus Transformer (Android 4.2.1) and Nexus 4 (Android 4.4.2).
Depends on: 1025959
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: