Fix a nasty bug in popup menu handling: when a popup menu item was clicked this caused two events to be sent: - an event detailing the click - an event detailing that the mouse has left the popup window If the click event arrived before the mouse event then the click would redirect to another window. Immediately after that redirect the mouse event would arrive from the dying browser page - causing the following: - the dying page was sending that request while dying - causing an abort of the xml request. This called the error   handler of the dying page and caused it to overwrite the new page's document in firefox, sigh. This was solved   by checking if a request was cancelled inside an error handler - in that case no error is written. - If the request arrived quite late (so on connections from Lyon to Capelle, sigh) the new page was constructed   and DomUI got a request for a previous page- which is a sign the back button is pressed for it.. So the new   page was destroyed, causing "session expired" messages all over the place....
Fix a nasty bug in popup menu handling: when a popup menu item was clicked this caused two events to
be sent:
- an event detailing the click
- an event detailing that the mouse has left the popup window
If the click event arrived before the mouse event then the click would redirect to another window. Immediately
after that redirect the mouse event would arrive from the dying browser page - causing the following:
- the dying page was sending that request while dying - causing an abort of the xml request. This called the error
  handler of the dying page and caused it to overwrite the new page's document in firefox, sigh. This was solved
  by checking if a request was cancelled inside an error handler - in that case no error is written.
- If the request arrived quite late (so on connections from Lyon to Capelle, sigh) the new page was constructed
  and DomUI got a request for a previous page- which is a sign the back button is pressed for it.. So the new
  page was destroyed, causing "session expired" messages all over the place....

The fix is to send only one event.

fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui