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

Issue 266453005: Apply TypeChecking to MediaSource IDLs (Closed)

Created:
6 years, 7 months ago by fs
Modified:
6 years, 7 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com
Visibility:
Public.

Description

Apply TypeChecking to MediaSource IDLs This allows cleaning up a number of null-checks, since the generated IDL code now assures non-null where indicated in the IDL. Also drop explicit throwTypeError() in MediaSourceBase::endOfStream, since the bindings code would've thrown that already. Add 'unrestricted' to the IDLs where the spec has them. This updates to match spec. revision ba5233c6654d. https://dvcs.w3.org/hg/html-media/rev/ba5233c6654d ...per W3 bug: Bug 25347 - [MSE] 'nullable' arguments and type conversions and INVALID_ACCESS_ERR (vs. WebIDL) https://www.w3.org/Bugs/Public/show_bug.cgi?id=25347 One additional non-specced change is to mark arguments to SourceBuffer.remove() as 'unrestricted' since that's the semantics they expect. BUG=368634 BUG=354298 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173197

Patch Set 1 #

Patch Set 2 : Undo too eager removal; Fixup test; Mark remove() args unrestricted. #

Total comments: 11

Patch Set 3 : Rebase; Add spec-link; Adjust+add test. #

Patch Set 4 : Use MAX_VALUE instead of POS_INF. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -65 lines) Patch
M LayoutTests/http/tests/media/media-source/mediasource-remove.html View 1 2 3 3 chunks +20 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/media/media-source/mediasource-remove-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/media/media-source/mediasource-removesourcebuffer.html View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediasource/MediaSource.cpp View 2 chunks +9 lines, -15 lines 0 comments Download
M Source/modules/mediasource/MediaSource.idl View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M Source/modules/mediasource/MediaSourceBase.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/mediasource/SourceBuffer.cpp View 1 2 7 chunks +25 lines, -40 lines 0 comments Download
M Source/modules/mediasource/SourceBuffer.idl View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M Source/modules/mediasource/URLMediaSource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediasource/URLMediaSource.idl View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
fs
In response to fix of W3C bug 25347. (No test added for createObjectURL because of ...
6 years, 7 months ago (2014-04-30 13:04:23 UTC) #1
acolwell GONE FROM CHROMIUM
lgtm % comment https://codereview.chromium.org/266453005/diff/20001/Source/modules/mediasource/SourceBuffer.idl File Source/modules/mediasource/SourceBuffer.idl (right): https://codereview.chromium.org/266453005/diff/20001/Source/modules/mediasource/SourceBuffer.idl#newcode69 Source/modules/mediasource/SourceBuffer.idl:69: [RaisesException] void remove(unrestricted double start, unrestricted ...
6 years, 7 months ago (2014-04-30 17:28:28 UTC) #2
acolwell GONE FROM CHROMIUM
On 2014/04/30 17:28:28, acolwell wrote: > lgtm % comment > > https://codereview.chromium.org/266453005/diff/20001/Source/modules/mediasource/SourceBuffer.idl > File Source/modules/mediasource/SourceBuffer.idl ...
6 years, 7 months ago (2014-04-30 17:35:11 UTC) #3
Nils Barth (inactive)
On 2014/04/30 13:04:23, fs wrote: > In response to fix of W3C bug 25347. (No ...
6 years, 7 months ago (2014-05-01 01:07:44 UTC) #4
Nils Barth (inactive)
Thanks Fredrik! Agree with Aaron's comment re: spec change/bug, and a few minor nits/requests, but ...
6 years, 7 months ago (2014-05-01 01:08:46 UTC) #5
Nils Barth (inactive)
Two other nits. https://codereview.chromium.org/266453005/diff/20001/Source/modules/mediasource/MediaSource.idl File Source/modules/mediasource/MediaSource.idl (right): https://codereview.chromium.org/266453005/diff/20001/Source/modules/mediasource/MediaSource.idl#newcode30 Source/modules/mediasource/MediaSource.idl:30: Could you add a link to ...
6 years, 7 months ago (2014-05-01 02:25:05 UTC) #6
Nils Barth (inactive)
On 2014/04/30 13:04:23, fs wrote: > (@nbarth: This might be possible to use for TypeChecking=Unrestricted ...
6 years, 7 months ago (2014-05-01 03:14:52 UTC) #7
Nils Barth (inactive)
Hi Fredrik, everything's landed for float type checking, so just need to sync this and ...
6 years, 7 months ago (2014-05-02 05:14:28 UTC) #8
fs
https://codereview.chromium.org/266453005/diff/20001/Source/modules/mediasource/MediaSource.idl File Source/modules/mediasource/MediaSource.idl (right): https://codereview.chromium.org/266453005/diff/20001/Source/modules/mediasource/MediaSource.idl#newcode30 Source/modules/mediasource/MediaSource.idl:30: On 2014/05/01 02:25:05, Nils Barth wrote: > Could you ...
6 years, 7 months ago (2014-05-02 09:26:26 UTC) #9
fs
The CQ bit was checked by fs@opera.com
6 years, 7 months ago (2014-05-02 11:31:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/266453005/60001
6 years, 7 months ago (2014-05-02 11:31:48 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 12:16:02 UTC) #12
Message was sent while issue was closed.
Change committed as 173197

Powered by Google App Engine
This is Rietveld 408576698