Closed
Bug 1330151
Opened 9 years ago
Closed 9 years ago
Recovering lost Push architecture docs
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Firefox for Android Graveyard
General
Tracking
(firefox53 fixed)
RESOLVED
FIXED
Firefox 53
| Tracking | Status | |
|---|---|---|
| firefox53 | --- | fixed |
People
(Reporter: Grisha, Unassigned)
Details
(Whiteboard: [MobileAS])
Attachments
(2 files)
Bug 1207714 had nice architecture docs of fennec's implementation of push that somehow got lost in mozreview and didn't make it into the tree. See https://reviewboard.mozilla.org/r/36721/diff/1#index_header.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8825577 [details]
Bug 1330151 - Push Architecture docs recovered from Bug 1207714
https://reviewboard.mozilla.org/r/103702/#review104360
::: mobile/android/docs/push.rst:66
(Diff revision 1)
> +Gecko profile) in order to service incoming push messages. Right now, if a push
> +message is received and Gecko is not running (with the correct profile) to
> +service the message, it will be dropped on the floor (with
> +helpful-but-unsatisfying diagnostic messages). In particular, **neither the
> +sending application server nor the receiving web application are informed of the
> +failed delivery at any time!** (We may, at some point, choose to queue messages
This queueing has been implemented. So fold the following line into the previous paragraph and delete the outdated paragraph. Line:
`Fennec will start Gecko (more accurately, a particular Gecko profile) in order to service incoming push messages.`
::: mobile/android/docs/push.rst:93
(Diff revision 1)
> +valuable and difficult. Therefore, we add the following requirement:
> +
> +4) Gecko must own the push configuration details where appropriate and possible.
> +
> +We explicitly do not care to support push messages across multiple processes.
> +This means that we **do not support the Push API in APK-based Web Apps that run
This is no longer relevant; these web apps are no longer supported. Just drop these two lines. (The comment about multiple processes is still relevant, and matters more in a post-e10s-on-Android world.)
::: mobile/android/docs/push.rst:125
(Diff revision 1)
> +The second mapping is a one-to-many mapping from push registrations to
> +`PushSubscription` instances. A push subscription corresponds to a unique push
> +message channel from the autopush server to Fennec. Each `PushSubscription`
> +includes:
> +
> +* a Fennec service identifier, like "webpush" or "Sync" or "Firefox Accounts";
I think this is now `"webpush" or "fxa"`: see https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/push/PushService.java#56.
Attachment #8825577 -
Flags: review?(nalexander) → review+
Comment 4•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8825578 [details]
Bug 1330151 - Adjust docs slightly to better reflect current implementation
https://reviewboard.mozilla.org/r/103704/#review104364
::: mobile/android/docs/push.rst:60
(Diff revision 1)
>
> The Fennec Push implementation is designed to address the following technical
> challenge: **GCM events, including incoming push messages, can occur when Gecko
> -is not running**.
> -
> -In the future, Fennec will be able to start Gecko (more accurately, a particular
> +is not running**. In case of an incoming push message, if Gecko is not running
> +Fennec will request startup of necessary Gecko services and queue incoming
> +push messages in the meantime. Once services are running, messages are sent over.
Oh, snap! Fold my additional notes in here. Well done!
Attachment #8825578 -
Flags: review?(nalexander) → review+
| Comment hidden (mozreview-request) |
Pushed by gkruglov@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4910b42e2042
Push Architecture docs recovered from Bug 1207714 r=nalexander
https://hg.mozilla.org/integration/autoland/rev/9e02d11fb965
Adjust docs slightly to better reflect current implementation r=nalexander
Comment 7•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4910b42e2042
https://hg.mozilla.org/mozilla-central/rev/9e02d11fb965
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
| Reporter | ||
Updated•9 years ago
|
Iteration: --- → 1.13
Priority: -- → P1
Whiteboard: [MobileAS]
| Assignee | ||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•