Closed Bug 1429009 Opened 6 years ago Closed 6 years ago

ChannelMediaDecoder::DownloadProgressed() should notify 'DownloadProgressed' immediately

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(2 files)

https://searchfox.org/mozilla-central/rev/cf149b7b63ff97023e28723167725e38cf5df757/dom/media/ChannelMediaDecoder.cpp#441

Since GetOwner()->DownloadProgressed() is called asynchronously by ChannelMediaDecoder::DownloadProgressed(), it is possible for HTMLMediaElement::DownloadSuspended() to happen first and change the network state to IDEL.

Then HTMLMediaElement::DownloadProgressed() will do nothing seeing mNetworkState is not LOADING and readyState won't be updated correctly.
Assignee: nobody → jwwang
Blocks: 1369263
Priority: -- → P3
Attachment #8941302 - Flags: review?(bechen)
Attachment #8941303 - Flags: review?(bechen)
Comment on attachment 8941302 [details]
Bug 1429009. P1 - notify 'DownloadProgressed' immediately to preserve the event order.

https://reviewboard.mozilla.org/r/211596/#review217360
Attachment #8941302 - Flags: review?(bechen) → review+
Comment on attachment 8941303 [details]
Bug 1429009. P2 - remove unnecessary AbstractThread::AutoEnter.

https://reviewboard.mozilla.org/r/211598/#review217362
Attachment #8941303 - Flags: review?(bechen) → review+
Attachment #8941302 - Flags: review?(gsquelart)
Attachment #8941303 - Flags: review?(gsquelart)
Comment on attachment 8941302 [details]
Bug 1429009. P1 - notify 'DownloadProgressed' immediately to preserve the event order.

https://reviewboard.mozilla.org/r/211596/#review217364
Attachment #8941302 - Flags: review?(gsquelart) → review+
Comment on attachment 8941303 [details]
Bug 1429009. P2 - remove unnecessary AbstractThread::AutoEnter.

https://reviewboard.mozilla.org/r/211598/#review217366
Attachment #8941303 - Flags: review?(gsquelart) → review+
Thanks for the reviews!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9a6c837be3b4
P1 - notify 'DownloadProgressed' immediately to preserve the event order. r=bechen,gerald
https://hg.mozilla.org/integration/autoland/rev/72b59b20a048
P2 - remove unnecessary AbstractThread::AutoEnter. r=bechen,gerald
https://hg.mozilla.org/mozilla-central/rev/9a6c837be3b4
https://hg.mozilla.org/mozilla-central/rev/72b59b20a048
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: