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

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

Issue 2644343002: Add AllowUserAgentScript in ScriptPromiseResolver::resolveOrReject (Closed)
Patch Set: Remove isScriptForbidden check in HTMLMediaElement 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 589e7c2e5f4eeb6d6816d1d21fdcf2321ff14616..363bea977d7787a7995c790328f8cfa42d7b00af 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -829,11 +829,9 @@ void HTMLMediaElement::invokeLoadAlgorithm() {
// 4.6.2 - Take pending play promises and reject pending play promises
// with the result and an "AbortError" DOMException.
- if (!ScriptForbiddenScope::isScriptForbidden()) {
- rejectPlayPromises(
haraken 2017/01/21 01:51:09 I'm asking the question in https://codereview.chro
- AbortError,
- "The play() request was interrupted by a new load request.");
- }
+ 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