Closed Bug 292662 Opened 19 years ago Closed 19 years ago

[FIX]green and yellow outline of loading images

Categories

(Core :: Layout, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: Peter6, Assigned: bzbarsky)

References

()

Details

(Keywords: regression, testcase)

Attachments

(3 files)

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050502
Firefox/1.0+

repro:
1.Open FF
2.Open url
3.Carefully watch the outline of the images that are loading

this regressed in the past week
Attached image screenshot
notice that not all borders are the same color (see alrger colorblocks)
also the bordercolor varies per image

ps. this has nothing to do with deviantart, it's just used because the images
load so slow.

can be seen on any page with slow loading images
I see this on Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2)
Gecko/20050502 Firefox/1.0+
I do not see this on Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2)
Gecko/20050422 Firefox/1.0+
I see this on many pages. Best way to reproduce is go to one of theses sites
- http://news.bbc.co.uk/
- http://miranda-im.org/download/
-  http://www.fce2.de/main.htm 
Do a CTRL-Refresh and then hit stop as the page starts rendering.
Attached file testcase
This testcase show the behaviour. Note that the testcase is in quirks mode, in
strict mode (thus specifying a strict doctype) makes the behavior disappear
Keywords: testcase
Component: General → Layout
OS: Windows 2000 → All
Priority: -- → P1
Product: Firefox → Core
QA Contact: general → layout
Hardware: PC → All
Summary: green and yellow outline of loading images → [FIX]green and yellow outline of loading images
Target Milestone: --- → mozilla1.8beta2
Attached patch FixSplinter Review
The old code (before bug 290377 was fixed) had:

  mBorderColor[0] = 0;

etc.  This patch has the same effect (though note that this sets the alpha in
the color correctly, so won't break when we start supporting that).  Also, I
need to use SetBorderColor (per comment) because I'm not setting mBorderStyle
directly.
Attachment #182435 - Flags: superreview?(dbaron)
Attachment #182435 - Flags: review?(dbaron)
Assignee: nobody → bzbarsky
Attachment #182435 - Flags: superreview?(dbaron)
Attachment #182435 - Flags: superreview+
Attachment #182435 - Flags: review?(dbaron)
Attachment #182435 - Flags: review+
Comment on attachment 182435 [details] [diff] [review]
Fix

Requesting approval for simple regression fix -- just making sure to initialize
members in a constructor.
Attachment #182435 - Flags: approval1.8b2?
Comment on attachment 182435 [details] [diff] [review]
Fix

a=asa
Attachment #182435 - Flags: approval1.8b2? → approval1.8b2+
Fixed
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: