Closed
Bug 315726
Opened 19 years ago
Closed 18 years ago
[BeOS]Avoid mistargeted (focus) messages
Categories
(Core Graveyard :: Widget: BeOS, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sergei_d, Assigned: sergei_d)
References
Details
(Keywords: fixed1.8.1)
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
thesuckiestemail
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
beltzner
:
approval1.8.1+
|
Details | Diff | Splinter Review |
there is quite frequent case especially in destroy process for focus and draw(but not only),
that message sent from BView reaches widget with missing mView (or maybe even different mView??).
While for drawing it may cause minor issues only, for focus events it is more than important - as most of those messages are related to create/destroy process.
In this case we must rather drop those messages than dispatch it to mozilla.
Also i think there is reasonable to send GOTFOCUS message directly from nsWindow::SetFocus, while LOSTFOCUS may remain in CallMethod, but with added target check.
Assignee | ||
Comment 1•19 years ago
|
||
works definitely better with search box and when creating new tabs.
review request
Attachment #202538 -
Flags: review?(thesuckiestemail)
Attachment #202538 -
Flags: review?(thesuckiestemail) → review+
Assignee | ||
Comment 3•19 years ago
|
||
Laned in trunk
Checking in mozilla/widget/src/beos/nsWindow.cpp;
/cvsroot/mozilla/widget/src/beos/nsWindow.cpp,v <-- nsWindow.cpp
new revision: 1.110; previous revision: 1.109
done
Closing
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 4•18 years ago
|
||
This is the patch for the MOZILLA_1_8_BRANCH.
Sergei, I get the following warning:
/boot/home/firefox-devel/mozilla/widget/src/beos/nsWindow.cpp: In method `void nsViewBeOS::MakeFocus(bool)':
/boot/home/firefox-devel/mozilla/widget/src/beos/nsWindow.cpp:3281: warning: left-hand operand of comma expression has no effect
The line in question is:
if (nsnull != (info = new MethodInfo(w, w, nsWindow::KILL_FOCUS),1,args))
I'm not sure what you're trying to do, but is it safe to ignore the warning. Also, inside the first #ifdef DEBUG_FOCUS block there is a printf line which ends with */ (without a starting one).
It builds though.
Assignee | ||
Comment 5•18 years ago
|
||
I think this warning (and bit flawed logic) was fixed later in some bug.
Look at current trunk source code to see how this place in discussion should look alike. I think it is safe to fix it now and here than later.
Comment 6•18 years ago
|
||
This patch includes the fix to bug 326687. Requesting permission to land in the MOZILLA_1_8_BRANCH.
This is a BeOS-only change and will not affect any other platform.
Attachment #231916 -
Attachment is obsolete: true
Attachment #231935 -
Flags: approval1.8.1?
Comment 7•18 years ago
|
||
Comment on attachment 231935 [details] [diff] [review]
Patch for 1_8 branch (2)
a=drivers
Attachment #231935 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 8•18 years ago
|
||
Checking in mozilla/widget/src/beos/nsWindow.cpp;
/cvsroot/mozilla/widget/src/beos/nsWindow.cpp,v <-- nsWindow.cpp
new revision: 1.91.4.18; previous revision: 1.91.4.17
done
Assignee | ||
Updated•18 years ago
|
Status: REOPENED → RESOLVED
Closed: 19 years ago → 18 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•