Closed
Bug 851368
Opened 12 years ago
Closed 12 years ago
SimplePush: Delete Registrations on app update/uninstall
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:-, firefox21 wontfix, firefox22 wontfix, firefox23 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix)
People
(Reporter: nsm, Assigned: nsm)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
dougt
:
review+
akeybl
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
When an app updates, what it uses push for (or whether it even needs push) may change. Delete all its registrations.
Similarly delete registrations when an app is uninstalled.
Assignee | ||
Comment 1•12 years ago
|
||
Watches for app uninstall and unregisters all endpoints associated with the application.
Attachment #727005 -
Flags: review?(doug.turner)
Assignee | ||
Comment 2•12 years ago
|
||
There is currently no way to monitor app update, but the situation is mitigated by
http://hg.mozilla.org/users/nsm.nikhil_gmail.com/push-ws1/rev/1dcc79a39380
which will prevent an app from being notified, and the lack of permissions will render navigator.pushNotification inaccessible to the application after it updates.
Unregistration due to inability to deliver message to application (which will happen in the case of the update) will require cooperation from system messages, which currently does not report the status of delivery.
Comment 3•12 years ago
|
||
Comment on attachment 727005 [details] [diff] [review]
unregister on uninstall
Review of attachment 727005 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/push/src/PushService.js
@@ +359,5 @@
> + if (!app) {
> + debug("webapps-uninstall: No app found " + aData.origin);
> + return;
> + }
> +
white space.
Attachment #727005 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 4•12 years ago
|
||
removed whitespace
Attachment #727005 -
Attachment is obsolete: true
Attachment #727208 -
Flags: review?(doug.turner)
Updated•12 years ago
|
Attachment #727208 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → B2G C4 (2jan on)
Assignee | ||
Updated•12 years ago
|
status-b2g18:
--- → affected
tracking-b2g18:
--- → ?
Comment 7•12 years ago
|
||
Stale permissions ain't right, this gets blocking+.
Comment 8•12 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #7)
> Stale permissions ain't right, this gets blocking+.
Push notifications is off by default on b2g18 and was already determined to not block for 1.1.
It's okay to ask for uplift on a per patch basis, but none of these should block per talking with Alex.
blocking-b2g: leo+ → leo?
Keywords: verifyme
Comment 9•12 years ago
|
||
Note that this patch does not deal with app updates, only uninstalls.
Comment 10•12 years ago
|
||
Since bug 822712 isn't a blocker (it's disabled), neither is this. Approving instead.
blocking-b2g: leo? → -
Comment 11•12 years ago
|
||
Comment on attachment 727208 [details] [diff] [review]
unregister on uninstall
[Triage Comment]
Attachment #727208 -
Flags: approval-mozilla-b2g18+
Comment 12•12 years ago
|
||
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → wontfix
status-firefox23:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•