Skip to content

Releases: r0x0r/pywebview

6.0

08 Aug 09:12
1dc87db
Compare
Choose a tag to compare

⚡ Features

  • All Shared state management via window.state object. State object is automatically updated between Javascript and Python.
  • All New request_sent and response_received events. The events are fired when a HTTP request is sent and a response is received. Request headers can be modified before sending.
  • All Window specific menu that can be created via webview.create_window(menu=webview.menu.Menu).
  • All Add origin coordinates (x, y) to webview.screen.Screen object
  • All JS API nested classes can now be omitted from serialization by setting _serializable = False class attribute.
  • Cocoa New webview.settings['SHOW_DEFAULT_MENUS'] parameter to omit default menus. True by default. Thanks @mikeylemmon.
  • Android New Android Kivyless implementation for improved startup time and smaller package size. Thanks @kengoon.
  • Android Fullscreen mode support #1598. Thanks @michelle-avery.

🚀 Improvements

  • All BREAKING: webview.SAVE_DIALOG, webview.OPEN_DIALOG and webview.FOLDER_DIALOG constants are deprecated in favor of webview.FileDialog enum with values SAVE, LOAD and FOLDER.
  • All BREAKING: Deprecated functions window.get_element and window.get_elements are removed. Use window.dom.get_element and window.dom.get_elements instead.
  • All BREAKING: webview.DRAG_REGION_SELECTOR is deprecated. Use webview.settings['DRAG_REGION_SELECTOR'] instead.
  • All Modify JS API to use callback instead of setInterval #1607. Thanks @qaqFei.
  • All When exposing a Window object to JS API, dom, events and state objects are omitted.
  • All Logging level set by PYWEBVIEW_LOG environment level takes precedence over debug parameter.
  • Android New test suite for Android platform.
  • Cocoa Add handler for Javascript prompt/input #1567. Thanks @maddyaby.
  • Winforms Dark mode support with automatic theme changing #1595. Thanks @godcop.

🐞 Bug fixes

  • All Better duplicate object detection in JS API serialization.
  • All Loading URLs with a hash served by local HTTP server. #1574
  • All Multiwindow with local-url setups sets wrong server root (BottleServer). Thanks @Sopze92.
  • All SSL support for HTTP apps. Thanks @Gu-f.
  • All Fix duplicate logging when webview is imported multiple times.
  • Android Fix JSON-encoded values returned by window.evaluate_js.
  • Android Fix cookie support.
  • Cocoa Don't terminate app if windows shouldn't close #1580. Thanks @mikeylemmon.
  • Cocoa File filter set via <input type="file"> tag.
  • GTK Fix Javascript exception handling #1648.
  • QT Fix user agent string.
  • QT Fix QWebPage enums. #1639
  • EdgeChromium Fix easy drag
  • EdgeChromium Remote Debugging Fails When Both storage_path and REMOTE_DEBUGGING_PORT are set
  • EdgeChromium Fix window transparency. Transparent windows can now react to mouse events.
  • Winforms Fix window placing on a screen

5.4

27 Jan 22:00
7a79d69
Compare
Choose a tag to compare
5.4

⚡ Features

  • All A new function for executing Javascript as is window.run_js(code) without returning a result
  • All New before_load event that is fired right before pywebview code is injected into the page. The event roughly corresponds to DOMContentLoaded DOM event.
  • All Screen object now have origin coordinates as screen.x and screen.y
  • EdgeChromium Add remote debugging support via webview.settings['REMOTE_DEBUGGING_PORT']. Thanks @Lugribossk

🚀 Improvements

  • All Implement a len method for Event objects to get a number of event subscribers.
  • All The order of firing of loading events loading, before_load and loaded is standardized across the platforms.
  • All Window objects can now be exposed via JS API
  • All Make webview.settings key immutable.
  • GTK 'undefined'and 'null' string values are no longer translated to None during JS API serialization.
  • Cocoa Add support for the download attribute on links. Thanks @maddyaby.
  • Cocoa Ignore ssl errors for local HTTP server by default
  • Cocoa Native Color Picker on MacOS is drawn in the wrong place #1568. Thanks @maddyaby
  • Cocoa Improved support for py2app #1565
  • EdgeChromium Update webview2 binaries to 1.0.2957.106

🐞 Bug fixes

  • HTTP Fix loading local urls with a hash served by local HTTP server.
  • EdgeChromium Delete browser data in private mode on program exit
  • Cocoa Fix typo in abortModal call. Thanks @simonrob
  • Cocoa Fix missing menu
  • Cocoa Fix window close termination when pressing Cmd+Q. Thanks @mikeylemmon.
  • Cocoa Fix missing get_active_window. Thanks @sardination
  • Windows Fix window placing in certain monitor layouts when assigning to a specific monitor.
  • Windows Fix a short blank when closing the window. Thanks @godcop

5.3.2

