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

Issue 2133143003: Allow multiple URL.createObjectURL invocations for MediaSource (Closed)

Created:
4 years, 5 months ago by servolk
Modified:
4 years, 5 months ago
Reviewers:
foolip, wolenetz
CC:
chromium-reviews, blink-reviews, feature-media-reviews_chromium.org, haraken, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow multiple URL.createObjectURL invocations for MediaSource Currently calling URL.createObjectURL for a MediaSource more than once causes an assert/crash due to MediaSource::m_isAddedToRegistry flag being already set. But since calling createObjectURL is actually a valid thing to do and should just generate new unique URLs, let's replace the m_isAddedToRegistry flag with a counter. BUG=604425 Committed: https://crrev.com/014758724726a61d5a54df88e4fe993436a17442 Cr-Commit-Position: refs/heads/master@{#404879}

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR feedback #

Total comments: 2

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/MediaSource.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediasource/MediaSource.cpp View 1 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
servolk
4 years, 5 months ago (2016-07-08 22:05:13 UTC) #2
wolenetz
Looking pretty good. Just a couple comments. https://codereview.chromium.org/2133143003/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html (right): https://codereview.chromium.org/2133143003/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html#newcode118 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html:118: }, 'Calling ...
4 years, 5 months ago (2016-07-11 18:03:18 UTC) #3
servolk
https://codereview.chromium.org/2133143003/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html (right): https://codereview.chromium.org/2133143003/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html#newcode118 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html:118: }, 'Calling URL.createObjectURL multiple times should generate unique URLs ...
4 years, 5 months ago (2016-07-11 18:13:25 UTC) #4
wolenetz
lgtm % nit https://codereview.chromium.org/2133143003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html (right): https://codereview.chromium.org/2133143003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html#newcode121 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html:121: test.expectEvent(mediaSource, 'sourceopen', 'Source reopened'); nit: s/reopened/opened/
4 years, 5 months ago (2016-07-11 18:54:41 UTC) #5
servolk
https://codereview.chromium.org/2133143003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html (right): https://codereview.chromium.org/2133143003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html#newcode121 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html:121: test.expectEvent(mediaSource, 'sourceopen', 'Source reopened'); On 2016/07/11 18:54:41, wolenetz wrote: ...
4 years, 5 months ago (2016-07-11 19:54:10 UTC) #6
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/2133143003/40001
4 years, 5 months ago (2016-07-11 19:55:27 UTC) #9
wolenetz
On 2016/07/11 19:54:10, servolk wrote: > https://codereview.chromium.org/2133143003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html > File > third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html > (right): > > ...
4 years, 5 months ago (2016-07-11 20:00:32 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190505)
4 years, 5 months ago (2016-07-11 23:33:57 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/2133143003/40001
4 years, 5 months ago (2016-07-11 23:40:26 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190638)
4 years, 5 months ago (2016-07-12 03:46:55 UTC) #16
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/2133143003/40001
4 years, 5 months ago (2016-07-12 15:19:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191354)
4 years, 5 months ago (2016-07-12 19:28:26 UTC) #20
wolenetz
On 2016/07/12 19:28:26, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 5 months ago (2016-07-12 19:34:15 UTC) #21
wolenetz
On 2016/07/12 19:34:15, wolenetz wrote: > On 2016/07/12 19:28:26, commit-bot: I haz the power wrote: ...
4 years, 5 months ago (2016-07-12 19:35:53 UTC) #22
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/2133143003/40001
4 years, 5 months ago (2016-07-12 19:37:50 UTC) #24
servolk
On 2016/07/12 19:35:53, wolenetz wrote: > On 2016/07/12 19:34:15, wolenetz wrote: > > On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 19:52:58 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/242927)
4 years, 5 months ago (2016-07-12 22:59:45 UTC) #27
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/2133143003/40001
4 years, 5 months ago (2016-07-12 23:03:39 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-13 01:38:28 UTC) #30
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/014758724726a61d5a54df88e4fe993436a17442 Cr-Commit-Position: refs/heads/master@{#404879}
4 years, 5 months ago (2016-07-13 01:39:26 UTC) #32
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 01:39:43 UTC) #33
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698