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

Issue 520433002: Output silence if the MediaElementAudioSourceNode has a different origin (Closed)

Created:
6 years, 3 months ago by Raymond Toy
Modified:
5 years, 10 months ago
CC:
blink-reviews, abarth-chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Output silence if the MediaElementAudioSourceNode has a different origin See http://webaudio.github.io/web-audio-api/#security-with-mediaelementaudiosourcenode-and-cross-origin-resources Two new tests added for the same origin and a cross origin source. BUG=313939 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189527

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Use correct names for the test files. #

Total comments: 1

Patch Set 7 : WIP #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : Rebase and add CORS check #

Patch Set 12 : Add missing script file #

Patch Set 13 : Update expected result #

Patch Set 14 : Add test with credentials #

Patch Set 15 : #

Total comments: 4

Patch Set 16 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -85 lines) Patch
A LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin.html View 1 2 3 4 5 6 7 8 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-allowed.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +46 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-allowed-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -4 lines 0 comments Download
A + LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -6 lines 0 comments Download
A LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-with-credentials.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +46 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-with-credentials-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -4 lines 0 comments Download
A LayoutTests/http/tests/security/media-element-audio-source-node-same-origin.html View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/security/media-element-audio-source-node-same-origin-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download
A + LayoutTests/http/tests/security/resources/webaudio/compatibility.js View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/http/tests/security/resources/webaudio/js-test.js View 1 2 3 4 5 6 7 8 9 10 7 chunks +3 lines, -61 lines 0 comments Download
A + LayoutTests/http/tests/security/resources/webaudio/laughter.wav View 1 2 3 4 5 6 Binary file 0 comments Download
A LayoutTests/http/tests/security/resources/webaudio/media-element-audio-source-node-test.js View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/security/resources/webaudio/media-element-cross-origin-allow.php View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -7 lines 0 comments Download
M Source/modules/webaudio/AudioContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M Source/modules/webaudio/MediaElementAudioSourceNode.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
Raymond Toy
rtoy@chromium.org changed reviewers: + kbr@chromium.org
6 years, 3 months ago (2014-08-28 22:27:46 UTC) #1
Raymond Toy
PTAL.
6 years, 3 months ago (2014-08-28 22:27:46 UTC) #2
Ken Russell (switch to Gerrit)
This is testable; see for example LayoutTests/http/tests/security/webgl-remote-read-*. Could you please add a test for this?
6 years, 3 months ago (2014-08-29 00:51:47 UTC) #3
Raymond Toy
On 2014/08/29 00:51:47, Ken Russell wrote: > This is testable; see for example > LayoutTests/http/tests/security/webgl-remote-read-*. ...
6 years, 3 months ago (2014-09-09 21:12:51 UTC) #4
Ken Russell (switch to Gerrit)
This test doesn't look correct. I think you need to add a test under LayoutTests/http/tests/security/ ...
6 years, 3 months ago (2014-09-10 04:16:43 UTC) #5
Raymond Toy
On 2014/09/10 04:16:43, Ken Russell wrote: > This test doesn't look correct. I think you ...
6 years, 3 months ago (2014-09-10 17:32:26 UTC) #6
Ken Russell (switch to Gerrit)
On 2014/09/10 17:32:26, Raymond Toy wrote: > On 2014/09/10 04:16:43, Ken Russell wrote: > > ...
6 years, 3 months ago (2014-09-10 21:14:49 UTC) #7
Raymond Toy
PTAL. Tests have been added and are working as expected.
6 years, 3 months ago (2014-09-22 20:05:42 UTC) #8
Ken Russell (switch to Gerrit)
This looks better. Please add at least one more test which sets the crossOrigin property ...
6 years, 3 months ago (2014-09-22 21:43:24 UTC) #9
Raymond Toy
On 2014/09/22 21:43:24, Ken Russell wrote: > This looks better. Please add at least one ...
5 years, 10 months ago (2015-02-03 21:20:25 UTC) #10
Ken Russell (switch to Gerrit)
Very nice. LGTM overall. Couple minor points. https://codereview.chromium.org/520433002/diff/280001/LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-allowed.html File LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-allowed.html (right): https://codereview.chromium.org/520433002/diff/280001/LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-allowed.html#newcode23 LayoutTests/http/tests/security/media-element-audio-source-node-cross-origin-allowed.html:23: // should ...
5 years, 10 months ago (2015-02-04 01:28:19 UTC) #11
Raymond Toy
Thanks so much for reviewing this and your patience on this CL. https://codereview.chromium.org/520433002/diff/280001/Source/modules/webaudio/MediaElementAudioSourceNode.cpp File Source/modules/webaudio/MediaElementAudioSourceNode.cpp ...
5 years, 10 months ago (2015-02-04 19:00:39 UTC) #12
Raymond Toy
On 2015/02/04 19:00:39, Raymond Toy wrote: > Thanks so much for reviewing this and your ...
5 years, 10 months ago (2015-02-04 19:06:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/520433002/300001
5 years, 10 months ago (2015-02-04 19:08:00 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 20:29:13 UTC) #17
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189527

Powered by Google App Engine
This is Rietveld 408576698