Open
Bug 1202178
Opened 10 years ago
Updated 3 years ago
Image tooltip in Inspector doesn't show apng animation (it shows only first frame)
Categories
(DevTools :: Inspector, defect, P3)
DevTools
Inspector
Tracking
(firefox43 affected)
NEW
| Tracking | Status | |
|---|---|---|
| firefox43 | --- | affected |
People
(Reporter: arni2033, Unassigned)
References
()
Details
STR: (Win7_64, Nightly 43, 32bit, ID 20150901030226, new profile, safe mode)
1. Open the following page or click URL in the form above
data:text/html,<div style="background:url(chrome://browser/skin/tabbrowser/loading@2x.png); height:100px; width:100px;">
2. Open devtools->Inspector, inspect <div>, open "Rules" panel
3. Hover mouse over the url in that pane
Result: Image in tooltip isn't animated
Expectations: Image should be animated, because it's .apng-file
It's specific for Inspector, I think, because I checked that image in tooltip in Network tab IS animated. You can use this link for testing [https://i.imgur.com/DEHPlhG.png]
Also, this bug may be connected to bug 605496
Comment 1•10 years ago
|
||
The inspector retrieves the image as a data-uri from the inspector actor.
See the imageToImageData function in https://dxr.mozilla.org/mozilla-central/source/devtools/server/actors/inspector.js
The process through which it does this seem to only preserve the first frame of animated images.
Victor, how does the netmonitor retrieve image previews?
Flags: needinfo?(vporof)
Comment 2•10 years ago
|
||
We have the entire request's content and mime type, so we create a data uri from it. Relevant code: https://dxr.mozilla.org/mozilla-central/source/devtools/client/netmonitor/netmonitor-view.js#2040
Flags: needinfo?(vporof)
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•