Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem webkit2gtk SWT Browser Widget can not open URL to local html file
Problem webkit2gtk SWT Browser Widget can not open URL to local html file [message #1852226] Thu, 05 May 2022 12:19
thomas huster is currently offline thomas husterFriend
Messages: 21
Registered: June 2012
Junior Member
After the target update to eclipse 2022-03 (4.23) the Browser widget on Linux gtk no longer works with a file:// URI to a html file on the file system. A dialog to save the html file is shown instead of rendering the html file.

As there are also other files in the directory referenced by the html file, setting the html content with the setText() method is not an option.

EDIT:
Just tested this with a product built with an older target platform, which has the same problem. Seems this is related to the installed webkit version.
Currently:
webkit2gtk 2.36.0-2
webkit2gtk-4.1 2.36.0-2

The reason seems to be this bug of webkit. https://bugs.webkit.org/show_bug.cgi?id=230797

As mentioned in the bug report downgrading glib-2.72 to glib-2.70 is a workaround for the problem.

Regards,
Thomas

[Updated on: Thu, 05 May 2022 14:07]

Report message to a moderator

Previous Topic:java.lang.StringIndexOutOfBoundsException in TextLayout with formatter-embedded OOMPH setup xml file
Next Topic:How to get SWT stand-alone app to render UI in "dark mode"
Goto Forum:
  


Current Time: Thu Apr 25 21:07:45 GMT 2024

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

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

Back to the top