Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Prevent Invalid Pointer when loading extensions on Windows, rename with_extension_path -> with_extensions_path #1421

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

SpikeHD
Copy link
Contributor

@SpikeHD SpikeHD commented Nov 19, 2024

Fixes loading extensions on Windows by providing a handler function to AddBrowserExtension, rather than None, which causes a Invalid Pointer error.

Also renames the function with_extension_path -> with_extensions_path, as the name might be misleading/confusing.

@SpikeHD SpikeHD requested a review from a team as a code owner November 19, 2024 23:18
src/lib.rs Outdated
@@ -1302,7 +1302,7 @@ pub trait WebViewBuilderExtWindows {
/// Set the path from which to load extensions from. Extensions stored in this path should be unpacked.
///
/// Does nothing if browser extensions are disabled. See [`with_browser_extensions_enabled`](Self::with_browser_extensions_enabled)
fn with_extension_path(self, path: impl Into<PathBuf>) -> Self;
fn with_extensions_path(self, path: impl Into<PathBuf>) -> Self;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's revert this naming change so I can release the fix as a patch version, we can rename in another PR afterwards.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha 👍

@amrbashir amrbashir merged commit 7bb4f49 into tauri-apps:dev Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants