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

Issue 2144543002: Fix invalidating the text track indexes after append or remove text track from the list (Closed)

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

Description

Fix invalidating the text track indexes after append or remove text track from the list There was a trivial bug in 'for' loop which iterates through the array indexes but always uses the initialisation value of the iterator instead of real value of the iterator. BUG= Committed: https://crrev.com/50a0e9966263d1a870c8fd1c2baf726b1729c54c Cr-Commit-Position: refs/heads/master@{#405709}

Patch Set 1 #

Patch Set 2 : Unit tests #

Total comments: 6

Patch Set 3 : All with unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -1 line) Patch
M third_party/WebKit/Source/core/core.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/track/TextTrackList.cpp View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp View 1 2 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
mfiglarowicz
4 years, 5 months ago (2016-07-12 07:05:26 UTC) #3
foolip
I assume that this is observable in some way, can you try writing a test?
4 years, 5 months ago (2016-07-12 07:39:28 UTC) #4
mfiglarowicz
I've added unit tests for this issue
4 years, 5 months ago (2016-07-13 05:25:53 UTC) #5
foolip
lgtm % nits https://codereview.chromium.org/2144543002/diff/20001/third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp File third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp (right): https://codereview.chromium.org/2144543002/diff/20001/third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp#newcode2 third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp:2: * Copyright (C) 2016, Opera Software ...
4 years, 5 months ago (2016-07-13 11:41:25 UTC) #6
mfiglarowicz
https://codereview.chromium.org/2144543002/diff/20001/third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp File third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp (right): https://codereview.chromium.org/2144543002/diff/20001/third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp#newcode2 third_party/WebKit/Source/core/html/track/TextTrackListTest.cpp:2: * Copyright (C) 2016, Opera Software ASA. All rights ...
4 years, 5 months ago (2016-07-14 07:04:56 UTC) #7
foolip
After a "lgtm % nits" it's OK to send to CQ yourself after addressing the ...
4 years, 5 months ago (2016-07-14 09:57:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2144543002/40001
4 years, 5 months ago (2016-07-14 09:57:52 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/103939)
4 years, 5 months ago (2016-07-14 11:17:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2144543002/40001
4 years, 5 months ago (2016-07-15 06:09:36 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-15 06:39:52 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 06:41:31 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/50a0e9966263d1a870c8fd1c2baf726b1729c54c
Cr-Commit-Position: refs/heads/master@{#405709}

Powered by Google App Engine
This is Rietveld 408576698