Skip to content

Latest commit

 

History

History
771 lines (620 loc) · 80.5 KB

CHANGELOG.md

File metadata and controls

771 lines (620 loc) · 80.5 KB

Changelog

[0.31.1]

  • e30034d(#1009) Fixes Android freezing when handling request due to endless iteration when reading request headers.

[0.31.0]

  • e47562f(#993) Update the unmaintained kuchiki crate to the maintained kuchikiki crate.
  • 7a353c7(#980) Add WebViewBuilder::with_on_page_load_handler for providing a callback for handling various page loading events.
  • b0a08b1(#997) Update tao to version 0.22 which has removed the global-shortcut, menus and tray features, see tao@v0.22 release.

[0.30.0]

  • 17e04e2(#985) Make WebViewBuilder::with_navigation_handler apply to Android loadUrl calls.
  • 17e04e2(#985) Add support for WebViewBuilder::with_navigation_handler on Android.
  • 87b331a(#978) On Windows, avoid resizing the webview when the window gets minimized to avoid unnecessary resize event on JS side.
  • 17e04e2(#985) Update tao to 0.21.

[0.29.0]

  • c09dd7b(#968) Remove ActionBar handling from wry. If you want to hide the action bar, hide it using the themes.xml file in your android project or inherit WryActivity class and use getSupportActionBar()?.hide() in the onCreate method.

  • 2b56bfa(#966) Add support for WebViewBuilder::with_html and WebViewAttributes.html on Android.

  • d2c1819(#969) On Linux, replace linux-header flag with linux-body flag. Request headers are enabled by default. Add request body on custom protocol but it's behind the flag.

  • f7dded4(#955) The bug was reported in tauri repo: tauri-apps/tauri#5986

    With input method preedit disabled,fcitx can anchor at edit cursor position. the pre-edit text will not disappear,instead it shows in the fcitx selection window below the input area.

  • 2b56bfa(#966) Set base url and origin to null for WebViewBuilder::with_html and WebViewAttributes.html for consistency on all platforms.

[0.28.3]

  • On iOS, fix panic at runtime due to setting webview ivar.
    • c9002c1 fix(macos): remove webview ivar in WryWebView (#943) on 2023-04-26

[0.28.2]

  • Adjust cargo:rerun-if-changed instruction for Android files.
    • cc934fe refactor(build): adjust rerun-if-changed instruction for Android files (#940) on 2023-04-24

[0.28.1]

  • Fix unresolved reference in kotlin files when building for android.
    • ed36c0b fix(android): fix unresolved reference in kotlin files (#932) on 2023-04-19
  • Support modifying user agent string on Android.
    • 4a320b0 feat(android): add support modifying user agent string (#933) on 2023-04-20
  • On Linux and macOS, add synthesized event for mouse backward and forward buttons.
    • 6ef820b feat: synthesize forward/backward mouse button on Linux and macOS (#900) on 2023-04-18

[0.28.0]

  • Add Webview::clear_browsing_data method.
    • 5f0c9e4 feat: add Webview::clear_browsing_data (#915) on 2023-04-18
  • On Android, generate a proguard-wry.pro file that could be used to keep the necessary symbols for wry when using minification.
    • ced4c0b feat: generate proguard rule file for android (#927) on 2023-04-17
  • Update tao to 0.19
    • d560981 refactor: rename TauriActivity to WryActivity (#926) on 2023-04-17

[0.27.3]

  • Adds a way to launch a WebView as incognito through a new API at WebViewBuilder named as with_incognito.
    • 8698836 feat: Add a way to launch WebViews as incognito WebView::as_incognito, closes #908 (#916) on 2023-04-06
  • On macOS and iOS, remove webcontext implementation since we don't actually use it. This also fix segfault if users drop webcontext early.
    • 3cc45cb Remove webcontext implementation on wkwebview (#922) on 2023-04-07
  • Use the new WKWebView inspectable property if available (iOS 16.4, macOS 13.3).
    • c3f7304 feat(macos): use WKWebView's inspectable property (#923) on 2023-04-08

[0.27.2]

  • On Android, Add support for native back button navigation.
    • fc232a3 feat(android): add support for native back navigation (#918) on 2023-04-03
  • Fix WebView::url getter on Android.
    • 427cf92 Unify custom porotocol across Android/iOS (#546) on 2022-04-11
    • b89398a Publish New Versions (#547) on 2022-04-26
    • c22744a fix(android): use correct method signature (#917) on 2023-03-31
  • Add Webview attribute to enable/disable autoplay. Enabled by default.
    • 6a523cc feat: Add setting to enable autoplay (#913) on 2023-04-04
  • Fix the WebViewBuilder::with_url when the projet use mimalloc
    • c22744a fix(android): use correct method signature (#917) on 2023-03-31
  • Revert 51b49c54 which hid the webview when minimized on Windows.
    • f76568a fix(windows): Ignore resize event when minimizing frameless windows (#909) on 2023-03-24

[0.27.1]

  • On Windows, Linux and macOS, add method evaluate_script_with_callback to execute javascipt with a callback. Evaluated result will be serialized into JSON string and pass to the callback.
    • 2647731 feat: support callback function in eval (#778) on 2023-03-23
  • On iOS, set webview scroll bounce default to NO.
    • 4d61cf1 fix(ios): set scroll bounce default to NO (#907) on 2023-03-20
  • Update the value returned on a None value of ClassDecl::new("WryDownloadDelegate", class!(NSObject)) from UIViewController to WryDownloadDelegate.
    • 7795356 fix: WryDownloadDelegate call after first time on 2023-02-20
  • On Linux, disable system appearance for scrollbars.
    • 530a8b7 fix(linux): disable system appearance for scrollbars (#897) on 2023-03-08
  • On Windows and Linux, implement WebviewBuilder::with_back_forward_navigation_gestures and WebviewAttributes::back_forward_navigation_gestures to control swipe navigation. Disabled by default.
    • 15b4ddf feat(win&linux): implement the option to control gesture navigation (#896) on 2023-03-07

[0.27.0]

  • Add function to dispatch closure with the Android context.
    • a9e186c feat(android): add function to dispatch closure to the Android context (#864) on 2023-02-06
  • On macOS, fix crash when getting dragging position.
    • a8f7cef Fix crash when getting drag position (#867) on 2023-02-04
  • On Android, wry can again load assets from the apk's asset folder via a custom protocol. This is set by WebViewBuilder's method with_asset_loader, which is exclusive to Android (by virtue of existing within WebViewBuilderExtAndroid).
    • 077eb3a fix(android): restore asset loading functionality to android (fix: #846) (#854) on 2023-02-07
  • Update webview2-com to 0.22 and windows-rs to 0.44 which bumps the MSRV of this crate on Windows to 1.64.
    • 496bfb5 chore(deps): update to windows-rs 0.44 and webview2-com 0.22 (#871) on 2023-02-06

[0.26.0]

  • Added WebViewBuilderExtAndroid trait and with on_webview_created hook.
    • 08c0156 feat(android): add on_webview_created hook, expose find_class (#855) on 2023-01-30
  • Enable dox feature when building docs.
    • c6e53c6 Enable dox feature when building docs (#861) on 2023-01-31
  • Expose wry::webview::prelude::find_class function to find an Android class in the app project scope.
    • 08c0156 feat(android): add on_webview_created hook, expose find_class (#855) on 2023-01-30
  • Added WebviewExtIOS trait to access the WKWebView and userContentController references.
    • f546c44 feat(ios): add WebviewExtIOS (#859) on 2023-01-30

[0.25.0]

  • Breaking Change: Bump webkit2gtk to 0.19. This will use webkit2gtk-4.1 as dependency from now on. Also Bump gtk version: 0.15 -> 0.16.
    • c5f3b36 Bump gtk version 0.15 -> 0.16 (#851) on 2023-01-26
  • Breaking Add position of the drop to FileDropEvent struct.
    • bce39e2 feat: add file drop position (#847) on 2023-01-17
  • On Android, fix the injection of intialization_scripts for devServers where the Content-Type header includes more information than just "text/plain".
    • 87216c7 fix: make the Content-Type check spec compliant (#844) on 2023-01-14

[0.24.1]

  • Update tao to 0.16.0
    • a27a66b chore: update tao to 0.16.0 on 2023-01-11

[0.24.0]

  • Changed env vars used when building for Android; changed WRY_ANDROID_REVERSED_DOMAIN to WRY_ANDROID_PACKAGE and WRY_ANDROID_APP_NAME_SNAKE_CASE to WRY_ANDROID_LIBRARY.
    • dfe6a5e refactor: improve android env vars naming (#829) on 2022-12-30
  • Fixes Android initialization scripts order.
    • 7f819c0 fix(android): initialization scripts order (#808) on 2022-12-12
  • Remove redundant .clone() calls and avoid unnecessary heap allocations.
    • 45f2b21 perf: remove redundant .clone() calls and avoid unnecessary heap allocations (#812) on 2022-12-14
  • Change return type of custom protocol handlers from Result<Response<Vec<u8>>> to Result<Response<Cow<'static, [u8]>>>. This allows the handlers to return static resources without heap allocations. This is effective when you embed some large files like bundled JavaScript source as &'static [u8] using include_bytes!.
    • ddd3461 perf: Change return type of custom protocol handler from Vec<u8> to Cow<'static, [u8]>, closes #796 (#797) on 2022-12-12
  • Ensures that the script passed to .with_initialization_script("here") is not empty.
  • Add APIs to process webview document title change.
    • 14a0ee3 feat: add document title changed handler, closes #804 (#825) on 2022-12-30
  • Evaluate scripts after the page load starts on Linux and macOS.
    • ca7c8e4 fix(unix): race condition on script eval (#815) on 2022-12-14
  • Improve panic error messages on the build script.
    • 5b9f21d feat: improve build script panic messages (#807) on 2022-12-12
  • Add WebViewBuilder::with_url_and_headers and WebView::load_url_with_headers to navigate to urls with headers.
    • 8ae93b9 feat: add headers when loading URLs, closes #816 (#826) on 2023-01-01
    • e246bd1 chore: update headers change file on 2023-01-01
  • Change class declare name from UIViewController to WryNavigationDelegate to avoid class name conflict on iOS.
    • fca42a0 fix(ios): navigation delegate class name conflict (#824) on 2022-12-27
  • Rerun build script if the WRY_ANDROID_KOTLIN_FILES_OUT_DIR directory changes.
    • 1cf92e2 feat(build): rerun if kotlin out directory changes (#839) on 2023-01-10
  • On Windows, Add WebviewBuilderExtWindows::with_theme and WebviewExtWindows::set_theme to change webview2 theme.

[0.23.4]

  • Fixes Android initialization scripts order.
    • 800cc48 fix(android): initialization scripts order (#808) on 2022-12-12
  • Improve panic error messages on the build script.
    • 4ec7386 feat: improve build script panic messages (#807) on 2022-12-12

[0.23.3]

  • Fix the beep sound on macOS

[0.23.2]

  • On macOS, remove all custom keydown implementations. This will bring back keydown regression but should allow all accelerator working.
    • fee4bf2 Remove all keydown implementations (#798) on 2022-12-10
  • Suppress unused_variables warning reported only in release build.
    • 4e23c0f fix(macos): suppress unused_variables warning reported only in release build (#790) on 2022-12-07
  • Add WebViewBuilderExtWindows::with_browser_accelerator_keys method to allow disabling browser-specific accelerator keys enabled in WebView2 by default. When false is passed, it disables all accelerator keys that access features specific to a web browser. See the official WebView2 document for more details.
    • 6e622ff feat(windows): Allow disabling browser-specific accelerator keys (#792) on 2022-12-07

[0.23.1]

  • Fixes usage of the linux-headers feature.
    • 64a72ff fix(wry): correctly use the linux-headers feature on 2022-12-05

[0.23.0]

  • Properly parse the content type header for the android.webkit.WebResourceResponse mime type.
    • 1db5ea6 fix(android): properly parse content-type for response mime type (#772) on 2022-11-27
  • Change typo in WebViewBuilderExtWindows::with_additionl_browser_args. to WebViewBuilderExtWindows::with_additional_browser_args.
    • db1c290 fix(windows): Fix typo in method name of WebViewBuilderExtWindows (#781) on 2022-12-02
  • Add Webiew::load_url.
    • a2b9531 feat: add Webiew::navigate_to_url, closes #776 (#777) on 2022-11-30
  • Change the type of WebViewBuilderExtWindows::with_additional_browser_args argument from AsRef<str> to Into<String> to reduce extra allocation.
    • b0ff06a perf: reduce extra allocation at WebViewBuilderExtWindows::with_additional_browser_args argument (#783) on 2022-12-03
  • Validate custom protocol response status code on Android.
    • 7f585c7 feat(android): validate custom protocol response status code (#779) on 2022-11-30
  • [https://github.com/tauri-apps/wry/commit/04422bc1b579d9388ce03c2388b8f415dbc0747b] On macOS, revert content view to native NSView ([#782])(#782)

[0.22.6]

  • Fixes usage of the linux-headers feature.
    • 14c5ae7 fix(wry): correctly use the linux-headers feature on 2022-12-05

[0.22.5]

  • On macOS, fix arrow keys misprint text on textarea.
    • 3005e54 On macOS, fix arrow keys misprint texts (#769) on 2022-11-25

[0.22.4]

  • On Linux, add linux-headers feature flag to fix version regression. The minimum webkit2gtk version remains v2.22.
    • cf447f6 On Linux, add header feature flag to fix version regression (#766) on 2022-11-24

[0.22.3]

  • On macOS, fix keyinput missing by calling superclass methods.
    • e40e55a On macOS, fix keyinput missing by calling super class methods (#764) on 2022-11-21

[0.22.2]

  • On macOS, add an API to enable or disable backward and forward navigation gestures.
    • 487dff0 Add the ability to navigate with swipe gesture (#757) on 2022-11-16
    • 1a0ec19 Update gesture change file to patch (#763) on 2022-11-21
  • On macOS, pass key event to menu if we have one on key press.
    • 2e5e138 On macOS, pass key event to menu on key press (#760) on 2022-11-21

[0.22.1]

  • Fix WebViewBuilder::with_accept_first_mouse taking behavior of first initalized webview.
    • 0647c0e fix(macos): fix acceptFirstMouse for subsequent webviews, closes #751 (#752) on 2022-11-13
  • Fix download implementation on macOS older than 11.3.
    • e69ddc6 fix(macos): download breaking app on macOS older than 11.3, closes #755 (#756) on 2022-11-15
  • On macOS, remove webview from window's NSView before dropping.
    • 3d3ea80 On macOS, remove webview from window's NSView before dropping (#754) on 2022-11-14

[0.22.0]

  • Added WebViewAttributes::with_accept_first_mouse method for macOS.
    • 2c23440 feat(macos): add accept_first_mouse option, closes #714 (#715) on 2022-10-04
  • Breaking change Custom protocol now takes Request and returns Response types from http crate.
    • 1510e45 refactor: use http crate primitives instead of a custom impl (#706) on 2022-09-29
  • Enabled devtools in debug mode by default.
    • fea0638 feat: enable devtools in debug mode by default (#741) on 2022-10-27
  • On Desktop, add download_started_handler and download_completed_handler. See blob_download and download_event example for their usages.
    • 3691c4f feat: Add download started and download completed callbacks (#530) on 2022-10-19
  • Fix double permission dialog on macOS 12+ and iOS 15+.
    • 8aa7d61 Fix: Remove extra soft prompt asking for media permission on every app launch in macOS (#694) on 2022-09-29
  • Focus webview when window starts moving or resizing on Windows to automatically close <select> dropdowns. Also notify webview2 whenever the window position/size changes which fixes the <select> dropdown position
    • a1001dd fix(windows): focus webview on WM_ENTERSIZEMOVE and call NotifyParentChanged on WM_WINDOWPOSCHANGED. (#695) on 2022-09-16
  • On Windows, hide the webview when the window is minimized to reduce memory and cpu usage.
    • 51b49c5 feat(webview2): hide the webview when the window is minimized (#702) on 2022-09-27
  • Internally return with error from custom protocol if an invalid uri was requseted such as wry:// which doesn't contain a host.
    • 818ce99 fix: don't panic on invalid uri (#712) on 2022-09-30
  • Support cross compiling ios on a non macos host.
  • On Linux, Improve custom protocol with http headers / method added to request, and status code / http headers added to response. This feature is 2.36 only, version below it will fallback to previous implementation.
    • 2944d91 feat(linux): add headers to URL scheme request (#721) on 2022-10-17
  • On macOS, add WKWebview as subview of existing NSView directly.
    • 008eca8 On macOS, add WKWebview as subview of existing NSView directly (#745) on 2022-11-07
  • Keypress on non-input element no longer triggers unsupported key feedback sound.
    • 51c7f12 fix(macos): do not trigger unsupported key feedback sound on keypress (#742) on 2022-10-30
  • Remove the IPC script message handler when the WebView is dropped on macOS.
    • 818ce99 fix: don't panic on invalid uri (#712) on 2022-09-30
  • Breaking change Removed http error variants from wry::Error and replaced with generic HttpError variant that can be used to convert http crate errors.
    • 1510e45 refactor: use http crate primitives instead of a custom impl (#706) on 2022-09-29
  • Disabled Microsoft SmartScreen by default on Windows.
    • a617c5b feat(webview2): disable smartscreen & allow disabling internal webview2 args, closes #704 (#705) on 2022-09-28
  • Add WebView::url to get the current url.
    • 38e49bd feat: add WebView::url() to access the current url (#732) on 2022-10-25
  • Breaking change Removed http module and replaced with re-export of http crate.
    • 1510e45 refactor: use http crate primitives instead of a custom impl (#706) on 2022-09-29
  • Add WebviewBuilderExtWindows::with_additionl_browser_args method to pass additional browser args to Webview2 On Windows. By default wry passes --disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection so if you use this method, you also need to disable these components by yourself if you want.
    • 683f866 feat(webview2): add method to pass additional args, closes #415 (#711) on 2022-09-29
  • On Windows, fix canonical reason for custom protocol response.
    • 9d5595c fix(webview2): set response reason correctly, closes #733 (#734) on 2022-10-24
  • On macOS, make the webview first responder.
    • e64ad21 fix(wkwebview): make webview first responder (#740) on 2022-10-28

[0.21.1]

  • Fix transparency on Windows
    • e31cd0a fix: fix transparency on Windows, closes #692 on 2022-09-16

[0.21.0]

  • Implement <input type="file"> on Android.
    • bf39d9d feat(android): implement dialogs and permissions (#685) on 2022-09-05
  • Add WebviewExtAndroid::handle which can be used to execute some code using JNI context.
    • 2bfc6c3 feat(android): JNI execution handle (#689) on 2022-09-07
  • Enable JS alert, confirm, prompt on Android.
    • bf39d9d feat(android): implement dialogs and permissions (#685) on 2022-09-05
  • Prompt for permissions on Android when needed.
    • bf39d9d feat(android): implement dialogs and permissions (#685) on 2022-09-05
  • Implement webview_version on Android.
    • 9183de4 feat(android): implement webview_version (#687) on 2022-09-05
  • Enable storage, geolocation, media playback, window.open.
    • 9dfffcf feat(android): enable storage, geolocation, media playback, window.open (#684) on 2022-09-04
  • Improve Android initialization script implementation.
    • 1b26d60 feat(android): improve initialization scripts implementation (#670) on 2022-08-24
  • WRY will now generate the needed kotlin files at build time but you need to set WRY_ANDROID_REVERSED_DOMAIN, WRY_ANDROID_APP_NAME_SNAKE_CASE and WRY_ANDROID_KOTLIN_FILES_OUT_DIR env vars.
    • b478903 feat(android): generate kotlin files at build time (#671) on 2022-08-24
    • 103f255 chore: change bump to patch on 2022-08-25
  • Breaking change Removed WebView::focus.
    • f338df7 feat(windows): auto-focus the webview (#676) on 2022-08-27
  • Updated tao to 0.14
  • Allow setting the webview background color.
    • eb1b723 feat: allow setting webview bg color, closes #197 (#682) on 2022-09-05
  • Added the RustWebView class on Android.
    • b1e8560 feat(android): define WebView class in kotlin (#672) on 2022-08-24
  • Update the windows crate to the latest 0.39.0 release and webview2-com to 0.19.1 to match.
    • c7d7e1f Update windows to 0.39.0 and webview2-com to 0.19.1 to match (#679) on 2022-08-31
  • On Windows, automatically focus the webview when the window gains focus to match other platforms.
    • f338df7 feat(windows): auto-focus the webview (#676) on 2022-08-27

[0.20.2]

  • Implement custom protocol on Android.
    • dc68289 feat(android): implement custom protocol (#656) on 2022-08-13
  • Implement WebView::eval on Android.
    • 690fd26 feat(android): implement eval (#658) on 2022-08-13
  • On iOS, add webview as subview instead of replacing original view.
    • 74391e0 fix(ios): addSubview instead of setContentView (#655) on 2022-08-13
  • Move WebView logic from tao to wry.
    • aba1ae5 refactor(android): move WebView logic from tao to wry (#659) on 2022-08-14

[0.20.1]

  • Add android support
  • Enable private picture-in-picture on macos.
    • 3cfd8c9 fix: add feature flag to enable private picture-in-picture flag on macos (#645) on 2022-08-05
  • On macOS, fix devtool warning
    • 2eba8c9 fix: devtool warning by adding parent view

[0.20.0]

  • Add WebViewBuilder::with_clipboard.
    • c798700 fix: Add WebViewBuilder::with_clipboard(#631) on 2022-07-05
  • Fix typos in several files.
  • Set webview2 language to match the OS language. This makes i18n functions like new Date().toLocaleStrin() behave correctly.
    • e9f04d7 fix: set system language to webview on windows, closes #442 (#640) on 2022-07-26
  • Update tao to 0.13.0.

[0.19.0]

    • Automatically resize the webview on Windows to align with other platforms.
  • Breaking change: Removed WebView::resize
  • d7c9097 feat: auto resize webview on Windows (#628) on 2022-06-27
  • Implement new window requested handler
    • fa5456c feat: Implement new window requested event, closes #527 (#526) on 2022-06-19
  • Re-export url::Url.
  • Update tao to 0.12

[0.18.3]

  • Update tao to 0.11

[0.18.2]

  • Fix NSString can not be released.
    • 95ca52f fix: NSString isn't released (#604) on 2022-06-07

[0.18.1]

  • Remove unused tray from doc features.
    • 5eecb00 Remove unused tray from doc features (#602) on 2022-05-31

[0.18.0]

  • Remove trivial tray features.
    • a3fea48 Remove trivial tray features (#599) on 2022-05-31

[0.17.0]

  • Add option to enable/disable zoom shortcuts for WebView2, disabled by default.
    • 494a110 WebView2: Enable/disable platform default zooming shortcuts, closes #569 (#574) on 2022-05-15
  • Prevent memory leak on macOS.
    • 16d1924 fix: prevent memory leak on macOS, closes #536 (#587) on 2022-05-20
  • Update the windows crate to the latest 0.37.0 release and webview2-com to 0.16.0 to match.

The #[implement] macro in windows-implement and the implement feature in windows depend on some const generic features which stabilized in rustc 1.61. The MSRV on Windows targets is effectively 1.61, but other targets do not require these features.

The webview2-com crate specifies rust-version = "1.61", so wry will inherit that MSRV and developers on Windows should get a clear error message telling them to update their toolchain when building wry or anything that depends on wry. Developers targeting other platforms should be able to continue using whatever toolchain they were using before.

  • 9d9d9d8 Update windows-rs to 0.37.0 and webview2-com to 0.16.0 to match (#592) on 2022-05-23

[0.16.2]

  • Fixed build on macos.

[0.16.1]

  • Fixes a crash on macOS below Big Sur due to titlebarSeparatorStyle (11+ API) usage.
    • eb2dddb fix(macos): only use APIs when supported on 2022-05-08
  • Only run WebView::print on macOS on v11+. This prevents a crash on older versions.
    • eb2dddb fix(macos): only use APIs when supported on 2022-05-08

[0.16.0]

  • Fixes a typo in the WebviewExtMacOS conditional compilation.
    • 10d7f03 fix(macos): typo in the WebviewExtMacOS conditional compilation (#568) on 2022-05-02
  • Fixes a crash when the custom protocol response is empty on macOS.
    • 67809f4 fix(macos): crash when custom protocol response is empty (#567) on 2022-05-01
  • Add WebView::zoom method.
    • 34b6cbc feat: add feature to zoom webview contents, closes #388 (#564) on 2022-05-02
  • Set the titlebar separator style in macOS to none.
    • 9776fc4 fix(macos): set titlebar style to none (#566) on 2022-05-01
  • Disable webview2 mini menu
    • ed0b223 fix: disable WebView2 mini menu ("OOUI"), closes #535 (#559) on 2022-04-29

[0.15.1]

  • Update how android handles url
    • 427cf92 Unify custom protocol across Android/iOS (#546) on 2022-04-11
  • Add devtools support on Android/iOS.
    • 1c5d77a Add devtools support on Android/iOS (#548) on 2022-04-11
  • Fix to reset process on MacOS when webview is closed, closes #536.
    • fd1dcc3 fix: reset background process when webview is closed, closes #536 (#556) on 2022-04-24

[0.15.0]

  • On Windows and Linux, disable resizing maximized borderless windows.
    • 313eaea fix(win,linux): disable resizing maximized borderless windows (#533) on 2022-03-30
  • Fixes a memory leak on the custom protocol response body on macOS.
    • 36b985e fix(macos): custom protocol memory leak (#539) on 2022-04-03
  • Update tao to v0.8.0.
    • 1c540b0 feat: update tao to 0.8, refactor tray features (#541) on 2022-04-07
  • The tray and ayatana-tray Cargo features are not enabled by default.
    • 1c540b0 feat: update tao to 0.8, refactor tray features (#541) on 2022-04-07
  • Breaking change: Renamed the ayatana Cargo feature to ayatana-tray and added the gtk-tray feature. The default tray on Linux is now libayatana-appindicator.
    • 1c540b0 feat: update tao to 0.8, refactor tray features (#541) on 2022-04-07

[0.14.0]

  • Added close_devtools function to Webview.
    • bf3b710 feat: add function to close the devtool and check if it is opened (#529) on 2022-03-28
  • Hide the devtool functions behind the any(debug_assertions, feature = "devtools") flag.
    • bf3b710 feat: add function to close the devtool and check if it is opened (#529) on 2022-03-28
  • Breaking change: Renamed the devtool function to open_devtools.
    • bf3b710 feat: add function to close the devtool and check if it is opened (#529) on 2022-03-28
  • Enable tab navigation on macOS.
    • 28ebedc fix(macOS): enable tab navigation on all elements, fixes #406 (#512) on 2022-03-03
  • Added is_devtools_open function to Webview.
    • bf3b710 feat: add function to close the devtool and check if it is opened (#529) on 2022-03-28
    • Expose methods to access the underlying native handles of the webview.
  • Breaking change: WebviewExtWindows::controller now returns the controller directly and not wrapped in an Option
  • e54afec feat: expose webview native handles, closes #495 (#513) on 2022-03-03
  • Add navigation handler to decide if an url is allowed to navigate.
    • aa8af02 feat: Implement navigation event and cancellation, closes #456 (#519) on 2022-03-18
  • Breaking change: Renamed the devtool feature to devtools.
    • bf3b710 feat: add function to close the devtool and check if it is opened (#529) on 2022-03-28
  • Breaking change: Renamed the with_dev_tool function to with_devtools.
    • bf3b710 feat: add function to close the devtool and check if it is opened (#529) on 2022-03-28

[0.13.3]

  • Fix rustdoc generation of Windows and Mac on docs.rs.
    • 327a019 Fix rustdoc generation of Windows and Mac on docs.rs, fix #503 (#507) on 2022-02-27

[0.13.2]

  • Fix cross compilation from macOS.
    • c97499f fix: cross compilation from macOS (#498) on 2022-02-15
  • Update webview2-com to 0.13.0, which bumps the WebView2 SDK to 1.0.1108.44 and improves cross-compilation support.

Targeting *-pc-windows-gnu works now, but it has some limitations.

  • 24a443c Add /.changes/webview2-com-0.13.0.md on 2022-02-14

[0.13.1]

  • Add devtool feature flag and configuration option.

  • Update the webview2-com crate 0.11.0:

  • Fix silent build script errors related to unconfigured nuget in wravery/webview2-rs#4

  • Update the WebView2 SDK (not the runtime, just the API bindings) to the latest 1.0.1072.54 version

  • 7d4eeb7 Update webview2-com to 0.11.0 (#488) on 2022-02-06

[0.13.0]

  • Update gtk to 0.15
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Add clipboard field in WebViewAttributes.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Ignore transparency on Windows 7 to prevent application crash.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Remove clipboard property for consistency across platforms.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Enable cookie persistence on Linux if the data_directory is provided.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Enable objc's exception features so they can be treated as panic message.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Add inner size method for webview. This can reflect correct size of webview on macOS.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Add "transparent" and "fullscreen" feature flags on macOS to toggle private API.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Implement WebContextImpl on mac to extend several callback lifetimes.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • The only thing that private mod shared does is re-export http mod to public, we can just pub mod http.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
    • Fix hovering over an edge of undecorated window on Linux won't change cursor.
  • Undecorated window can be resized using touch on Linux.
  • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Update webkit2gtk to 0.15
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Add with_user_agent(&str) to WebViewBuilder.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Replace all of the winapi crate references with the windows crate, and replace webview2 and webview2-sys with webview2-com and webview2-com-sys built with the windows crate. The replacement bindings are in the webview2-com-sys crate, with pub use in the webview2-com crate. They can be shared with TAO.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Fix null pointer crash on get_content of web resource request. This is a temporary fix. We will switch it back once upstream is updated.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Update the windows crate to 0.25.0, which comes with pre-built libraries. WRY and Tao can both reference the same types directly from the windows crate instead of sharing bindings in webview2-com-sys.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Update the windows crate to 0.29.0 and webview2-com to 0.9.0.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05
  • Update the windows crate to 0.30.0 and webview2-com to 0.10.0.
    • 219d20c Merge next back to dev branch (#477) on 2022-02-05

[0.12.2]

  • Fixed a Linux multi-window issue where the internal url loader didn't unlock when flushed while empty

    • 5377821 Fix async multiwindow deadlock (#382) on 2021-08-16
  • The custom protocol now returns a Request and expects a Response.

  • This allows us to get the complete request from the Webview. (Method, GET, POST, PUT etc..) Read the complete header.

  • And allow us to be more flexible in the future without bringing breaking changes.

  • d202573 refactor: Custom protocol request/response (#387) on 2021-08-22

  • On Linux, automation callbacks now use the first created webview as the return value

    • f9d7049 Use the first created webview for webkit2gtk automation callbacks (#383) on 2021-08-16

[0.12.1]

  • Add html attributes as another method to load the page. This can provide some other origin header and make CORS request possible.
    • 02ad372 feat: html string attributes (#368) on 2021-08-12
  • Shorter protocol name on Windows. This can make origin be shorter too.
    • 2d9f5c9 Shorter protocol name on Windows (#367) on 2021-08-12

[0.12.0]

  • Custom Protocol handlers no longer take a &Window parameter.
    • 0e2574c Remove &Window parameter from Custom Protocol handlers (#361) on 2021-07-28
  • Update gtk to version 0.14. This also remove requirement of clang.
    • 251a80b Update gtk to version 0.14 (#364) on 2021-08-06
  • Update tao to v0.5. Please see release notes on tao for more information.
  • Add flags to support all other possible unix systems.
    • c0d0a78 Add flags to support all other unix systems. (#352) on 2021-07-21
  • Support having multiple webkit2gtk WebViews on a single WebContext.
    • 3f03d6b Support multiple webviews on a single WebContext (webkit2gtk) (#359) on 2021-07-28
  • On Windows, Fix cursor flickering when Tao window is without decorations
    • e28bcce fix(windows): fix mouse style flicker when decorations: false (#350) on 2021-07-20
  • Remove winrt support since it's outdated for a long time. We will reimplement it again once windws-rs is stable!
    • c37973e chore(windows): remove winrt support (#356) on 2021-07-24

[0.11.0]

  • Allow resizing of borderless window on Windows
    • bd10b8e feat(Windows): resize borderless window (#333) on 2021-07-15
  • Mark enums as #[non_exhaustive] to prevent breaking changes on enum update.
    • f07ae14 refactor: add #[non_exhaustive] attributes to enums (#304) on 2021-07-08
  • Bump tao to 0.4. Please refer to tao changelog for more details.
    • 6eb10d4 bump tao to 0.4 and fix examples (#329) on 2021-07-14
    • Add focus method to Webview
  • Add WebviewExtWindows trait with controller method
  • 621ed1f feat: add .focus() to Webview (#325) on 2021-07-05
  • 96b7b94 Add controller method instead (#326) on 2021-07-07
  • macOS: Remove handler in the webview as it should be handled with the menu.
    • 5a9df15 fix(macos): Remove keypress handler in the webview for copy/paste/cut (#328) on 2021-07-07
  • Fixes multiple custom protocols registration on Windows.
    • 923d346 fix(windows): multiple custom protocols, closes #323 (#324) on 2021-07-02

[0.10.3]

  • #315 fixed Webview2 runtime performance issues.
    • d3c9b16 Fix Webview2 runtime performance issues (#316) on 2021-06-29

[0.10.2]

  • Fix file explorer getting blocked by automation.
    • 0c5cdd8 Fix file explorer getting blocked by automation (#310) on 2021-06-23

[0.10.1]

  • WebContext::set_allows_automation is now available to specify if the context should allow automation (e.g. WebDriver). It is only enforced on Linux, but may expand platforms in the future.
    • 4ad0bf1 move set_allows_automation to WebContext method (#302) on 2021-06-21

[0.10.0]

  • Add WebViewAttributes
  • Add with_web_context method that can work well with builder pattern.
    • 48f53a3 Add with_web_context method (#292) on 2021-06-13
  • Change the custom protocol handler on macOS so it returns a response on error and a status code on success.
    • 6b869b1 fix(macos): custom protocol response with status code + error response (#279) on 2021-05-20
  • Update signature of custom protocol closure. It should return a mime type string now.
    • cc9fc4b Add mimetype to return type of custom protocol (#296) on 2021-06-13
  • Fix webview creation when using new_any_thread of event loop.
    • 4d62cf5 Fix webview creation when using new_any_thread on Windows (#298) on 2021-06-18
  • Remove Dispatcher, dispatch_script and dispatcher in the webview module and add a js parameter to evaluate_script.
    • de4a5fa refactor: remove Dispatcher and related methods, closes #290 (#291) on 2021-06-09
  • Removes the image dependency.
    • 1d5cc59 chore(deps): remove image dependency (#274) on 2021-05-19
  • Bump tao to 0.3 and add more examples.

For more details, please refer to tao changelog.

  • cd4697e bump tao to 0.3 with examples (#294) on 2021-06-21
  • Add wry::webview::WebContext. It's now a required argument on WebViewBuilder::build.

[0.9.4]

  • Update tao to v0.2.6

[0.9.3]

  • Expose webview_version function in the webview module.
    • 4df310e feat: get webview version (#259) on 2021-05-12
  • Add print method on Linux and Windows.
    • 54c5ec7 Implement print method on Linux and Windows (#264) on 2021-05-17
  • Disable smooth scrolling on Linux to match behaviour on browsers.
    • 3e786bb Disable smooth scrolling on Linux (#268) on 2021-05-17

[0.9.2]

  • Add tray feature flag from tao.
    • 093c25e feat: expose tray feature flag (#256) on 2021-05-10

[0.9.1]

  • Correctly set visibility when building Window on gtk-backend
    • 4395ad1 fix: only call show_all when needed (#227) on 2021-05-02
  • Fix macOS cursors and other minors UI glitch.
    • d550b2f fix(macOS): Window layers (#220) on 2021-04-28
  • Expose print() function to the webview. Work only on macOS for now.
  • Fix macOS windows order for tray (statusbar) applications.
    • 229275f fix: macOS windows order (#242) on 2021-05-07
  • Add request_redraw method of Window on Linux
    • 03abfa0 Add request_redraw method on Linux (#222) on 2021-04-30
  • Add tao as window dependency.
    • 483bad0 feat: tao as window dependency (#230) on 2021-05-03
  • Close the window when the instance is dropped on Linux and Windows.
    • 3f2cc28 fix: close window when the instance is dropped (#228) on 2021-05-02
  • Remove winit dependency on Linux
    • fa15076 feat: winit interface for gtk (#163) on 2021-04-19
    • 39d6f59 publish new versions (#166) on 2021-04-29
    • 4ef8330 Remove winit dependency on Linux (#226) on 2021-04-30

[0.9.0]

  • Refactor signatures of most closure types
    • b8823fe refactor: signature of closure types (#167) on 2021-04-19
  • Drop handler closures properly on macOS.
  • Fix history.pushState in webview2.
    • dd0fa46 Use http instead of file for windows custom protocol workaround (#173) on 2021-04-20
  • The data_directory field now affects the IndexedDB and LocalStorage directories on Linux.
    • 1a6c821 feat(linux): implement custom user data path (#188) on 2021-04-22
  • Fix runtime panic on macOS, when no file handler are defined.
    • 22a4991 bug(macOS): Runtime panic when no file_drop_handler (#177) on 2021-04-20
  • Add position field on WindowAttribute
    • 2b3be7a Add position field on WindowAttribute (#219) on 2021-04-28
  • Fix panic on multiple custom protocols registration.
    • 01647a2 Fix custom protocol registry on mac (#205) on 2021-04-26
  • Fix SVG render with the custom protocol.
    • 890cfe5 fix(custom-protocol): SVG mime type - close #168 (#169) on 2021-04-19
  • Initial custom WindowExtWindows trait.
    • 1ef1f58 feat: custom WindowExtWindow trait (#191) on 2021-04-23
  • Fix transparency on Windows
    • e278556 fix: transparency on Windows (#217) on 2021-04-28
  • Add platform module and WindowExtUnix trait on Linux
    • 004e298 feat: WindowExtUnix trait (#192) on 2021-04-23
  • Make sure custom protocol on Windows is over HTTPS.
    • c36db35 fix(custom-protocol): Make sure custom protocol on Windows is over HTTPS. (#179) on 2021-04-20
  • Initial winit interface for gtk backend
    • fa15076 feat: winit interface for gtk (#163) on 2021-04-19

[0.8.0]

  • Wry now accepts multiple custom protocol registrations.
  • Apply license header for SPDX compliance.
  • Remove bindings crate and use windows-webview2 as dependency instead.
    • c2156a4 Move to windows-webview2 as dependency for winrt impl (#144) on 2021-04-03

[0.7.0]

  • Add old win32 implementation on windows as default feature flag.
    • 1a88cd2 refactor: Add win32 implementation and feature flag for both backends (#139) on 2021-04-02
  • Adds a WindowProxy to the file drop handler closure - WindowFileDropHandler.
    • 20cb051 feat: add WindowProxy to file drop handler closure (#140) on 2021-04-01

[0.6.2]

  • Add pipe back to version check for covector config. This prevents the CI failure on publish if it exists already. The issue was patched in covector (and tests in place so it doesn't break in the future).
    • a32829c chore: add pipe for publish check back in (#131) on 2021-03-28
  • Fix messages to the webview from the backend being delayed on Linux/GTK when the user is not actively engaged with the UI.
    • d2a2a9f fix: spawn async event loop on gtk to prevent delayed messages (#135) on 2021-03-31
  • Add draggable regions, just add drag-region class to the html element.
    • b2a0bfc feat/ draggable-region (#92) on 2021-03-25
  • Add event listener in application proxy
  • Better result error handling
    • 485035f chore: better result error handling (#124) on 2021-03-21
  • Fix visibility on webview2 when window was invisible previously and then shown.
    • 6d31706 Fix visibility on webview2 when window was invisible previously (#128) on 2021-03-24

[0.6.1]

  • Add attribute option to allow WebView on Windows use user_data folder
    • 8dd58ee feat/ allow webview2 (windows) to use optional user_data folder provided by the attributes (#120) on 2021-03-21

[0.6.0]

  • Initialize covector!
    • 33b64ed chore: covector init (#55) on 2021-02-21
  • Support Windows 7, 8, and 10
    • fbf0d17 Adopt Webview2 on Windows (#48) on 2021-02-20
  • Dev tools are enabled on debug build
  • Add skip task bar option
    • 395b6fb feat: skip_taskbar for windows (#49) on 2021-02-20
  • Add custom protocol option
  • Add transparent option to mac and linux
  • Error type has Send/Sync traits
    • 3536b83 Add .changes file in prepare of v0.6 on 2021-02-24
  • Replace Callback with RPC handler
    • e215157 Implement draft RPC API (#95) on 2021-03-04
  • Add File drop handlers