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

Issue 1414853003: Add options for audio/video autoplay to chrome://settings/content. (Closed)

Created:
5 years, 2 months ago by DaleCurtis
Modified:
4 years, 9 months ago
CC:
arv+watch_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dbeam+watch-options_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gavinp+loader_chromium.org, gasubic, Nate Chapin, loading-reviews_chromium.org, markusheintz_, michaelpg+watch-options_chromium.org, mlamouri+watch-blink_chromium.org, msramek+watch_chromium.org, oshima+watch_chromium.org, raymes+watch_chromium.org, nessy, tyoshino+watch_chromium.org, vcarbune.chromium, felt, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add options for audio/video autoplay to chrome://settings/content. ** WORK IN PROGRESS ** For almost five years users have been requesting autoplay settings. With the recent addition of deferred playback in background tabs, we have a further handful of unhappy users who want their autoplay back. It's high time we had some settings for this! This adds the following form to the Content Settings section: * Allow autoplay of all audio or video content. * Allow autoplay of only audio or video content detected as important. * Do not allow autoplay of any audio or video content. [ Manage Exceptions ] The second option is today's default behavior (only visible content will autoplay). The last option is what Android does, where a user gesture is required to initiate playback. BUG=50132, 544723 TEST=...tbd...

Patch Set 1 #

Total comments: 25
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -6 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +17 lines, -0 lines 4 comments Download
M chrome/app/theme/theme_resources.grd View 2 chunks +4 lines, -0 lines 1 comment Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/content_settings.html View 1 chunk +29 lines, -0 lines 1 comment Download
M chrome/browser/resources/options/content_settings_exceptions_area.html View 1 chunk +3 lines, -0 lines 1 comment Download
M chrome/browser/ui/website_settings/website_settings.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 5 chunks +13 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 chunk +9 lines, -4 lines 4 comments Download
M chrome/renderer/content_settings_observer.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 chunk +13 lines, -0 lines 2 comments Download
M components/content_settings/core/browser/content_settings_registry.cc View 1 chunk +7 lines, -0 lines 5 comments Download
M components/content_settings/core/browser/content_settings_utils.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 chunk +2 lines, -0 lines 4 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebContentSettingsClient.h View 1 chunk +3 lines, -0 lines 3 comments Download
M tools/metrics/actions/actions.xml View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
DaleCurtis
Hi jochen, philipj. This CL is not ready for a full review. While it does ...
5 years, 2 months ago (2015-10-23 01:00:43 UTC) #2
philipj_slow
Adding liberato@ who is handling the autoplay experiment. Yhe outcome of that could be that ...
5 years, 2 months ago (2015-10-23 09:06:14 UTC) #4
jochen (gone - plz use gerrit)
+markusheintz/raymes for content settings +felt fyi
5 years, 2 months ago (2015-10-23 12:09:34 UTC) #6
philipj_slow
https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd#newcode14600 chrome/app/generated_resources.grd:14600: + Allow autoplay of only audio or video content ...
5 years, 2 months ago (2015-10-23 12:17:30 UTC) #7
philipj_slow
High level, I see two related issues: 1. What is the default autoplay behavior going ...
5 years, 2 months ago (2015-10-23 12:30:22 UTC) #8
DaleCurtis
On 2015/10/23 12:30:22, philipj wrote: > High level, I see two related issues: > > ...
5 years, 2 months ago (2015-10-23 18:30:43 UTC) #9
DaleCurtis
https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd#newcode14600 chrome/app/generated_resources.grd:14600: + Allow autoplay of only audio or video content ...
5 years, 2 months ago (2015-10-23 19:21:27 UTC) #10
philipj_slow
OK, so this is intended primarily as a way for desktop users to inhibit autoplay, ...
5 years, 1 month ago (2015-10-27 16:06:59 UTC) #11
DaleCurtis
On 2015/10/27 16:06:59, philipj wrote: > OK, so this is intended primarily as a way ...
5 years, 1 month ago (2015-10-27 17:14:25 UTC) #12
DaleCurtis
raymes, markusheintz: Any advice on chrome://settings/content changes? (See first post in this thread).
5 years, 1 month ago (2015-10-27 23:26:40 UTC) #13
raymes
Sorry I've been slow on this, but hope to take a closer look today. Thanks! ...
5 years, 1 month ago (2015-10-27 23:29:40 UTC) #14
raymes
Sorry I've been slow on this, but hope to take a closer look today. Thanks! ...
5 years, 1 month ago (2015-10-27 23:29:41 UTC) #15
raymes
This looks good to me overall. +msramek who is more familiar with content settings UI ...
5 years, 1 month ago (2015-10-27 23:34:52 UTC) #17
DaleCurtis
https://codereview.chromium.org/1414853003/diff/1/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1414853003/diff/1/components/content_settings/core/browser/content_settings_registry.cc#newcode233 components/content_settings/core/browser/content_settings_registry.cc:233: WebsiteSettingsInfo::SYNCABLE, WhitelistedSchemes(), On 2015/10/27 23:34:51, raymes wrote: > Do ...
5 years, 1 month ago (2015-10-27 23:38:31 UTC) #18
felt
drive-by comments https://codereview.chromium.org/1414853003/diff/1/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/1414853003/diff/1/chrome/app/theme/theme_resources.grd#newcode37 chrome/app/theme/theme_resources.grd:37: <!-- TODO(dalecurtis): Add images for allowed auotplay. ...
5 years, 1 month ago (2015-10-28 07:52:45 UTC) #20
philipj_slow
https://codereview.chromium.org/1414853003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1414853003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode357 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:357: if (document.settings() && document.settings()->mediaPlaybackRequiresUserGesture()) This is the "existing setting" ...
5 years, 1 month ago (2015-10-28 10:19:36 UTC) #21
philipj_slow
https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd#newcode14600 chrome/app/generated_resources.grd:14600: + Allow autoplay of only audio or video content ...
5 years, 1 month ago (2015-10-28 10:30:41 UTC) #22
msramek
https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1414853003/diff/1/chrome/app/generated_resources.grd#newcode14597 chrome/app/generated_resources.grd:14597: + Allow autoplay of all audio or video content ...
5 years, 1 month ago (2015-10-28 10:42:50 UTC) #23
Bernhard Bauer
https://codereview.chromium.org/1414853003/diff/1/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1414853003/diff/1/components/content_settings/core/browser/content_settings_registry.cc#newcode233 components/content_settings/core/browser/content_settings_registry.cc:233: WebsiteSettingsInfo::SYNCABLE, WhitelistedSchemes(), On 2015/10/28 10:42:50, msramek wrote: > On ...
5 years, 1 month ago (2015-10-28 12:52:58 UTC) #25
DaleCurtis
+pangu Thanks for the feedback, since this is roughly the right approach pangu@ is putting ...
5 years, 1 month ago (2015-10-30 19:25:56 UTC) #27
philipj_slow
5 years, 1 month ago (2015-11-02 13:15:45 UTC) #28
https://codereview.chromium.org/1414853003/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right):

https://codereview.chromium.org/1414853003/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:357: if
(document.settings() && document.settings()->mediaPlaybackRequiresUserGesture())
On 2015/10/30 19:25:56, DaleCurtis wrote:
> On 2015/10/28 10:19:35, philipj wrote:
> > This is the "existing setting" I was referring to.
> 
> Ah gotcha, yeah this should be removable once we have the content setting.

If it isn't too much trouble, could you do it in the same CL or at least have
the follow-up ready for review? Otherwise it's harder to be confident that the
content setting is a full replacement.

Powered by Google App Engine
This is Rietveld 408576698