New issue
Advanced search Search tips

Issue 839617 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

presentationConnection.send(message) messages aren't displayed onscreen.

Project Member Reported by dbbrooks@chromium.org, May 3 2018

Issue description

Chrome Version: 68.0.3409.2
OS: Win 8, Mac
MR: 6818.430.0.0

Doesn't repro with 67.0.3396.30

What steps will reproduce the problem?
(1) Go to https://googlechrome.github.io/samples/presentation-api/
(2) Click on the presentationRequest.start() button and select a device to start Casting.
(3) press the presentationConnection.send(message) after selecting an item from the drop down list.

What is the expected result? A fruit icon or some message displayed on the receiver screen.

What happens instead? Nothing is displayed on the receiver.
 
Labels: OS-Chrome OS-Linux
This is reproducible with 1UA mode, EDU receiver, and wired display on M68.
Cc: btolsch@chromium.org
I was able to repro this on a ToT build.  I added logging to PresentationConnection in Blink and verified that messages are being sent from the controller and received by the presentation page.  However, I can't inspect the presentation page through devtools to see if the message event is being received by script (they used to be listed under "Other").

Without devtools it will be trickier to debug further. We could also try to debug the receiver page with a wired display, which I don't have here in Seattle.

Going to file a separate issue on devtools.
Looking at https://github.com/GoogleChrome/samples/blob/gh-pages/presentation-api/receiver/index.html, shouldn't the <script> tag to load receiver.js be at the bottom since it references message-list? If logging says Blink PresentationConnection is working properly then likely the page is the issue. But hard to tell definitively without devtools support.
Good catch.  The receiver could get a presentation connection before the DOM is ready.  The call to navigator.presentation.receiver could go into a DOMContentLoaded event listener.


Cc: dbbrooks@chromium.org
Owner: mfo...@chromium.org
Status: Fixed (was: Untriaged)
And it was just merged :-)

David, feel free to verify.  Might need to empty cache to make sure you get the latest version of the sample app.
Status: Verified (was: Fixed)
Yep, fixed.

Sign in to add a comment