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

Issue 893123004: Check origin before providing initData in encrypted event (Closed)

Created:
5 years, 10 months ago by jrummell
Modified:
5 years, 10 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, eric.carlson_apple.com, Mike West
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Check origin before providing initData in encrypted event BUG=418233 TEST=new tests pass Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189735

Patch Set 1 #

Total comments: 2

Patch Set 2 : common #

Total comments: 6

Patch Set 3 : Add test #

Total comments: 3

Patch Set 4 : mediaDataIsCORSSameOrigin #

Total comments: 14

Patch Set 5 : split test #

Total comments: 4

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -3 lines) Patch
A LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-different-origin.html View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-same-origin.html View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/media/encrypted-media/test-encrypted.webm View 1 2 Binary file 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/html/HTMLVideoElement.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp View 1 2 3 4 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
jrummell
PTAL.
5 years, 10 months ago (2015-02-03 21:28:23 UTC) #3
sandersd (OOO until July 31)
https://codereview.chromium.org/893123004/diff/1/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp File Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp (right): https://codereview.chromium.org/893123004/diff/1/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode51 Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp:51: static bool canAccessData(HTMLMediaElement& element) I would prefer that there ...
5 years, 10 months ago (2015-02-03 22:31:59 UTC) #4
jrummell
Updated to use common method. https://codereview.chromium.org/893123004/diff/1/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp File Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp (right): https://codereview.chromium.org/893123004/diff/1/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp#newcode51 Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp:51: static bool canAccessData(HTMLMediaElement& element) ...
5 years, 10 months ago (2015-02-04 23:28:37 UTC) #5
sandersd (OOO until July 31)
lgtm
5 years, 10 months ago (2015-02-04 23:38:24 UTC) #6
ddorwin
+philpj for origin and CORS advice (and eventual OWNERS approval). https://codereview.chromium.org/893123004/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/893123004/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode1569 ...
5 years, 10 months ago (2015-02-04 23:56:51 UTC) #8
ddorwin
s/philpj/philipj/ Also, we should have layout tests. I think we can check it just by ...
5 years, 10 months ago (2015-02-05 00:10:31 UTC) #9
sandersd (OOO until July 31)
https://codereview.chromium.org/893123004/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/893123004/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode1569 Source/core/html/HTMLMediaElement.cpp:1569: return hasSingleSecurityOrigin() && ((webMediaPlayer() && webMediaPlayer()->didPassCORSAccessCheck()) || !origin->taintsCanvas(currentSrc())); On ...
5 years, 10 months ago (2015-02-05 00:32:29 UTC) #10
philipj_slow
A quick primer in how EME works could help me. I thought EME was basically ...
5 years, 10 months ago (2015-02-05 02:40:54 UTC) #11
ddorwin
On 2015/02/05 02:40:54, philipj_UTC7 wrote: > A quick primer in how EME works could help ...
5 years, 10 months ago (2015-02-05 22:38:31 UTC) #13
philipj_slow
On 2015/02/05 22:38:31, ddorwin wrote: > On 2015/02/05 02:40:54, philipj_UTC7 wrote: > > A quick ...
5 years, 10 months ago (2015-02-06 16:05:32 UTC) #14
philipj_slow
https://codereview.chromium.org/893123004/diff/40001/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (left): https://codereview.chromium.org/893123004/diff/40001/Source/core/html/HTMLVideoElement.cpp#oldcode319 Source/core/html/HTMLVideoElement.cpp:319: return !hasSingleSecurityOrigin() || (!(webMediaPlayer() && webMediaPlayer()->didPassCORSAccessCheck()) && destinationSecurityOrigin->taintsCanvas(currentSrc())); OK, ...
5 years, 10 months ago (2015-02-06 16:17:57 UTC) #15
philipj_slow
I guess s/Cors/CORS/ to match naming conventions.
5 years, 10 months ago (2015-02-06 16:18:56 UTC) #16
jrummell
Updated. https://codereview.chromium.org/893123004/diff/40001/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (left): https://codereview.chromium.org/893123004/diff/40001/Source/core/html/HTMLVideoElement.cpp#oldcode319 Source/core/html/HTMLVideoElement.cpp:319: return !hasSingleSecurityOrigin() || (!(webMediaPlayer() && webMediaPlayer()->didPassCORSAccessCheck()) && destinationSecurityOrigin->taintsCanvas(currentSrc())); ...
5 years, 10 months ago (2015-02-06 19:08:35 UTC) #18
ddorwin
On 2015/02/06 16:05:32, philipj_UTC7 wrote: > On 2015/02/05 22:38:31, ddorwin wrote: > > On 2015/02/05 ...
5 years, 10 months ago (2015-02-06 20:08:10 UTC) #19
ddorwin
LG overall https://codereview.chromium.org/893123004/diff/40001/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (left): https://codereview.chromium.org/893123004/diff/40001/Source/core/html/HTMLVideoElement.cpp#oldcode319 Source/core/html/HTMLVideoElement.cpp:319: return !hasSingleSecurityOrigin() || (!(webMediaPlayer() && webMediaPlayer()->didPassCORSAccessCheck()) && ...
5 years, 10 months ago (2015-02-06 21:41:33 UTC) #20
jrummell
Updated. https://codereview.chromium.org/893123004/diff/60001/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event.html File LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event.html (right): https://codereview.chromium.org/893123004/diff/60001/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event.html#newcode1 LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event.html:1: <!DOCTYPE html> On 2015/02/06 21:41:33, ddorwin wrote: > ...
5 years, 10 months ago (2015-02-07 00:12:26 UTC) #21
ddorwin
LGTM % nit https://codereview.chromium.org/893123004/diff/80001/Source/core/html/HTMLMediaElement.h File Source/core/html/HTMLMediaElement.h (right): https://codereview.chromium.org/893123004/diff/80001/Source/core/html/HTMLMediaElement.h#newcode284 Source/core/html/HTMLMediaElement.h:284: // Checks to see if current ...
5 years, 10 months ago (2015-02-07 01:59:01 UTC) #22
jrummell
Thanks for the reviews. https://codereview.chromium.org/893123004/diff/80001/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-different-origin.html File LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-different-origin.html (right): https://codereview.chromium.org/893123004/diff/80001/LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-different-origin.html#newcode10 LayoutTests/http/tests/media/encrypted-media/encrypted-media-encrypted-event-different-origin.html:10: <video id="testVideo2"></video> On 2015/02/07 00:12:26, ...
5 years, 10 months ago (2015-02-07 02:11:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893123004/100001
5 years, 10 months ago (2015-02-07 02:12:58 UTC) #26
commit-bot: I haz the power
5 years, 10 months ago (2015-02-07 03:35:51 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189735

Powered by Google App Engine
This is Rietveld 408576698