Closed Bug 315576 Opened 20 years ago Closed 20 years ago

[BEOS] Menubar/Toolbar/bookmarks toolbar repaint incorrectly after popup windows close.

Categories

(Firefox :: General, defect)

x86
BeOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: doug, Assigned: sergei_d)

References

()

Details

(Keywords: fixed1.8.1)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (BeOS; U; BeOS BePC; en-US; rv:1.9a1) Gecko/20051105 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (BeOS; U; BeOS BePC; en-US; rv:1.9a1) Gecko/20051105 Firefox/1.6a1 Recently introduced method in nsViewBeOS to reduce unneeded Draws results in improper repaint. See attached jpg for picture. Tested by changing if (paintregion.CountRects() == 0 || !paintregion.Frame().IsValid() || !fJustValidated) to if (paintregion.CountRects() == 0 || !paintregion.Frame().IsValid() /*|| !fJustValidated*/) in nsViewBeOS::Draw. Reproducible: Always Steps to Reproduce: 1.start browser 2.go to url above 3.run benchJS 4.wait for step 2 (pop up windows) to complete Actual Results: if any part of menubar, toolbar or bookmark toolbar is obscured by the popups, they'll be corrupted after the popups close. Expected Results: windows should close and bars should return to normal.
attachment is .png, not .jpg as mentioned above.
adding block of 311032 tracking bug
Blocks: 311032
i think i will fix this in previous bug about scrolling
tqh, what do you think if it may be related to our Destroy() code?
I'm not going to rule it out, but don't think it's very likely.
It seems like here is happening what i'm was afraid about for long time. Our tricks/hacks with event priorities in nsAppShell may broke normal order of events. Probability isn't too high, but now it happened on modern x64 processor. As natural solution, looks like 'natv' events must be set to lower priority queue . Or, as hack, we need additional priority level for ONPAINT, as i don't wish to put it at same level as user-triggered events (keyboard, mouse click, move, wheel)
Also it might be good to set nsAppshell's event-thread to have higher priority than ordinary windows so that it always can process events faster than windows can create new events. Right now they are at same priority.
solution changes priority of native event queue PLEvents.
Attachment #202413 - Flags: review?
Attachment #202413 - Flags: review? → review?(thesuckiestemail)
Comment on attachment 202413 [details] [diff] [review] patch to nsAppShell.cpp fixes problem r=thesuckiestemail@yahoo.se
Attachment #202413 - Flags: review?(thesuckiestemail) → review+
Checking in mozilla/widget/src/beos/nsAppShell.cpp; /cvsroot/mozilla/widget/src/beos/nsAppShell.cpp,v <-- nsAppShell.cpp new revision: 1.30; previous revision: 1.29 done
Assignee: nobody → sergei_d
closing for now. though, it will be interesting to test our appshell at some quad x86-64 5 GHz machines in near future:)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 202413 [details] [diff] [review] patch to nsAppShell.cpp fixes problem Requesting permission for the MOZILLA_1_8_BRANCH. This is a BeOS-only change and does not affect any other platform.
Attachment #202413 - Flags: approval1.8.1?
Attachment #202413 - Flags: approval1.8.1? → approval1.8.1+
Checking in mozilla/widget/src/beos/nsAppShell.cpp; /cvsroot/mozilla/widget/src/beos/nsAppShell.cpp,v <-- nsAppShell.cpp new revision: 1.29.8.1; previous revision: 1.29 done
Keywords: fixed1.8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: