You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the ability to access and control navigation on a Window from the native rust code is extremely limited. The best you can hope for is evaluating JavaScript to change the URL. Since the native WebView APIs provide information regarding current URL with the ability to change it would make nice to expose some form of this from the Window structure.
Ideally there would be hooks to get the current window URL, navigate to a new URL and the ability to register listeners for changes in URL. WRY already provides a mechanism for attaching a navigation controller that's called every time the view URL changes. This could easily be used to provide navigation events as well as the ability to limit navigation to external URLs. Likewise, the native WebView structures allow retrieving and changing the URL, it's just a matter of creating a unified interface for accessing and manipulating that information and then plumbing it through the many abstraction layers.
The text was updated successfully, but these errors were encountered:
jhutchins
changed the title
[feat] Improved native navigation api
[feat] Improved native navigation API
May 8, 2022
Currently the ability to access and control navigation on a Window from the native rust code is extremely limited. The best you can hope for is evaluating JavaScript to change the URL. Since the native WebView APIs provide information regarding current URL with the ability to change it would make nice to expose some form of this from the Window structure.
Ideally there would be hooks to get the current window URL, navigate to a new URL and the ability to register listeners for changes in URL. WRY already provides a mechanism for attaching a navigation controller that's called every time the view URL changes. This could easily be used to provide navigation events as well as the ability to limit navigation to external URLs. Likewise, the native WebView structures allow retrieving and changing the URL, it's just a matter of creating a unified interface for accessing and manipulating that information and then plumbing it through the many abstraction layers.
The text was updated successfully, but these errors were encountered: