Closed
Bug 1320684
Opened 9 years ago
Closed 8 years ago
Metadata decoding started before any data is available
Categories
(Core :: Graphics: ImageLib, defect, P3)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: aosmond, Assigned: aosmond)
Details
(Whiteboard: gfx-noted)
Attachments
(1 file)
|
7.94 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
Metadata decoding is typically initiated in RasterImage::Init:
http://searchfox.org/mozilla-central/rev/957458d8fa2328c2a760dbb30e7f1f1efa55b4d0/image/RasterImage.cpp#151
as eventually called by imgRequest::OnDataAvailable:
http://searchfox.org/mozilla-central/rev/957458d8fa2328c2a760dbb30e7f1f1efa55b4d0/image/imgRequest.cpp#1074
However the data isn't fed into the source buffer until a few lines later:
http://searchfox.org/mozilla-central/rev/957458d8fa2328c2a760dbb30e7f1f1efa55b4d0/image/imgRequest.cpp#1109
We should wait to dispatch the decoding task until there is actual data, otherwise it will probably just go to sleep as soon as it starts, and then wait to get resumed.
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: gfx-noted
| Assignee | ||
Comment 1•9 years ago
|
||
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ddcfe17738a8bdce4e3a4b8ba17772a2b9a22e52
Attachment #8814911 -
Flags: review?(tnikkel)
Updated•9 years ago
|
Attachment #8814911 -
Flags: review?(tnikkel) → review+
Pushed by aosmond@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5186852360d6
Start metadata decoding when the first data chunk has been received. r=tnikkel
Comment 5•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•