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

Issue 1853543002: Add -ifsameorigin to autoplay experiment. (Closed)

Created:
4 years, 8 months ago by liberato (no reviews please)
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@autoplay
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add -ifsameorigin to autoplay experiment. If -ifsameorigin is set in the autoplay experiment config, then allow autoplay only for those things that are in the same origin. BUG=599690 Committed: https://crrev.com/266cd3ce3ed7cbcb7018c11c5a7a7989ba52dad8 Cr-Commit-Position: refs/heads/master@{#390500}

Patch Set 1 #

Patch Set 2 : moved onto autoplay_enable_usergesture local branch. #

Patch Set 3 : build errors. #

Patch Set 4 : irebased. #

Total comments: 8

Patch Set 5 : AutoplayExperimentHelper::isSameOrigin => Frame::isCrossOrigin #

Patch Set 6 : made CL independent of other CLs, rebased. #

Patch Set 7 : rebased. #

Total comments: 2

Patch Set 8 : removed -ormuted, added unit tests. #

Patch Set 9 : comment. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -7 lines) Patch
M third_party/WebKit/Source/core/frame/Frame.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp View 1 2 3 4 5 6 7 3 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
ojan
Is the actual experiment we're going to run the following combined? -forvideo -foraudio -ifpagevisible -ifviewport ...
4 years, 7 months ago (2016-04-26 01:13:57 UTC) #5
mlamouri (slow - plz ping)
https://codereview.chromium.org/1853543002/diff/60001/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp File third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp (right): https://codereview.chromium.org/1853543002/diff/60001/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp#newcode312 third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp:312: } I think you only want to check top() ...
4 years, 7 months ago (2016-04-26 14:41:41 UTC) #6
liberato (no reviews please)
https://codereview.chromium.org/1853543002/diff/60001/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp File third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp (right): https://codereview.chromium.org/1853543002/diff/60001/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp#newcode305 third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp:305: const SecurityOrigin* origin = frame->securityContext()->getSecurityOrigin(); On 2016/04/26 01:13:57, ojan ...
4 years, 7 months ago (2016-04-26 18:30:24 UTC) #7
philipj_slow
Last week at Opera, dropping self as reviewer.
4 years, 7 months ago (2016-04-27 13:11:55 UTC) #9
mlamouri (slow - plz ping)
I would to add things core/frame/ as a follow-up so you don't slow down this ...
4 years, 7 months ago (2016-04-27 13:17:37 UTC) #11
mlamouri (slow - plz ping)
Just realised that "-ormuted" isn't fully implemented because we actually expect to do something when ...
4 years, 7 months ago (2016-04-27 13:58:39 UTC) #13
ojan
On 2016/04/27 at 13:17:37, mlamouri wrote: > I would to add things core/frame/ as a ...
4 years, 7 months ago (2016-04-28 03:03:51 UTC) #14
liberato (no reviews please)
> Just realised that "-ormuted" isn't fully implemented yup. this was written while we were ...
4 years, 7 months ago (2016-04-28 05:24:50 UTC) #15
liberato (no reviews please)
now with 12.5% more unit tests, and 100% fewer cross-origin exceptions for muted playback. as ...
4 years, 7 months ago (2016-04-28 17:32:35 UTC) #17
ojan
lgtm
4 years, 7 months ago (2016-04-28 19:06:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1853543002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1853543002/160001
4 years, 7 months ago (2016-04-28 19:06:29 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/166713)
4 years, 7 months ago (2016-04-28 20:40:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1853543002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1853543002/160001
4 years, 7 months ago (2016-04-28 21:36:49 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 7 months ago (2016-04-28 22:05:39 UTC) #25
mlamouri (slow - plz ping)
lgtm
4 years, 7 months ago (2016-04-29 10:28:16 UTC) #26
mlamouri (slow - plz ping)
Note though that LayoutTests would have been good to add :)
4 years, 7 months ago (2016-04-29 10:28:40 UTC) #27
liberato (no reviews please)
On 2016/04/29 10:28:40, Mounir Lamouri wrote: > Note though that LayoutTests would have been good ...
4 years, 7 months ago (2016-04-29 14:13:01 UTC) #28
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/266cd3ce3ed7cbcb7018c11c5a7a7989ba52dad8 Cr-Commit-Position: refs/heads/master@{#390500}
4 years, 7 months ago (2016-04-30 17:21:52 UTC) #29
dcheng
4 years, 7 months ago (2016-05-05 23:14:50 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/1853543002/diff/160001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/frame/Frame.h (right):

https://codereview.chromium.org/1853543002/diff/160001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/frame/Frame.h:126: bool isCrossOrigin() const;
Sorry for missing this... I've updated my WATCHLISTS.

Can we rename this to be clearer? Something like isCrossOriginToMainFrame(). I
know it's in the comment, but it's not at all clear in the call sites.

Powered by Google App Engine
This is Rietveld 408576698