HtmlViewer oddity on Mac vs Windows

OK just wanted to know if this is a common issue. I am viewing a forum using the Webkit Html viewer.

On Windows, I can click the add attachment button which uses Javascript I am sure and a WebKit new dialog pops up allowing me to select a file for upload. On Mac clicking the same button does absolutely nothing. But all other Javascript works, so I don’t think this is a Javascript issue but a Webkit one.

Using a regular browser ie Chrome on Mac this works, it’s just the HtmlViewer on Mac, exact same code on both the Windows & Mac HTML viewer.

Anyway to test where this is failing at, or it just an issue with Webkit on Mac not allowing dialog popups from the Htmlviewer?

Update: Same issue with Native htmlviewer as well not just WEBKIT so it’s a Mac thing.

the webkit setting does not apply to macOS so either way you’re using the native on macOS

see http://documentation.xojo.com/index.php/HTMLViewer.Renderer

Well thats good to know, not sure how I never seen that before. So again it’s a Mac thing because it works fine with Webkit on Windows.

[quote=338137:@Norman Palardy]the webkit setting does not apply to macOS so either way you’re using the native on macOS

see http://documentation.xojo.com/index.php/HTMLViewer.Renderer[/quote]

Possibly security settings on macOS locking things down

You mentioned it worked in Chrome, but Chrome uses its own renderer… Does it work in Safari?

Tested in Safari, it works as it should but within htmlviewer it never opens the file selector dialog to upload files.

Willing to share the link/code?

On Mac you need to implement the WebUIDelegate to get the dialogs working.
e.g. with MBS Plugins via WebUIDelegateMBS class.

Awesome Christian, I’ll try that, since I own your plugin pack this is good news. Shao no code really just the hmlviewer being used, the link is behind a protected httpd authentication site so its not publicly reachable but its just a forum that has upload attachments and so on and the dialog fails to appear.

[quote=338317:@Christian Schmitz]On Mac you need to implement the WebUIDelegate to get the dialogs working.
e.g. with MBS Plugins via WebUIDelegateMBS class.[/quote]