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

Issue 2850553002: Autoplay: use an autoplay policy setting in Blink. (Closed)

Created:
3 years, 7 months ago by mlamouri (slow - plz ping)
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-frames_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, feature-media-reviews_chromium.org, haraken, hongchan, jam, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, Raymond Toy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Autoplay: use an autoplay policy setting in Blink. This is a continuity of the autoplay policy that was introduced in the embedder. BUG=714676 R=dalecurtis@chromium.org,dcheng@chromium.org,nasko@chromium.org Review-Url: https://codereview.chromium.org/2850553002 Cr-Commit-Position: refs/heads/master@{#471256} Committed: https://chromium.googlesource.com/chromium/src/+/276a6f39aefbc4f23fe98fb71ca4881a0a0ff29c

Patch Set 1 #

Total comments: 3

Patch Set 2 : add assertmatchingenums #

Patch Set 3 : try run #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -81 lines) Patch
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +6 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/media/resources/autoplay-crossorigin-iframe.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/webaudio/resources/autoplay-crossorigin-iframe.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-document-move.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-from-mediastream-to-src.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-muted.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-muted-conditions.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-off.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-on.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-never-visible.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-non-whitelisted-scope.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-unmute-offscreen.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-when-visible.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-when-visible-multiple-times.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/autoplay-whitelisted-scope.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/media-play-promise.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/no-autoplay-with-user-gesture-requirement.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/play-promise-crash.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/video-play-require-user-gesture.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.h View 3 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.json5 View 1 2 2 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/media/AutoplayPolicy.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp View 1 2 3 3 chunks +24 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.cpp View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.idl View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp View 1 2 9 chunks +17 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 3 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 4 3 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
mlamouri (slow - plz ping)
nasko@, PTAL at content/renderer/ dcheng@, PTAL at Blink changes dalecurtis@, FYI because you reviewed the ...
3 years, 7 months ago (2017-04-27 15:47:41 UTC) #1
Raymond Toy
DBC: So if the autoplay policy is set, a user gesture is required for any ...
3 years, 7 months ago (2017-04-27 15:52:00 UTC) #3
dcheng
https://codereview.chromium.org/2850553002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp File third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp (right): https://codereview.chromium.org/2850553002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp#newcode62 third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp:62: if (document.GetSettings()) Should this be !document.GetSettings()? https://codereview.chromium.org/2850553002/diff/1/third_party/WebKit/public/web/WebSettings.h File third_party/WebKit/public/web/WebSettings.h ...
3 years, 7 months ago (2017-04-27 15:57:17 UTC) #6
mlamouri (slow - plz ping)
On 2017/04/27 at 15:52:00, rtoy wrote: > DBC: So if the autoplay policy is set, ...
3 years, 7 months ago (2017-04-27 15:58:45 UTC) #7
nasko
content/ rubberstamp LGTM
3 years, 7 months ago (2017-04-27 16:08:42 UTC) #8
Raymond Toy
On Thu, Apr 27, 2017 at 8:58 AM, <mlamouri@chromium.org> wrote: > On 2017/04/27 at 15:52:00, ...
3 years, 7 months ago (2017-04-27 16:50:49 UTC) #11
Raymond Toy
On Thu, Apr 27, 2017 at 8:58 AM, <mlamouri@chromium.org> wrote: > On 2017/04/27 at 15:52:00, ...
3 years, 7 months ago (2017-04-27 16:50:49 UTC) #12
mlamouri (slow - plz ping)
On 2017/04/27 at 16:50:49, rtoy wrote: > On Thu, Apr 27, 2017 at 8:58 AM, ...
3 years, 7 months ago (2017-04-27 17:30:21 UTC) #13
mlamouri (slow - plz ping)
dcheng@, PTAL :)
3 years, 7 months ago (2017-05-11 11:05:08 UTC) #22
dcheng
lgtm
3 years, 7 months ago (2017-05-12 07:24:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2850553002/80001
3 years, 7 months ago (2017-05-12 08:40:57 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 09:24:44 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/276a6f39aefbc4f23fe98fb71ca4...

Powered by Google App Engine
This is Rietveld 408576698