Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: You can still use the <taskClass> tag to identify the  component by it's class name, but using the <predefinedDisplay> is the preferred way of doing this.   

Configuring a Whitelist and other options

For security reasons, an extra display configuration file named WebBrowserDisplay.xml has been added where you should list domains on the internet that are considered safe for the embedded web browser so it will allow users to navigate to web pages hosted in these domains.

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<webBrowserDisplay xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews https://fewsdocs.deltares.nl/schemas/version1.0/webBrowserDisplay.xsd">
    <defaultBrowser>true</defaultBrowser>
	<bringToFront>true</bringToFront>
	<chromiumSwitch>--proxy-server="https://proxy-ip:proxy-port</chromiumSwitch>
    <domainWhiteList>
		<access origin="deltares.nl" />
		<access origin="*.deltares.nl" />
	</domainWhiteList>
	<downloadDir>%REGION_HOME%/downloads</downloadDir>
</webBrowserDisplay>

...

  • sudo dnf install epel-release-latest-8.noarch
  • sudo dnf install chromium
  • sudo dnf install dbus-x11

Chromium command line switches / flags

For specific troubleshooting or configuration purposes, you can use one or more <chromiumSwitch> elements to add add standard chromium command line switches to the WebBrowserDisplay.xml configuration, like in the example configuration given above, a proxy server is configured using the --proxy-server option.

Developer Tools (debugging)

...