Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to Force stop SWT Browser when it runs infinite java script.
How to Force stop SWT Browser when it runs infinite java script. [message #1795144] Mon, 17 September 2018 04:39
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

1. My eclipse based product has in-app browser that uses SWT Browser.
2. When the browser loads some script that causes infinite loop like while(true){}; then entire SWT application is not responsible.
3. I want to force stop the browser only not entire product when user faces this situation.

I could catch the situation using some timer thread, but there is no way to stop browser from outside of UI thread. (such as dispose, stop).
I could not execute any code through display thread in this situation (async/sync)


Thanks for reading.
Previous Topic:Canvas draw image slow
Next Topic:Stopping Infinite Java Script Loop from SWT Browser
Goto Forum:
  


Current Time: Thu Apr 02 21:06:07 GMT 2020

Powered by FUDForum. Page generated in 0.01996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top