Issue 68585 - ContextMenu doesnt always close under Solaris.
Summary: ContextMenu doesnt always close under Solaris.
Status: REOPENED
Alias: None
Product: Impress
Classification: Application
Component: code (show other issues)
Version: 680m181
Hardware: All Solaris
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-14 08:40 UTC by fredrik.haegg
Modified: 2017-05-20 11:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Testtool-script (15.19 KB, application/octet-stream)
2006-08-14 08:57 UTC, fredrik.haegg
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fredrik.haegg 2006-08-14 08:40:20 UTC
Unfortunately, while the bug in i67013 was fixed, the fix seems to have caused
another 
focusing-problem, which causes the context-menu to stay open in another testcase. 

Attached: a testcase which shows the problem. 
Happens both under Linux and Solaris. 

Reminder Fredrikh: Remove workaround when task is fixed.
Comment 1 fredrik.haegg 2006-08-14 08:57:03 UTC
Created attachment 38488 [details]
Testtool-script
Comment 2 fredrik.haegg 2006-08-14 09:03:42 UTC
Correction; this is a "Solaris only"-bug. The problem is that the context menu
is open 
when the testtool tries to close the document, which results in an errormessage. 
Comment 3 philipp.lohmann 2006-09-14 09:56:50 UTC
adjusted title accordingly
Comment 4 philipp.lohmann 2006-09-14 13:28:27 UTC
pl->gh: I'm not sure how this is supposed to work. As far as i can see, the
"gMouseClick" statement of the script will be evaluated in
automation/source/server/statemnt.cxx and basically calls the Click method of a
window. However the popup menus are closed in the window frame proc (how system
events get evaluated). The correct method to post mouse events would IMHO be
Application::PostMouseEvent. However that one is asynchronous which might be why
it is not used in automation ? The solution could be a synchronous
"CallMouseEvent" on Application; however my first naive try to simply make
PostMouseEvent synchronous failed miserably.

I don't know who closes the popups in most cases, but it is not the click event
as far as i can see.

Please advise.
Comment 5 gregor.hartmann 2006-09-14 14:27:00 UTC
this problem has nothing to do with the fix of  i67013  as it is also in m177
the correct method to close a menu without selecting anything is

  menuselect 0

which I tried and it worked

to PL: it is planned to switch to Application::PostMouseEvent (and
Application::PostKeyEvent) soon but thorrough testing has to be done (scheduled
for XMas 2006)
Comment 6 gregor.hartmann 2006-09-14 14:27:50 UTC
.
Comment 7 fredrik.haegg 2006-09-14 14:46:04 UTC
Directly after i67013 was fixed, several tests failed due to context-menus which 
stayed open, where they earlier without any menuselect (0) had closed. 
The workaround is, as you mention a menuselect (0), but since this wasn't needed 
before i67013 was fixed, I see this as a regression. 
Comment 8 epost 2006-10-30 09:09:29 UTC
Set target milestone to 2.2
Comment 9 groucho266 2006-11-24 09:41:28 UTC
Reopening this issue.  It is neither resolved nor invalid.
Furthermore, MenuSelect(0) is not a valid call because slot 0 is not a valid
slot.  It leads to a crash with shells that do not support any slots.  These
shells have to provide at least one entry in their slot map.  This by default is
one for slot 0, which is an invalid id that must not be dispatched.  See issue
71300 for more details.
Comment 10 epost 2007-01-22 14:12:23 UTC
set target to 2.3 as it does not seem possible to implement this until the 2.2
code freeze
Comment 11 gregor.hartmann 2007-07-13 11:04:17 UTC
moved to 2.4 because of too little time left
Comment 12 gregor.hartmann 2007-12-21 11:04:32 UTC
3.0
Comment 13 epost 2008-06-02 15:02:38 UTC
retargeted to 3.x
Comment 14 Marcus 2017-05-20 11:11:38 UTC
Reset assigne to the default "issues@openoffice.apache.org".