Closed Bug 328337 Opened 18 years ago Closed 18 years ago

black flash if you visit page that loaded in a background tab

Categories

(Core :: Graphics, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Peter6, Assigned: vlad)

References

Details

(Whiteboard: cairo)

Attachments

(3 files)

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060223 Firefox/1.6a1 ID:2006022310

repro:
1.middleclick on the testcase (a blank page) to load it in a background tab
2.click on that tab

result:
the page briefly appears as black before turning white

testcase next
Whiteboard: cairo
refrshing page gives same resuilt
So our windows paint event handling seems to have been at least somewhat based on a dirty lie, or at least on some odd logic: namely, the return value from OnPaint wasn't really the return value from the WndProc, but instead just a flag saying whether we actually set a return value or not and whether we should call the default WndProc.  Before, the WndProc return value was always 0, meaning "we handled this event", so just about every OnPaint ended up as "we handled this"; a few times it didn't, but those were for event handlers that don't paint anyway.

Here we always say that we set a return value (PR_TRUE from ProcessMessage) but also set the WndProc return value indicating whether we did paint or not.  This seems to fix this bug and I don't notice anything breaking...
Assignee: nobody → vladimir
Status: NEW → ASSIGNED
Attachment #213076 - Flags: review?(roc)
*** Bug 328993 has been marked as a duplicate of this bug. ***
Will this patch address the issue I see of images flashing black on occasion also, or should that be a separate bug?
(In reply to comment #5)
> Will this patch address the issue I see of images flashing black on occasion
> also, or should that be a separate bug?
>
That should be Bug 324707

I'm talking about JPG's and non-animated GIFs.
Assignee: vladimir → nobody
Status: ASSIGNED → NEW
That's nice with the reassign less than 1/16" from the submit button.
Assignee: nobody → vladimir
Comment on attachment 213076 [details] [diff] [review]
windows paint handling patch

sorry that this fell through the cracks
Attachment #213076 - Flags: superreview+
Attachment #213076 - Flags: review?(roc)
Attachment #213076 - Flags: review+
checked in; I think this same problem exists on linux, I'll double check that before resolving.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060307 Firefox/1.6a1 ID:2006030713

Fixed for me
(In reply to comment #7)
> I'm talking about JPG's and non-animated GIFs.

Bug 326672?
Attached patch fix for gtk2Splinter Review
Same fix for gtk2
Attachment #214489 - Flags: review?(roc)
Fixed on both windows/linux; shouldn't appear on mac, once we get there.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Depends on: 329917
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: