Closed
Bug 1427699
Opened 7 years ago
Closed 7 years ago
A cloned resource fails to notify the 'suspend' event
Categories
(Core :: Audio/Video: Playback, enhancement, P3)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla59
| Tracking | Status | |
|---|---|---|
| firefox59 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(3 files)
No description provided.
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
Repro steps:
1. History -> Clear recent history -> Everything
to clear all cache data.
2. open the link: https://bugzilla.mozilla.org/attachment.cgi?id=8939505
Expected result:
'suspend' should be fired for v2 since it is not fetching data.
Actual result:
'stalled' is fired which means the user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•7 years ago
|
Attachment #8940567 -
Flags: review?(gsquelart)
Attachment #8940568 -
Flags: review?(gsquelart)
Comment 5•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8940567 [details]
Bug 1427699. P1 - allow element->DownloadSuspended() to be called when mChannel is null.
https://reviewboard.mozilla.org/r/210762/#review216518
Attachment #8940567 -
Flags: review?(gsquelart) → review+
Comment 6•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8940568 [details]
Bug 1427699. P2 - rewrite InitAsCloneInternal() to mimic the case where data is downloaded from a channel.
https://reviewboard.mozilla.org/r/210764/#review216522
::: dom/media/MediaCache.cpp:2893
(Diff revision 1)
> {
> MOZ_ASSERT(OwnerThread()->IsOnCurrentThread());
> - AutoLock lock(aOriginal->mMediaCache->Monitor());
> + AutoLock lock(mMediaCache->Monitor());
>
> - mResourceID = aOriginal->mResourceID;
> + // Download data and notify events if necessary. Note the order is important
> + // in order to mimic the behavior of data is downloaded from the channel.
'is' -> 'being'
::: dom/media/MediaCache.cpp:2940
(Diff revision 1)
> + mClientSuspended = true;
> + mCacheSuspended = true;
> + mChannelEnded = true;
> + mClient->CacheClientSuspend();
>
> + // Step 5: add the steam to be managed by the cache.
'steam' -> 'stream'
Attachment #8940568 -
Flags: review?(gsquelart) → review+
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 8•7 years ago
|
||
Thanks for the review.
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15c31a08d6e3
P1 - allow element->DownloadSuspended() to be called when mChannel is null. r=gerald
https://hg.mozilla.org/integration/autoland/rev/8932f0853269
P2 - rewrite InitAsCloneInternal() to mimic the case where data is downloaded from a channel. r=gerald
Comment 10•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/15c31a08d6e3
https://hg.mozilla.org/mozilla-central/rev/8932f0853269
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•