Closed
Bug 289446
Opened 20 years ago
Closed 20 years ago
Image size not correct in javascript
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: enigma, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 Open the URL. There will be an Image with a peace of javascript writing the dimensions of the image into the document. The first time the image is loaded, the size '24 x 24 Pixel' is printed. This is definitely wrong. Reload the page (F5) and the correct size '94 x 114 Pixel' is printed. If you reload the Page with CTRL + F5 (to override the cache) the size '24 x 24 Pixel' is printed again. Reproducible: Always Steps to Reproduce:
Comment 1•20 years ago
|
||
the script is run inline before the document is fully loaded, so I would expect it to give the dimensions of the placeholder (or zeros) just as likely as the loaded image, depending on timing. see also bug 157978. to get final dimensions, run script from onload
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
24x24 px is WRONG! The Image is not 24x24 Pixel large. It should return a NULL-Value.
Comment 3•20 years ago
|
||
see bug 157978 comment 6.
Comment 4•20 years ago
|
||
not the image is 24x24 but the placeholder is 24x24 -> invalid
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•