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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2594353003: Crash in blink::beforeCallEnteredCallback() (Closed)
Patch Set: Updated after review 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
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 791640db9e8986b96e9bacb545a22b4b5128b2c3..704e66b67cf213edb57a53637eece13cd67dc9a1 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -829,9 +829,11 @@ void HTMLMediaElement::invokeLoadAlgorithm() {
// 4.6.2 - Take pending play promises and reject pending play promises
// with the result and an "AbortError" DOMException.
- rejectPlayPromises(
- AbortError,
- "The play() request was interrupted by a new load request.");
+ if (!ScriptForbiddenScope::isScriptForbidden()) {
+ rejectPlayPromises(
+ AbortError,
+ "The play() request was interrupted by a new load request.");
+ }
}
// 4.7 - If seeking is true, set it to false.

Powered by Google App Engine
This is Rietveld 408576698