Closed
Bug 1188686
Opened 9 years ago
Closed 9 years ago
Clear all push subscriptions in `ForgetAboutSite.jsm`
Categories
(Core :: DOM: Push Subscriptions, defect)
Core
DOM: Push Subscriptions
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: lina, Assigned: nsm)
References
Details
Attachments
(1 file)
MozReview Request: Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge
40 bytes,
text/x-review-board-request
|
lina
:
review+
|
Details |
This is a follow-up to bug 1149274.
Assignee | ||
Comment 1•9 years ago
|
||
Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge I have added tests but they currently fail since they do not use mocking. I will amend the commit in the evening, but I figured you could review the code if you have time.
Attachment #8640623 -
Flags: review?(kcambridge)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8640623 [details] MozReview Request: Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge https://reviewboard.mozilla.org/r/14351/#review12991 Thanks! Looks good; just noted some nits. ::: toolkit/forgetaboutsite/test/unit/test_removeDataFromDomain.js:505 (Diff revision 1) > + getService(Ci.nsIPushNotificationService); This throws if we exclude the push interfaces from the build. ::: dom/push/PushService.jsm:1034 (Diff revision 1) > + /** I wish `ForgetAboutSite.jsm` could just call `pushService.clearIf(hasRootDomain)`, so we didn't have to duplicate this function...but XPIDL doesn't seem to make that easy. Oh, well. ::: dom/push/PushDB.jsm:171 (Diff revision 1) > + if (testFn(cursor.value)) { I think this should be `testFn(this.toPushRecord(cursor.value))`, or `record.origin` won't exist. ::: dom/push/PushService.jsm:1069 (Diff revision 1) > + .catch(_ => Promise.resolve()); I'm wondering if we should log the error here. There's not much that can be done about it, unless the user enables debug mode, so it's probably OK to leave it.
Attachment #8640623 -
Flags: review?(kcambridge)
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8640623 [details] MozReview Request: Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge
Attachment #8640623 -
Flags: review?(kcambridge)
Assignee | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e31d26fb7817
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8640623 [details] MozReview Request: Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge
Assignee | ||
Comment 6•9 years ago
|
||
https://reviewboard.mozilla.org/r/14351/#review13087 ::: toolkit/forgetaboutsite/test/unit/head_forgetaboutsite.js:5 (Diff revision 3) > -const Cc = Components.classes; > -const Ci = Components.interfaces; > -const Cu = Components.utils; > +let Cc = Components.classes; > +let Ci = Components.interfaces; > +let Cu = Components.utils; JS strict mode does not like const redeclaration.
Assignee | ||
Comment 7•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=15ac3d51a62b
Reporter | ||
Comment 8•9 years ago
|
||
> JS strict mode does not like const redeclaration.
I don't think `let` can be redeclared, either; you have to use `var`. :-/
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Kit Cambridge [:kitcambridge] from comment #8) > > JS strict mode does not like const redeclaration. > > I don't think `let` can be redeclared, either; you have to use `var`. :-/ Spidermonkey does not seem to complain about let. the tests work after the change.
Reporter | ||
Comment 10•9 years ago
|
||
Comment on attachment 8640623 [details] MozReview Request: Bug 1188686 - Clear push subscriptions when forgetting about site. r?kitcambridge https://reviewboard.mozilla.org/r/14351/#review13099 Ship It!
Attachment #8640623 -
Flags: review?(kcambridge) → review+
Assignee | ||
Comment 11•9 years ago
|
||
url: https://hg.mozilla.org/integration/mozilla-inbound/rev/b080520b4a151b8ee6beda1adc71af2c8626f138 changeset: b080520b4a151b8ee6beda1adc71af2c8626f138 user: Nikhil Marathe <nsm.nikhil@gmail.com> date: Wed Jul 29 11:33:48 2015 -0700 description: Bug 1188686 - Clear push subscriptions when forgetting about site. r=kitcambridge
Comment 12•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b080520b4a15
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•