Closed Bug 1948721 Opened 1 month ago Closed 28 days ago

Add telemetry about how frequently we clear push subscription by site data cleanup

Categories

(Core :: DOM: Push Subscriptions, task)

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox136 --- fixed
firefox137 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

Attachments

(2 files)

To decide what to do with Declarative Web Push.

BTW, for mobile we do nothing: https://searchfox.org/mozilla-central/rev/7b3f3fb5fd2cad8f348131498a35a91bef68b47b/mobile/shared/components/geckoview/GeckoViewPush.sys.mjs#147-153

  clearForDomain(domain, originAttributesPattern, callback) {
    callback.onClear(Cr.NS_OK);
  }

  clearForPrincipal(principal, callback) {
    callback.onClear(Cr.NS_OK);
  }
Attachment #9466869 - Attachment description: WIP: Bug 1948721 - Add telemetry for unsubscriptions by ClearDataService → Bug 1948721 - Add telemetry for unsubscriptions by clearing site data r=asuth
See Also: → 1949272

(In reply to Kagami Rosylight [:saschanaz] (they/them) from comment #1)

BTW, for mobile we do nothing: https://searchfox.org/mozilla-central/rev/7b3f3fb5fd2cad8f348131498a35a91bef68b47b/mobile/shared/components/geckoview/GeckoViewPush.sys.mjs#147-153

So in this case we'll expect that the ServiceWorker will be gone even though we might still receive pushes, so there will be no ServiceWorker to wake up? (Noting that ServiceWorkerManager definitely won't go looking to install a ServiceWorker if the registration is gone.)

Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/48a6708ddfbe Add telemetry for unsubscriptions by clearing site data r=asuth
Status: NEW → RESOLVED
Closed: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch

(In reply to Andrew Sutherland [:asuth] (he/him) from comment #3)

(In reply to Kagami Rosylight [:saschanaz] (they/them) from comment #1)

BTW, for mobile we do nothing: https://searchfox.org/mozilla-central/rev/7b3f3fb5fd2cad8f348131498a35a91bef68b47b/mobile/shared/components/geckoview/GeckoViewPush.sys.mjs#147-153

So in this case we'll expect that the ServiceWorker will be gone even though we might still receive pushes, so there will be no ServiceWorker to wake up? (Noting that ServiceWorkerManager definitely won't go looking to install a ServiceWorker if the registration is gone.)

Seems yes, unless Fenix does something extra to clear things up.

Attachment #9468175 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: None; we only want to learn how frequently unsubscriptions happen to decide on upcoming feature
  • Code covered by automated testing: no
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: None
  • Explanation of risk level: only adding telemetry
  • String changes made/needed: N/A
  • Is Android affected?: no
Attachment #9468175 - Flags: approval-mozilla-release?

Comment on attachment 9468175 [details]
Bug 1948721 - Add telemetry for unsubscriptions by clearing site data r=asuth

Fx136 is now in release for RC week. Moving the uplift request.

Attachment #9468175 - Flags: approval-mozilla-beta?
Attachment #9468175 - Flags: approval-mozilla-release? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: