We’re experiencing some strange behavior in the system. We’re using Google Chrome on Test-Oracle, and when you open more than one tab and leave them running in the background, they close automatically when you return to them. I’m attaching a video with the explanation.
Environment
Windows 11 - 23h2 Firefox 1333.0.3 Google Chrome - 131.0.6778.109
Attachments
2
Activity
Show:
Carlos Ruiz December 18, 2024 at 5:57 PM
(#2596)
Carlos Ruiz December 18, 2024 at 3:13 PM
Thanks - you’re right:
Heng Sin Low December 18, 2024 at 2:31 PM
hi , that doesn’t re-produce it on my chrome either. I guess the fix could be straightforward for this - don’t process the swipe event if it is not on mobile, i.e when ClientInfo.isMobile() is false, ignore the Swipe event.
Carlos Ruiz December 17, 2024 at 6:19 PM
Hi , I found the way to reproduce it, and probably the culprit.
This is a recording of my vivaldi:
The trick is to move the mouse within the title, but without leaving the header
it also needs to be moved quickly, if moved slowly it just select the text
in firefox the text of the header cannot be selected, moving the mouse there in firefox interprets it as dragging the tab
Debugging:
So, for some reason, vivaldi is sending this as a Swipe event:
I set a breakpoint at line org.compiere.util.Env.clearWinContext:1434
when the closing of the window is triggered I checked the stack trace and is being called from line org.adempiere.webui.part.WindowContainer.insertBefore(...).new EventListener() {...}.onEvent(SwipeEvent):465
When I reproduced I was testing test case #10 so financial report open in HTML and was opening GL Journal window which was getting closed when getting focus on report viewer
We’re experiencing some strange behavior in the system. We’re using Google Chrome on Test-Oracle, and when you open more than one tab and leave them running in the background, they close automatically when you return to them. I’m attaching a video with the explanation.