New issue
Advanced search Search tips

Issue 670848 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

[PresentationAPI] Improve handling of invalid URLs in PresentationService::start()

Project Member Reported by mfo...@chromium.org, Dec 2 2016

Issue description

From comments in PresentationServiceDelegateImpl in  https://codereview.chromium.org/2547703002:

A couple of things:

- Ideally the validation in the PresentationRequest constructor in Blink should match up as closely as we can with any re-validation we do on the browser side, so the developer can't construct a PresentationRequest that is guaranteed to fail.

- It would be better to define a specific content:: error code for this case so we can reject the Promise to start() with a NotFoundError; that seems like the best thing to do.

 
Owner: lethalantidote@chromium.org
Status: Assigned (was: Untriaged)
I'm looking into this. Would you mind clarifying (or giving me a code link) to what you mean by what is being done on the browser side?

Thanks!
Here is the code we call to validate whether the URL passed in from Blink for start() is valid.

https://cs.chromium.org/chromium/src/chrome/browser/media/router/media_source_helper.h?rcl=0&l=41


Project Member

Comment 3 by bugdroid1@chromium.org, Dec 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f49e92ef385bdb28898d838bb814f8e278259f49

commit f49e92ef385bdb28898d838bb814f8e278259f49
Author: lethalantidote <lethalantidote@chromium.org>
Date: Thu Dec 08 03:30:35 2016

Changes error code to NotFoundError.

Addresses the second part of  Bug 670848 , changes the error code to a
NoPresentationFound ErrorCode.

BUG= 670848 

Review-Url: https://codereview.chromium.org/2553903002
Cr-Commit-Position: refs/heads/master@{#437167}

[modify] https://crrev.com/f49e92ef385bdb28898d838bb814f8e278259f49/chrome/browser/media/router/presentation_service_delegate_impl.cc

Status: Started (was: Assigned)
Status: Fixed (was: Started)

Sign in to add a comment