Releases: r0x0r/pywebview
Releases · r0x0r/pywebview
6.0
⚡ Features
All
Shared state management viawindow.state
object. State object is automatically updated between Javascript and Python.All
Newrequest_sent
andresponse_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 viawebview.create_window(menu=webview.menu.Menu)
.All
Add origin coordinates (x, y) towebview.screen.Screen
objectAll
JS API nested classes can now be omitted from serialization by setting_serializable = False
class attribute.Cocoa
Newwebview.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
andwebview.FOLDER_DIALOG
constants are deprecated in favor ofwebview.FileDialog
enum with valuesSAVE
,LOAD
andFOLDER
.All
BREAKING: Deprecated functionswindow.get_element
andwindow.get_elements
are removed. Usewindow.dom.get_element
andwindow.dom.get_elements
instead.All
BREAKING:webview.DRAG_REGION_SELECTOR
is deprecated. Usewebview.settings['DRAG_REGION_SELECTOR']
instead.All
Modify JS API to use callback instead of setInterval #1607. Thanks @qaqFei.All
When exposing aWindow
object to JS API,dom
,events
andstate
objects are omitted.All
Logging level set byPYWEBVIEW_LOG
environment level takes precedence overdebug
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. #1574All
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 bywindow.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. #1639EdgeChromium
Fix easy dragEdgeChromium
Remote Debugging Fails When Bothstorage_path
andREMOTE_DEBUGGING_PORT
are setEdgeChromium
Fix window transparency. Transparent windows can now react to mouse events.Winforms
Fix window placing on a screen
5.4
⚡ Features
All
A new function for executing Javascript as iswindow.run_js(code)
without returning a resultAll
Newbefore_load
event that is fired right before pywebview code is injected into the page. The event roughly corresponds toDOMContentLoaded
DOM event.All
Screen
object now have origin coordinates asscreen.x
andscreen.y
EdgeChromium
Add remote debugging support viawebview.settings['REMOTE_DEBUGGING_PORT']
. Thanks @Lugribossk
🚀 Improvements
All
Implement a len method forEvent
objects to get a number of event subscribers.All
The order of firing of loading eventsloading
,before_load
andloaded
is standardized across the platforms.All
Window
objects can now be exposed via JS APIAll
Makewebview.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 defaultCocoa
Native Color Picker on MacOS is drawn in the wrong place #1568. Thanks @maddyabyCocoa
Improved support for py2app #1565EdgeChromium
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 exitCocoa
Fix typo inabortModal
call. Thanks @simonrobCocoa
Fix missing menuCocoa
Fix window close termination when pressing Cmd+Q. Thanks @mikeylemmon.Cocoa
Fix missingget_active_window
. Thanks @sardinationWindows
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
5.3.1
5.3
⚡ Features
All
Native window object for each platform is now exposedwindow.native
. You can use it for example for applying custom appearance to a window. Additionally WebView is exposed viawindow.native.webview
All
Newwindow.events.before_show
event.All
New DomEventHandlerdebounce
parameter. It can be used it for solving performance issues withdragover
andmouseover
events.GTK/QT
application icon support for GTK and QT platformswebview.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 procedureshown
event is fired.Cocoa
Better handling of stopping event loop in headless environments.Windows
Fallback to WinForms when QT is forced and not availableWindows
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 @hustshenlCocoa
Fix open file dialog file type selector and all files filterCocoa
Fix folder drag and drop. Thanks @pythonsGTK
Fix multiple file drag and drop on certain Linux distributions. Thanks @coffeejunkQT
QT6 compatilibityQT
Release of profile requested but WebEnginePage still not deleted with multiple windowsWindows
Graceful handling forshcore.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
🚀 Improvements
All
Replace print with logging in JS API exception handling.All
Replace ssl.wrap_socket() with SSLContext().wrap_socket(). Thanks @lanzzWinForms
Add a modern Vista open folder dialog. Thanks @v_yonghliaoWinforms
Fallback to Winforms when QT is forced, but not available.EdgeChromium
Replacewindow.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 @lanzzAll
Fix ever-growing main menu bug. Thanks @lanzzAll
Change on_closing event handlers to be executed synchronously in order to prevent a deadlock when using thread join. #1439All
FixTypeError: unhashable type
with certain unhashable object types exposed via JS API. #1442Cocoa
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 @TransparentLCQT
Fix user agent.QT
Fix segfault on window close.
5.1
⚡ Features
All
Clear all the cookies (including HttpOnly) withwindow.clear_cookies()
. Sponsored by TBSAll
pywebview event handler can now have an optionalwindow
parameter that holds an instance of theWindow
object that triggered the event.
🚀 Improvements
Windows
Add window shadow withwebview.create_window(..., shadow=True)
. Thanks @yllhwa
🐞 Bug fixes
Cocoa
Fix showing windowQT
Fix fetching cookies in private modeQT
Fix blank screen in Pop! OS. Thanks @ysfchn.GTK
Fix frameless windows having a hard-coded minimum size. Thanks @coffeejunk