Closed
Bug 199966
Opened 23 years ago
Closed 23 years ago
[FIXr]renaming image referenced in css and browser crashes upon reload
Categories
(Core :: Graphics: ImageLib, defect, P1)
Core
Graphics: ImageLib
Tracking
()
VERIFIED
FIXED
mozilla1.4beta
People
(Reporter: hauser, Assigned: bzbarsky)
References
()
Details
Attachments
(4 files)
|
1.33 KB,
text/html
|
Details | |
|
60 bytes,
text/plain
|
Details | |
|
13.69 KB,
image/jpeg
|
Details | |
|
2.15 KB,
patch
|
pavlov
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030331
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030331
I took Eric's demo and adapted the css as follows:
div#content {
position: absolute;
color: inherit; /* http://jigsaw.w3.org/css-validator wants this */
background: rgb(233,233,233)
url(hands-grey.gif) 0.0cm 2.4cm no-repeat fixed;
...
Reproducible: Always
Steps to Reproduce:
1. load a page based on the css (I do that on my harddrive as file:// not http://)
2. rename hands-grey.gif to hands-grey0.gif in the file explorer
3. click on reload (a few times e.g. 3)
Actual Results:
the browser crashes
Expected Results:
the background image would disappear or an error would be displayed
| Assignee | ||
Comment 1•23 years ago
|
||
Any chance of attaching your modified HTML/CSS, with the URL to modify
clearly marked, to this bug?
| Reporter | ||
Comment 2•23 years ago
|
||
a css and the jpg to follow
| Reporter | ||
Comment 3•23 years ago
|
||
| Reporter | ||
Comment 4•23 years ago
|
||
once you have loaded the page consisting of all three elements, rename the
h.jpg to h1.jpg and reload --> today's build of Mozilla dies
| Assignee | ||
Comment 5•23 years ago
|
||
Taking bug...
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Priority: -- → P1
Hardware: PC → All
Summary: renaming image referenced in css and browser crashes upon reload → [FIX]renaming image referenced in css and browser crashes upon reload
Target Milestone: --- → mozilla1.4beta
| Assignee | ||
Updated•23 years ago
|
Component: Layout → ImageLib
QA Contact: ian → tpreston
| Assignee | ||
Comment 6•23 years ago
|
||
| Assignee | ||
Comment 7•23 years ago
|
||
Comment on attachment 118987 [details] [diff] [review]
Proposed patch
So the problem is that if in LoadImage we have a cached request and this has no
validator _and_ the AsyncOpen fails (which it apparently does in this case...)
then the validator will be destroyed without ever getting an OnStartRequest
call. The request will then be pointing to a stale mValidator and a crash will
ensue the next time we enter that codepath.
The fix is to have the imgCacheValidator destructor properly clear the
mValidator pointer on its mRequest (the other two changes are just random
cleanup).
Attachment #118987 -
Flags: superreview?(jst)
Attachment #118987 -
Flags: review?(pavlov)
Comment 9•23 years ago
|
||
Comment on attachment 118987 [details] [diff] [review]
Proposed patch
sr=jst
Attachment #118987 -
Flags: superreview?(jst) → superreview+
Comment 10•23 years ago
|
||
Comment on attachment 118987 [details] [diff] [review]
Proposed patch
r=pavlov
Attachment #118987 -
Flags: review?(pavlov) → review+
| Assignee | ||
Updated•23 years ago
|
Summary: [FIX]renaming image referenced in css and browser crashes upon reload → [FIXr]renaming image referenced in css and browser crashes upon reload
| Assignee | ||
Comment 11•23 years ago
|
||
Fix checked in for 1.4b. Thanks for the testcase, Ralf!
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 12•23 years ago
|
||
Verified in the 2003-04-23-03 Macho and 2003-04-22-08 Win32 trunk builds.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•