Closed
Bug 328337
Opened 19 years ago
Closed 19 years ago
black flash if you visit page that loaded in a background tab
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: Peter6, Assigned: vlad)
References
Details
(Whiteboard: cairo)
Attachments
(3 files)
250 bytes,
text/html
|
Details | |
2.14 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
1.67 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Updated•19 years ago
|
Whiteboard: cairo
Assignee | ||
Comment 3•19 years ago
|
||
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...
Comment 4•19 years ago
|
||
*** Bug 328993 has been marked as a duplicate of this bug. ***
Comment 5•19 years ago
|
||
Will this patch address the issue I see of images flashing black on occasion also, or should that be a separate bug?
Comment 6•19 years ago
|
||
(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
Comment 7•19 years ago
|
||
I'm talking about JPG's and non-animated GIFs.
Assignee: vladimir → nobody
Status: ASSIGNED → NEW
Comment 8•19 years ago
|
||
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+
Assignee | ||
Comment 10•19 years ago
|
||
checked in; I think this same problem exists on linux, I'll double check that before resolving.
Reporter | ||
Comment 11•19 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060307 Firefox/1.6a1 ID:2006030713
Fixed for me
Comment 12•19 years ago
|
||
Attachment #214489 -
Flags: superreview+
Attachment #214489 -
Flags: review?(roc)
Attachment #214489 -
Flags: review+
Assignee | ||
Comment 14•19 years ago
|
||
Fixed on both windows/linux; shouldn't appear on mac, once we get there.
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.
Description
•