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

Issue 1947033002: Change "invalid value default" for HTMLTrackElement 'kind' to "metadata" (Closed)

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

Description

Change "invalid value default" for HTMLTrackElement 'kind' to "metadata" Rename TrackBase::defaultKind() to invalidValueDefaultKind() to better reflect its semantics. Also make sure that the "missing value default" is set appropriately (in TextTrack constructors and on removal in HTMLTrackElement parseAttribute) now that it differs from the "invalid value default". The test media/track/track-kind.html is adjusted so that it doesn't check if a cue is displayed, since that depends on unspecified behavior wrt how 'mode' changes when 'kind' does. (See comment in TextTrack::setKind.) The WPT tests will eventually get updated via Mozilla's automatic sync, so adding expectations for now. (Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=1269712) Intent: https://groups.google.com/a/chromium.org/d/topic/blink-dev/6-oPQN4lZ2o/discussion https://github.com/whatwg/html/issues/293 https://html.spec.whatwg.org/multipage/embedded-content.html#attr-track-kind BUG=608772 Committed: https://crrev.com/00923f90277216a21263f16898fb404c4a5741c8 Cr-Commit-Position: refs/heads/master@{#392911}

Patch Set 1 #

Total comments: 3

Patch Set 2 : More test updates. #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -47 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/element-attribute-js-null.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/element-attribute-js-null-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/kind-expected.txt View 1 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/kind-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/track/opera/interfaces/HTMLElement/HTMLTrackElement/kind.html View 4 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/track/opera/interfaces/TextTrack/kind.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/track/track-kind.html View 1 2 3 chunks +13 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTrackElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/AudioTrack.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/AudioTrack.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/InbandTextTrack.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/TextTrack.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/TrackBase.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/TrackBase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/VideoTrack.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/track/VideoTrack.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (5 generated)
fs
Quiz: How many lines do you need to change to change a default value? Answer: ...
4 years, 7 months ago (2016-05-04 15:15:02 UTC) #3
davve
Code change looks good. In https://bugzilla.mozilla.org/show_bug.cgi?id=1269712#c3 Boris raises a point about advertising this change. Something ...
4 years, 7 months ago (2016-05-06 14:56:15 UTC) #4
fs
On 2016/05/06 at 14:56:15, davve wrote: > Code change looks good. > > In https://bugzilla.mozilla.org/show_bug.cgi?id=1269712#c3 ...
4 years, 7 months ago (2016-05-09 11:58:17 UTC) #5
davve
lgtm after API owner's approval: https://groups.google.com/a/chromium.org/d/msg/blink-dev/6-oPQN4lZ2o/9gc2BzDWBAAJ
4 years, 7 months ago (2016-05-11 08:01:27 UTC) #6
fs
On 2016/05/11 at 08:01:27, davve wrote: > lgtm after API owner's approval: > > https://groups.google.com/a/chromium.org/d/msg/blink-dev/6-oPQN4lZ2o/9gc2BzDWBAAJ ...
4 years, 7 months ago (2016-05-11 08:53:30 UTC) #8
fs
On 2016/05/11 at 08:53:30, fs wrote: > On 2016/05/11 at 08:01:27, davve wrote: > > ...
4 years, 7 months ago (2016-05-11 10:37:50 UTC) #9
davve
On 2016/05/11 10:37:50, fs wrote: > Rebased. media/track/track-kind.html had to be adjusted quite a bit ...
4 years, 7 months ago (2016-05-11 11:28:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1947033002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1947033002/40001
4 years, 7 months ago (2016-05-11 11:29:43 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-11 13:54:53 UTC) #13
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 13:56:49 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/00923f90277216a21263f16898fb404c4a5741c8
Cr-Commit-Position: refs/heads/master@{#392911}

Powered by Google App Engine
This is Rietveld 408576698