eclipsesource / eclipsesource/tabris

Browser Widget - Check the disposed flag after loading the HTML source code

Open
#333 2 comments 0 reactions 1 assignee Claimed by @mpost View on GitHub
bug
Dominant language
Java
Stars
56
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hello Tabris team,

recently I have explored a problem with the SWT Browser widget when loading a huge amount of HTML code into it, using the widget's setText method. The problem that occurs is, that if the code is really large (in my case several thousand lines of code, including the pdf.js JavaScript framework to display PDF documents in the widget), it takes a while until the code has been sent to the client and is displayed there. While this is done, the user might navigate back or open another page, since the UI is still responsive as it should be. This will cause a crash of the application, once the code has been fully loaded into the Browser widget (which is no longer visible at that moment). I have tried several solutions (explicitly disposing the browser when changing the current page, etc.) but none of my ideas worked. Once the setText method is called, there seems to be no way of preventing it's loading.

Is there a solution for this problem? Or could you maybe check the disposed flag once the HTML code is ready to be displayed, and in case the browser widget is no longer visible prevent the displaying?

Best regards,

Tobias

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.