22 Oct 20:43
ba0880c
Compare
Choose a tag to compare

🐞 Bug fixes

  • Fix Pyinstaller compatibility for non-Windows platforms #1508
  • Error occurs when alert() is called with non-string arguments #1506

5.3.1

21 Oct 20:08
583a78d
Compare
Choose a tag to compare

🐞 Bug fixes

  • Fix Pyinstaller compatibility

5.3

16 Oct 20:28
47064b1
Compare
Choose a tag to compare
5.3

⚡ Features

  • All Native window object for each platform is now exposed window.native. You can use it for example for applying custom appearance to a window. Additionally WebView is exposed via window.native.webview
  • All New window.events.before_show event.
  • All New DomEventHandler debounce parameter. It can be used it for solving performance issues with dragover and mouseover events.
  • GTK/QT application icon support for GTK and QT platforms webview.start(icon=<path>)

🚀 Improvements

  • All Storage path is now verified for write permissions before application start. An exception is thrown, if path is not writable.
  • All Refined logic at which point of the startup procedure shown event is fired.
  • Cocoa Better handling of stopping event loop in headless environments.
  • Windows Fallback to WinForms when QT is forced and not available
  • Windows Remove white border in a fullscreen window.
  • Windows Support multiple selection in open folder dialog.

🐞 Bug fixes

  • All Support for Unicode filenames in drag and drop. Thanks @hustshenl
  • Cocoa Fix open file dialog file type selector and all files filter
  • Cocoa Fix folder drag and drop. Thanks @pythons
  • GTK Fix multiple file drag and drop on certain Linux distributions. Thanks @coffeejunk
  • QT QT6 compatilibity
  • QT Release of profile requested but WebEnginePage still not deleted with multiple windows
  • Windows Graceful handling for shcore.dll not being present on Windows 7. Thanks @rafael-vasconcellos.
  • Windows Return result of open folder dialog is fixed to tuple.
  • Edge Chromium Current url not being updated after a navigation event. Thanks @hustshenl

5.2

17 Aug 07:00
f36eec5
Compare
Choose a tag to compare
5.2

🚀 Improvements

  • All Replace print with logging in JS API exception handling.
  • All Replace ssl.wrap_socket() with SSLContext().wrap_socket(). Thanks @lanzz
  • WinForms Add a modern Vista open folder dialog. Thanks @v_yonghliao
  • Winforms Fallback to Winforms when QT is forced, but not available.
  • EdgeChromium Replace window.alert with a message box implementation.
  • MSHTML Convert JS API code to ES5 to be compatible with MSHTML.

🐞 Bug fixes

  • All Add missing return in DOM.body property. Thanks @lanzz.
  • All Use json.dumps to serialise the html template in create_element. Thanks @lanzz
  • All Fix ever-growing main menu bug. Thanks @lanzz
  • All Change on_closing event handlers to be executed synchronously in order to prevent a deadlock when using thread join. #1439
  • All Fix TypeError: unhashable type with certain unhashable object types exposed via JS API. #1442
  • Cocoa Fix nil pointer dereference during file download. Thanks @realityone.
  • EdgeChromium Support multiple pywebviews at the same time. Thanks @huan1936.
  • QT QT6 compatibility.
  • QT Fix devtools in PySide6. Thanks @TransparentLC
  • QT Fix user agent.
  • QT Fix segfault on window close.

5.1

18 Apr 20:25
1134c81
Compare
Choose a tag to compare
5.1

⚡ Features

  • All Clear all the cookies (including HttpOnly) with window.clear_cookies(). Sponsored by TBS
  • All pywebview event handler can now have an optional window parameter that holds an instance of the Window object that triggered the event.

🚀 Improvements

  • Windows Add window shadow with webview.create_window(..., shadow=True). Thanks @yllhwa

🐞 Bug fixes

  • Cocoa Fix showing window
  • QT Fix fetching cookies in private mode
  • QT Fix blank screen in Pop! OS. Thanks @ysfchn.
  • GTK Fix frameless windows having a hard-coded minimum size. Thanks @coffeejunk

5.0.5

07 Mar 15:13
Compare
Choose a tag to compare

🐞 Bug fixes

  • All Prevent infinite recursion in nested JS API #1327
  • CEF Crash due incorrect settings #1330
  • QT WebEnginePage not deleted after window is closed #1328
  • QT Blank screen on certain Linux systems #1325

5.0.4

04 Mar 21:50
Compare
Choose a tag to compare

🐞 Bug fixes

  • All Python 3.7 compatibility

5.0.3

03 Mar 21:40
Compare
Choose a tag to compare

🚀 Improvements

  • QT window position is returned in coordinates excluding the window frame to be in line with provided coordinates.

🐞 Bug fixes

  • EdgeChromium CoreWebView2Settings exception in debug mode. #1323
  • QT Crashing when closing additional windows #525
  • QT DevTools failing to focus on open