I would like to load a javascript library for a plugin that need to be open with a webview, but the WebView1 has some limitations and need to access webview2… but direct access trough python is not yet available .
Rhino 8 offers the way to use WebView2 that is installed on my system, but how to access?.. directly seems not allowed, maybe through a C# plugin?..
I try implement a javascript plugin, FrappeGantt, and by implementing it in a python 3 , I have problem to communicate between the webview and storing raw data of my planning in RhinoUsertext.
All these limitation should be solved if I load a WebView2 windows which is base on the chromium navigator, and have access to the Navigating function that is missing in WebView1 …
But it seems that webview2 is not nativetly accessible in python…
My plugins UI work a little nicer in R8 thanks to some more modern JS/Chrome features.
I’ve only briefly looked at how to get WebView2 working in R7, but honestly R8 is now working fine and is getting close to 1 year since first release. I consider R7 support to be legacy now.
One other side note, WebUI for grasshopper, which hasn’t had much development recently, uses WebView2 in R7. I ran into issues with my own UI setup when WebUI was installed.
Ok I understand so it automatically use WebView2 in R8 because I only found only WebView(1) references in the Rhino 8 libraries…
So my question for Mc Neel, is it a full WebView2 behind ? or a reduce version for Rhino only, because some javascript functions does not work properly inside a WebView2…
I’d used this to work out what browser was being used in each version, also different on MacOS. This will be where you are seeing JS/html support differences.