Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.45.0
->0.47.0
Release Notes
tauri-apps/wry (wry)
v0.47.0
Compare Source
7221256
(#1365 by @Norbiros) AddWebViewBuilder::with_initialization_script_for_main_only
to enable injecting JavaScript code into main frame only or all subframes.c1b26b9
(#1394 by @amrbashir) AddWebView::cookies
andWebView::cookies_for_url
APIs.c193e2a
(#1408 by @amrbashir) FixDragDropEvent::Drop
event never fired on Wayland (and sometimes on X11).1d63fa3
(#1403 by @SpikeHD) AddWebViewBuilder::with_extension_path
API to Windows and Linux.0c192f4
(#1414 by @lucasfernog) Fix Android static handlers not being replaced when the application UI is relaunched while still running in the foreground.9a2a2d4
(#1412 by @amrbashir) Fix icons of dragged items getting stuck when usingWebViewBuilder::with_drag_drop_handler
on some distros like Gnome.fa9875b
(#1409 by @amrbashir) On Windows, disable Webview2's file drop when usingWebViewBuilder::with_drag_drop_handler
which fix drag events for files from "Recent files" view.6007608
(#1400 by @amrbashir) On Windows, fix webview slightly larger than the window inner size, which resulted in a hidden 1px in the right and bottom borders of the webviewv0.46.3
Compare Source
be122f6
(#1397 by @lucasfernog) Fixwith_user_agent
regression.v0.46.2
Compare Source
1189e2a
(#1392 by @chrox) Fix malformed headers in custom protocol response on macOS.v0.46.1
Compare Source
bug
33c0193
(#1389 by @amrbashir) Fix crash on macOS versions below 14.a57719e
(#1385 by @huacnlee) AddWebView::focus_parent
method.v0.46.0
Compare Source
8cc2a7f
(#1384 by @amrbashir) This release contains quite the breaking changes, because even though [email protected], ignored duplicate custom protocols, On Linux when using a shared web context, the custom protocol handler can only be registered once so we are bringing the duplicate custom protocols on Linux again, Windows and macOS are not affected. If using a shared web context, make sure to register a protocol only once on Linux (other platforms should be registed multiple times), useWebContext::is_custom_protocol_registered
with#[cfg(target_os = "linux")]
.We also noticed that it is hard to know which webview made a request to the custom protocol so we added a method to attach an ID to a webview, and changed relevant custom protocol APIs to take a new argument that passes the specified id back to protocol handler.
We also made a few changes to the builder, specifically
WebViewBuilder::new
andWebViewBuilder::build
methods to make them more ergonomic to work with.Error::DuplicateCustomProtocol
enum variant.Error::ContextDuplicateCustomProtocol
enum variant.WebViewBuilder::build
if registering a custom protocol multiple times.WebContext::is_custom_protocol_registered
to check if a protocol has been regsterd for this web context.WebViewId
alias type.WebViewAttributes
to have a lifetime parameter.WebViewAttributes.id
field to specify an id for the webview.WebViewBuilder::with_id
method to specify an id for the webview.WebViewAttributes.context
field to specify a shared context for the webview.WebViewAttributes.custom_protocols
field,WebViewBuilder::with_custom_protocol
method andWebViewBuilder::with_asynchronous_custom_protocol
method handler function to takeWebViewId
as the first argument to check which webview made the request to the protocol.WebViewBuilder::with_web_context
to be a static method to create a builder with a webcontext, instead of it being a setter method. It is now an alternative toWebviewBuilder::new
WebViewBuilder::with_attributes
to create a webview builder with provided attributes.WebViewBuilder::new
to take no arguments.WebViewBuilder::build
method to take a reference to a window to create the webview in it.WebViewBuilder::new_as_child
.WebViewBuilder::build_as_child
method, which takes a reference to a window to create the webview in it.WebViewBuilderExtUnix::new_gtk
.WebViewBuilderExtUnix::build_gtk
.0abc221
(#1316 by @pewsheen) Migrate to obj2.b01eac3
(#1386 by @lucasfernog) Use unescaped Android package identifier for the proguard rules.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.