[MediaControl-Windows] Correct the index for fetching next available image
Categories
(Core :: Audio/Video: Playback, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox-esr78 | --- | unaffected |
firefox78 | --- | unaffected |
firefox79 | --- | unaffected |
firefox80 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Suppose the current artwork is <img A, img B, img C> and Firefox is currently fetching img B, whose index is 1 in the artwork. If the artwork is updated to <img D, img B> before img B is fetched, then Firefox will skip fetching a new image since img B is also an acceptable choice in the new artwork. However, if Firefox fails to fetch img B, in the current implementation, a new image at (previous index + 1) would be fetched, as a fallback plan. In the above case, the index is 2, which is out of the bound of the new artwork.
Instead of caching the previous index of an image in the artwork and using the previous index plus 1 as the index of the next available image, the index of the next available image should be reset every the artwork is updated.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Suppose the current artwork is <img A, img B, img C> and Firefox is
currently fetching img B, whose index is 1 in the artwork. If the
artwork is updated to <img D, img B> before img B is fetched, then
Firefox will skip fetching a new image since img B is also an acceptable
choice in the new artwork. However, if Firefox fails to fetch img B, in
the current implementation, a new image at (previous index + 1) would be
fetched, as a fallback plan. In the above case, the index is 2, which is
out of the bound of the new artwork.
Instead of caching the previous index of an image in the artwork and
using the the previous index plus 1 as the index of the next available
image, the index of the next available image should be reset every time
when artwork is updated
Comment 2•4 years ago
|
||
Set release status flags based on info from the regressing bug 1647434
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•