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)
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)
|
7.87 KB,
patch
|
selin
:
review+
|
Details | Diff | Splinter Review |
|
12.28 KB,
patch
|
selin
:
review+
|
Details | Diff | Splinter Review |
|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 | ||
Updated•11 years ago
|
Assignee: nobody → selin
Blocks: 2-UA_Presentation_API
Status: NEW → ASSIGNED
Whiteboard: [ft:conndevices]
Target Milestone: --- → FxOS-S7 (18Sep)
| Assignee | ||
Comment 1•11 years ago
|
||
Add a method to |nsIPresentationSessionTransport| to control the timing of start handling incoming data.
Attachment #8658123 -
Flags: review?(josh)
| Assignee | ||
Comment 2•11 years ago
|
||
Ensure presentation session doesn't consume incoming data until the session listener is registered.
Attachment #8658125 -
Flags: review?(bugs)
Updated•11 years ago
|
Attachment #8658123 -
Flags: review?(josh) → review+
Comment 3•11 years ago
|
||
Comment on attachment 8658125 [details] [diff] [review]
Part 2 - PresentationSessionInfo
Ahaa, EnableDataNotification is added in the other patch.
Attachment #8658125 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8658123 -
Attachment is obsolete: true
Attachment #8658609 -
Flags: review+
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8658125 -
Attachment is obsolete: true
Attachment #8658610 -
Flags: review+
| Assignee | ||
Comment 6•11 years ago
|
||
The try-run. FYI.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f8963ae3bad5
Keywords: checkin-needed
https://hg.mozilla.org/integration/b2g-inbound/rev/8985f4ca6bbf
https://hg.mozilla.org/integration/b2g-inbound/rev/a3fe551ea06b
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8985f4ca6bbf
https://hg.mozilla.org/mozilla-central/rev/a3fe551ea06b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•