Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp

Issue 2642213002: [Presentation API] fix DCHECK failure if PresentationRequest::create() throws SecurityError (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4af02fa66a3aaa094b47da3ae212f912cf8e54ee 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
@@ -92,9 +92,9 @@ PresentationRequest* PresentationRequest::create(
if (MixedContentChecker::isMixedContent(
executionContext->getSecurityOrigin(), parsedUrl)) {
- exceptionState.throwDOMException(
- SecurityError, "Presentation of an insecure document [" + urls[i] +
- "] is prohibited from a secure context.");
+ exceptionState.throwSecurityError(
+ "Presentation of an insecure document [" + urls[i] +
+ "] is prohibited from a secure context.");
return nullptr;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698