| Index: third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| index 4da9bf0140fbdf5c812882a35fdf014531c36a8d..29fc7a518b3d60011ba066d7d11687b26a0453b3 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| @@ -84,7 +84,8 @@ PresentationRequest* PresentationRequest::create(
|
| for (size_t i = 0; i < urls.size(); ++i) {
|
| const KURL& parsedUrl = KURL(executionContext->url(), urls[i]);
|
|
|
| - if (!parsedUrl.isValid() || parsedUrl.protocolIsAbout()) {
|
| + if (!parsedUrl.isValid() ||
|
| + !(parsedUrl.protocolIsInHTTPFamily() || parsedUrl.protocolIs("cast"))) {
|
| exceptionState.throwDOMException(
|
| SyntaxError, "'" + urls[i] + "' can't be resolved to a valid URL.");
|
| return nullptr;
|
|
|