Closed Bug 1202582 Opened 11 years ago Closed 11 years ago

[Presentation WebAPI] Ensure incoming messages are well delivered to receiver pages

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
FxOS-S7 (18Sep)
Tracking Status
firefox43 --- fixed

People

(Reporter: selin, Assigned: selin)

References

Details

(Whiteboard: [ft:conndevices])

Attachments

(2 files, 2 obsolete files)

|PresentationSessionTransport| starts to consume incoming data when the data channel becomes connected [1][2]. And once some data come in, it notifies the correspondent |PresentationSessionInfo| [3][4]. However, at receiver side (presenting context), the session info might not have registered the session listener at this moment yet, so the incoming message might thus get dropped without notifying the receiver page [5]. We may consider not to start consuming incoming data until the session listener is registered. And then the incoming data can be automatically buffered until we're ready to handle them. [1] https://dxr.mozilla.org/mozilla-central/source/dom/presentation/PresentationSessionTransport.cpp?offset=0#395 [2] https://dxr.mozilla.org/mozilla-central/source/dom/presentation/PresentationSessionTransport.cpp#255 [3] https://dxr.mozilla.org/mozilla-central/source/dom/presentation/PresentationSessionTransport.cpp#483 [4] https://dxr.mozilla.org/mozilla-central/source/dom/presentation/PresentationSessionInfo.cpp#320 [5] https://dxr.mozilla.org/mozilla-central/source/dom/presentation/PresentationSessionInfo.cpp#328
Assignee: nobody → selin
Status: NEW → ASSIGNED
Whiteboard: [ft:conndevices]
Target Milestone: --- → FxOS-S7 (18Sep)
Add a method to |nsIPresentationSessionTransport| to control the timing of start handling incoming data.
Attachment #8658123 - Flags: review?(josh)
Attached patch Part 2 - PresentationSessionInfo (obsolete) — — Splinter Review
Ensure presentation session doesn't consume incoming data until the session listener is registered.
Attachment #8658125 - Flags: review?(bugs)
Attachment #8658123 - Flags: review?(josh) → review+
Comment on attachment 8658125 [details] [diff] [review] Part 2 - PresentationSessionInfo Ahaa, EnableDataNotification is added in the other patch.
Attachment #8658125 - Flags: review?(bugs) → review+
Attachment #8658123 - Attachment is obsolete: true
Attachment #8658609 - Flags: review+
Attachment #8658125 - Attachment is obsolete: true
Attachment #8658610 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: