Pywebview

Latest version: v5.3.2

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 12

5.0.4

_Released 04/03/2024_

🐞 Bug fixes

- `All` Python 3.7 compatibility

5.0.3

_Released 03/03/2024_

🚀 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

5.0.1

_Released 02/03/2024_

⚡ Features

- Android support. _pywebview_ can now be used on Android devices with help of [buildozer](https://buildozer.readthedocs.io/en/latest/) in producing APK. #377
- DOM manipulation, traversal and events. _pywebview_ provides a set of functions for mutating DOM nodes and traversing DOM, as well as you can subscribe to DOM events directly in Python. 1218
- Application settings `webview.settings`. You can now override default behaviour of _pywebview_ by modifying this dictionary. Currently configurable settings include.

python
webview.settings = {
'ALLOW_DOWNLOADS': False, Allow file downloads
'ALLOW_FILE_URLS': True, Allow access to file:// urls
'OPEN_EXTERNAL_LINKS_IN_BROWSER': True, Open target=_blank links in an external browser
'OPEN_DEVTOOLS_IN_DEBUG': True, Automatically open devtools when `start(debug=True)`.
}


- Support for file downloads. To enable file downloads, set `webview.settings['ALLOW_DOWNLOADS'] = True`. Disabled by default.
- Full path support for file drag n drop. To get a full path of the dragged file, _pywebview_ introduces `event['domTransfer']['files'][0]['pywebviewFullPath']` value in the `drop` event caught on the Python side. To subscribe to the event you use `window.dom.document.events.drop += on_drop`.
- `window.maximize()` - maximize window.

🚀 Improvements

- `All` A more powerful JS data serializer capable of handling different data types and detecting circular references 1217
- `All` Nested JS API support. See `examples/js_api.py` for details. Thanks AlecHaring
- `All` BREAKING: `window.get_elements` returns a list of instances of a new `Element` object.
- `All` BREAKING: `evaluate_js` throws a `webview.errors.JavascriptException` if executed codes raises an error
- `Windows` WebView2 control updated to 1.0.2045.28
- `Windows` Add SSL support for local HTTP server.
- `GTK` Update deprecated code

🐞 Bug fixes

- `Cocoa` Suppress secure coding is not enabled for restorable state warning. Thanks awesomo4000
- `EdgeChromium` Background color not available in webview2. Thanks Vanthys
- `EdgeChromium` Multiple focus events on window show. Thanks yllhwa
- `GTK` Fallback for Webkit4.0 if 4.1 not found. Thanks starnight.
- `QT` Fix user agent string. 1256 Thanks TransparentLC.
- `QT` Solve the blank main window issue on RHEL9. Thanks justincui 1266
- `QT` Submenu actions firing incorrectly 1318

4.4.1

_Released 31/10/2023_

🐞 Bug fixes

- `GTK` Fallback for Webkit4.0 if 4.1 not found.

4.4

_Released 26/10/2023_

🐞 Bug fixes

- `Cocoa` Window not retaining focus on keystrokes. 1187
- `Cocoa` App crashing when closing fullscreen window. 1236
- `Cocoa` Video keeps playing after closing window. 1235
- `Cocoa` Uploaded file is empty if filename contains a space. 1231
- `Cocoa` Return value of confirmation dialog created by `window.confirm`. 976
- `Windows` Fullscreen application disappearing after disconnecting extended display. 1229

🚀 Improvements

- `All` Don't start http server for file:// urls. Thanks glorpen
- `GTK` Bump WebKit2 to 4.1. Thanks starnight
- `Windows` Disable swipe navigation 1230
- `Windows` Window is changed to fullscreen on the current monitor in a multi-monitor setup.

4.3.3

_Released 08/09/2023_

🐞 Bug fixes

- `QT` Fix QT implementation

Page 2 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.