Closed Bug 1278689 Opened 8 years ago Closed 8 years ago

Remove push subscriptions when clearing site settings on Android

Categories

(Core :: DOM: Push Subscriptions, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: lina, Assigned: lina)

References

Details

(Whiteboard: btpp-active)

Attachments

(1 file)

Following up on bug 1275436. Android has a separate module that handles this (http://searchfox.org/mozilla-central/source/mobile/android/modules/Sanitizer.jsm).
Comment on attachment 8760933 [details]
Bug 1278689 - Remove push subscriptions when clearing site settings on Android.

https://reviewboard.mozilla.org/r/58340/#review55374

Do we also support clearing push subscriptions from the site settings dialog? There is an "Edit site settings" item in the site identity popup, which appears when you tap on the security icon in the urlbar. While this UI isn't really great right now, it would be good to make sure we support revoking permissions from there as well (I assume that there's a similar UI in the "control cetner" on desktop).
Attachment #8760933 - Flags: review?(margaret.leibovic) → review+
(In reply to :Margaret Leibovic from comment #2)
> Do we also support clearing push subscriptions from the site settings
> dialog? There is an "Edit site settings" item in the site identity popup,
> which appears when you tap on the security icon in the urlbar.

I think we should, but I'll double-check. IIUC, this gets triggered after tapping the "Clear" button in the dialog, and nsIPermissionManager should take it from there: http://searchfox.org/mozilla-central/rev/3f096f780166bc4772199d79a79c8e3541ff99be/mobile/android/chrome/content/PermissionsHelper.js#118,175 Am I reading that right?
Pushed by kcambridge@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/5753eb3ec418
Remove push subscriptions when clearing site settings on Android. r=margaret
https://hg.mozilla.org/mozilla-central/rev/5753eb3ec418
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
(In reply to Kit Cambridge [:kitcambridge] from comment #3)
> (In reply to :Margaret Leibovic from comment #2)
> > Do we also support clearing push subscriptions from the site settings
> > dialog? There is an "Edit site settings" item in the site identity popup,
> > which appears when you tap on the security icon in the urlbar.
> 
> I think we should, but I'll double-check. IIUC, this gets triggered after
> tapping the "Clear" button in the dialog, and nsIPermissionManager should
> take it from there:
> http://searchfox.org/mozilla-central/rev/
> 3f096f780166bc4772199d79a79c8e3541ff99be/mobile/android/chrome/content/
> PermissionsHelper.js#118,175 Am I reading that right?

Assuming that push permissions are managed with the permissions manager, you're right, I think this should Just Work. Would be good to double check on a test site though.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: