Closed Bug 177637 Opened 23 years ago Closed 23 years ago

mfcEmbed painting problem when closing some windows entirely contained browserview

Categories

(Core :: DOM: Navigation, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: jeff, Assigned: adamlock)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021028 K-Meleon Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021028 K-Meleon When "some" windows are moved on top of mfcEmbed, and subsequently closed while the mouse is also within the mfcEmbed window, the region covered by the window is not repainted (or perhaps, is repainted, and then erased) Reproducible: Always Steps to Reproduce: 1) Open mfcEmbed 2) Maximize it 3) Run internet explorer 4) Rezise the IE window so that it is smaller than the mfcEmbed window 5) move the IE window on top of the mfcEmbed window, and entirely contained within the browserview 6) Use the mouse to close the IE window Actual Results: The area covered by the window is blank. Expected Results: The area covered by the window should be visible. Now, here's the rub: 1) it only happens with some windows (notepad, for example, behaves fine on my machine while trillian chat windows behave the same as IE) 2) it does not happen if you use the keyboard (Alt+F4) to close the window while the mouse cursor is not on top of the IE window I suspect this is a race condition somewhere between the mousemove message that is sent when the window is closed (WM_MOUSEMOVE), and the WM_PAINT message sent when the window is destroyed.
Screenshots available here: <a href="http://www.tcbmi.com/mozilla/177637/before.jpg">Before</a> <a href="http://www.tcbmi.com/mozilla/177637/after.jpg">After</a>
Confirming. It appears to be because the parent of the browser window is not clipping its children. Patch follows.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Simple patchSplinter Review
1-line patch enables WS_CLIPCHILDREN on the browser view class. Chak can you review please?
The patch works flawlessly, great work Adam. It's nice to see that it ended up being something simple. r=jeff@tcbmi.com
For whatever it's worth (r=chak) since jeff already beat me to it :-)
Attachment #104814 - Flags: review+
Comment on attachment 104814 [details] [diff] [review] Simple patch rs=blizzard
Attachment #104814 - Flags: superreview+
Comment on attachment 104814 [details] [diff] [review] Simple patch a=asa for checkin to 1.2 (on behalf of drivers)
Attachment #104814 - Flags: approval+
Fix checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: