Closed
Bug 324405
Opened 19 years ago
Closed 16 years ago
Images in cache don't have size (width and height) information
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 466586
People
(Reporter: dosergio, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; pt-BR; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; pt-BR; rv:1.8) Gecko/20051111 Firefox/1.5
When javascript deals with an image that Firefox kept in cache, it CAN'T figure out the dimensions. Maybe it is not a bug, but a Fx characteristic, but in future versions it would be nice if the cache images came with dimensions. I wrote a Greasemonkey script that shows real internet images in any website by the use of tags [img] and [/img] around the image link. When the image is not in cache, it is shown in proportional real dimensions, but when the image is retrieved from cache, javascript can't guess the real size, making the need of a reload. Sorry if it is a Greasemonkey bug instead of Firefox bug, anyway, I can't be sure whose is the guilt in this case.
Reproducible: Always
Comment 1•19 years ago
|
||
What is the script you're referring to? Please provide Steps to reproduce, Actual results, and Expected results - you're asked to fill those fields for a reason, right now it's pretty hard (impossible for me) to understand what the bug is about.
As I said, I am afraid it is a Greasemonkey Extension issue and the tools are all in Portuguese... The fact is that the naturalWidth property of the images retrived from the cache has value = 0 and javascript can't read the dimension in THE GREASEMONKEY SCRIPT.
As I said, I am afraid it is a Greasemonkey Extension issue and the tools are all in Portuguese... The fact is that the naturalWidth property of the images retrived from the cache has value = 0 and javascript can't read the dimension in THE GREASEMONKEY SCRIPT.
Comment 4•19 years ago
|
||
Okay, so can you attach a simplified version of the GM script that doesn't work? Generally naturalWidth seems to work okay for cached images judging from what I see in the DOM inspector.
Here is the link for the script:
http://greasemonkey.sitesbr.net/imagenssim_redir.asp?nocount=1
And here goes a link to a printscreen showing the image from cache (note that the script can't correct the proportion in the images from cache:
http://img229.imageshack.us/img229/3441/chacheproblem2gh.gif
And after a reload:
http://img73.imageshack.us/img73/8085/chacheproblemf51mr.gif
Comment 6•16 years ago
|
||
I suspect that this was fixed by bug 466586.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•