Closed Bug 1596588 Opened 6 years ago Closed 6 years ago

WebPushController.onPushEvent should only need the scope

Categories

(GeckoView :: General, defect)

Unspecified
Android
defect
Not set
normal

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: jonalmeida, Assigned: jonalmeida)

References

Details

Attachments

(1 file)

When delivering a message to GeckoView, the scope is the only attribute needed for doing so in the WebPushScription. We should change the API to reflect that since passing the full subscription back for every message is harder to reconstruct and unsafe as well.

From:
onPushEvent(WebPushSubscription subscription)
onPushEvent(WebPushSubscription subscription, byte[] data)

To:
onPushEvent(String scope)
onPushEvent(String scope, byte[] data)

I might take a stab at fixing this if I can get my build environment setup before someone else sees this.

Assignee: nobody → jonalmeida942
Pushed by jonalmeida942@gmail.com: https://hg.mozilla.org/integration/autoland/rev/21632bd4c4ca Update WebPushController.onPushEvent to take only the scope. r=snorp

Sorry about that Dorel. I've fixed the eslint errors. I'll make it a pre-push hook for myself next time.

I missed that in my previous try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=473b0b798a90a19239a4e1603a0fa00305f79a29&selectedJob=276510590

Flags: needinfo?(jonalmeida942)
Pushed by jonalmeida942@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6294fecb7978 Update WebPushController.onPushEvent to take only the scope. r=snorp
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Blocks: 1614990
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: