HTML Tools preferences
HTML tools in P4V are enabled by default and are controlled by the P4V.Features.HTMLTools property. For details, see the topic Feature-related P4V properties in the P4 Server Administration Documentation.
Use HTML Tools preferences to control how HTML tabs run, restrict allowed sources, and manage browser-related behaviour.
On this page:
Enable demo mode for HTML Tools
Enable demo mode to try HTML tool demonstrations for the current session.
-
Go to:
-
Edit > Preferences (Windows)
-
P4V > Preferences (Mac)
-
-
Click the HTML Tools tab.
-
Select Run HTML Tools in demo mode.
-
Click OK.
Demo mode is enabled for the current session only.
Restrict allowed HTML tool URLs
Restrict HTML tools to run only from specific base URLs.
-
Open Edit > Preferences and go to the HTML Tools tab.
-
Select Only accept HTML Tools from.
-
Click Add next to Permitted BaseURLs.
-
Enter a base URL, then click OK.
-
Repeat to add more URLs as needed.
-
Click OK.
-
Restart P4V.
Only HTML tools that match the permitted base URLs are accepted. Other URLs result in a security error.
Example permitted URLs
- http://www.toolserver.com/customtabs
- http://www.toolserver.com/visualtools
- http://www.toolserver.com/pages
- http://www.toolserver.com/tabs
Control HTML tool download behavior
Choose how P4V handles file downloads triggered from HTML tab pages.
-
Go to Edit > Preferences.
-
Select HTML Tools and click Advanced Settings.
-
Select or clear Allow HTML tools to handle file downloads directly:
-
Cleared (default): P4V cancels the download and passes it to the system browser.
Downloads generated in JavaScript (blob URLs) cannot be opened by the system browser, so they are silently cancelled when this option is cleared. Select this option to allow them to complete. -
Selected: P4V allows the embedded browser to complete the download. Files are saved to the system default download location without prompting.
-
-
Click OK.
Download handling follows your selected preference.
HTML tab file system access
HTML tab pages can now request access to the file system.
When an HTML app prompts for a file location, P4V grants the request and displays the system file picker. This behavior is always enabled.
Manage HTML Tools cookies
Delete cookies stored by HTML Tools.
-
Go to Preferences > HTML Tools > Advanced Settings.
-
Select Delete all cookies.
Additional information
Your administrator can override the allowed URL list using the P4VJS.HTMLAllowList property.
Use Copy to Clipboard to share a formatted list of URLs if you need approval.
Your administrator might want to see P4VJS deployment properties in the P4 Server Administration Documentation
HTML Tools support cookies. You can manage them in Preferences > HTML Tools > Advanced Settings.