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

Issue 2640143002: Allow autoplay unmuted for WebAPK in the manifest scope (Closed)

Created:
3 years, 11 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dominickn+watch_chromium.org, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, Xi Han, jam, kinuko+watch, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, pkotwicz+watch_chromium.org, nessy, Srirama, vcarbune.chromium, zpeng+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow autoplay unmuted for WebAPK in the manifest scope Previously, we block all autoplay with sound on Android. To close the gap between Web apps and native apps, this CL uses the manifest scope as a whitelist, so that frames matching the scope are allowed to autoplay with sound. Design doc: https://docs.google.com/a/google.com/document/d/12kghzV5FBk4JNgtOJk2pTGqNhMzNmXt2GEpstJ-4tHc/edit?usp=sharing BUG=676312 Review-Url: https://codereview.chromium.org/2640143002 Cr-Commit-Position: refs/heads/master@{#450727} Committed: https://chromium.googlesource.com/chromium/src/+/183dc82ce88ae08056adfcc97e48937c0fe1be59

Patch Set 1 #

Patch Set 2 : refining and added tests #

Patch Set 3 : fixed Android build #

Patch Set 4 : fixed Android build #

Patch Set 5 : fixed Android build and layout tests #

Total comments: 8

Patch Set 6 : addressed mlamouri's comments & cl format #

Total comments: 3

Patch Set 7 : not using command line #

Total comments: 6

Patch Set 8 : addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android.h View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/autoplay-non-whitelisted-scope.html View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/autoplay-whitelisted-scope.html View 1 1 chunk +72 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.json5 View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 59 (32 generated)
Zhiqiang Zhang (Slow)
jochen@, tedchoc@: can you take an initial look at the design doc? The main technical ...
3 years, 10 months ago (2017-02-09 21:36:36 UTC) #15
jochen (gone - plz use gerrit)
3 years, 10 months ago (2017-02-10 09:06:46 UTC) #17
Zhiqiang Zhang (Slow)
3 years, 10 months ago (2017-02-10 11:04:03 UTC) #19
mlamouri (slow - plz ping)
My only concern here is the '*'. Everything else looks great :) https://codereview.chromium.org/2640143002/diff/80001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc ...
3 years, 10 months ago (2017-02-10 14:28:46 UTC) #20
Zhiqiang Zhang (Slow)
mlamouri: PTAL https://codereview.chromium.org/2640143002/diff/80001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2640143002/diff/80001/content/renderer/render_view_impl.cc#newcode602 content/renderer/render_view_impl.cc:602: #endif On 2017/02/10 14:28:45, mlamouri wrote: > ...
3 years, 10 months ago (2017-02-10 14:47:11 UTC) #21
Xi Han
https://codereview.chromium.org/2640143002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2640143002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode188 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:188: additionalCommandLine.add("--" + ContentSwitches.MEDIA_PLAYBACK_GESTURE_WHITELIST_SCOPE Do you miss a "=" between ...
3 years, 10 months ago (2017-02-10 18:02:42 UTC) #26
Ted C
On 2017/02/10 18:02:42, Xi Han wrote: > https://codereview.chromium.org/2640143002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java > File > chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java > (right): > ...
3 years, 10 months ago (2017-02-10 18:55:30 UTC) #27
Xi Han
On 2017/02/10 18:55:30, Ted C wrote: > On 2017/02/10 18:02:42, Xi Han wrote: > > ...
3 years, 10 months ago (2017-02-10 20:30:17 UTC) #28
mlamouri (slow - plz ping)
lgtm, assuming content owners are happy with the change https://codereview.chromium.org/2640143002/diff/100001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2640143002/diff/100001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode315 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:315: ...
3 years, 10 months ago (2017-02-13 12:03:15 UTC) #29
Zhiqiang Zhang (Slow)
On 2017/02/10 18:55:30, Ted C wrote: > On 2017/02/10 18:02:42, Xi Han wrote: > > ...
3 years, 10 months ago (2017-02-13 12:13:28 UTC) #30
Zhiqiang Zhang (Slow)
On 2017/02/13 12:13:28, Zhiqiang Zhang wrote: > On 2017/02/10 18:55:30, Ted C wrote: > > ...
3 years, 10 months ago (2017-02-13 21:58:55 UTC) #31
jochen (gone - plz use gerrit)
waiting for somebody to review the android bits, and green trybots
3 years, 10 months ago (2017-02-14 09:06:53 UTC) #32
Zhiqiang Zhang (Slow)
tedchoc@, pkotwicz@: PTAL the Android and WebAPK bits Moving hanxi@ to CC and +pkotwicz@ for ...
3 years, 10 months ago (2017-02-14 15:18:11 UTC) #34
Zhiqiang Zhang (Slow)
3 years, 10 months ago (2017-02-14 15:21:04 UTC) #35
pkotwicz
I'll take a look this afternoon
3 years, 10 months ago (2017-02-14 17:00:39 UTC) #36
pkotwicz
LGTM for the WebAPK bits
3 years, 10 months ago (2017-02-15 03:21:07 UTC) #37
pkotwicz
https://codereview.chromium.org/2640143002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2640143002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode50 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:50: getActivityTab().setWebappManifestScope(mWebappInfo.scopeUri().toString()); Nit: I think we should put this inside ...
3 years, 10 months ago (2017-02-15 03:21:34 UTC) #38
Ted C
lgtm https://codereview.chromium.org/2640143002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/2640143002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode3030 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:3030: public void setWebappManifestScope(String scope) { this needs javadoc...because ...
3 years, 10 months ago (2017-02-15 05:07:26 UTC) #39
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-15 10:01:02 UTC) #40
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2640143002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/2640143002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode3030 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:3030: public void setWebappManifestScope(String scope) { On 2017/02/15 05:07:25, Ted ...
3 years, 10 months ago (2017-02-15 11:29:52 UTC) #43
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/2640143002/140001
3 years, 10 months ago (2017-02-15 15:44:20 UTC) #48
Zhiqiang Zhang (Slow)
+kenrb@: common_param_traits_macros.h
3 years, 10 months ago (2017-02-15 15:49:08 UTC) #51
jochen (gone - plz use gerrit)
btw, please also send a PSA to blink-dev about this change (assuming that you go ...
3 years, 10 months ago (2017-02-15 15:50:10 UTC) #52
Zhiqiang Zhang (Slow)
On 2017/02/15 15:50:10, jochen wrote: > btw, please also send a PSA to blink-dev about ...
3 years, 10 months ago (2017-02-15 15:54:24 UTC) #53
kenrb
ipc lgtm
3 years, 10 months ago (2017-02-15 16:51:29 UTC) #54
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/2640143002/140001
3 years, 10 months ago (2017-02-15 16:55:50 UTC) #56
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 17:05:13 UTC) #59
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/183dc82ce88ae08056adfcc97e48...

Powered by Google App Engine
This is Rietveld 408576698