Commit Graph

451 Commits

Author SHA1 Message Date
Roman Sirokov
f2f4fdf78b Add exception handling to JS API 2019-10-10 23:33:24 +03:00
Roman Sirokov
8235dd612d Fix unescaped single quote in js api calls 2019-08-29 23:14:54 +03:00
Roman
7e4ded5ea9 [Windows] Fix non-existant variable reference 2019-08-17 00:53:21 +03:00
Roman Sirokov
984314b3fd [win] Fix current url when loading HTML in Edge 2019-08-16 21:51:49 +03:00
Roman Sirokov
370c6a55ca [Edge] Make load_html use http server 2019-08-15 23:43:23 +03:00
Roman Sirokov
e6ae43c7ce [Edge] Use HTTP server on load_url 2019-08-14 23:52:10 +03:00
Roman Sirokov
8233474b09 Add identifying renderer for every platform.
[Edge] Automatically switch to local http server for file urls
2019-08-14 22:55:45 +03:00
Asiel Díaz Benítez
8160afda3d Update guilib.py (#365)
* Update guilib.py

if `forced_gui == 'gtk'` then  `forced_gui != 'qt'` so it is redundant here we can remove it.

* Get rid of negation
2019-08-06 23:41:34 +03:00
Roman Sirokov
1a1085c60e [All] Fix JS API type conversion for objectlike strings 2019-07-28 01:37:02 +03:00
Roman
b91737f6db [Winforms] Fix pyinstaller nowindow issue 2019-07-23 14:50:36 +03:00
Roman
ac53fa94be Merge branch 'master' of https://github.com/r0x0r/pywebview 2019-07-21 23:10:15 +03:00
Roman
1fb9225be4 [Winforms] Fix pyinstaller nowindow issue 2019-07-21 23:09:49 +03:00
Konstantin Vasserman
372673e4b1 Workaround for segmentation fault on closing the main window with Qt (#350) 2019-07-18 11:43:08 +03:00
Konstantin Vasserman
81dabd0900 Don't escape line breaks in result of js_bridge_call (#349) 2019-07-18 11:39:40 +03:00
Konstantin Vasserman
b1bb8c5b81 Fix for pytest warning about invalid escape sequence (#348) 2019-07-18 11:36:13 +03:00
Roman
3d1233f487 Merge branch 'master' of https://github.com/r0x0r/pywebview 2019-07-15 23:28:17 +03:00
Roman
f50715b496 [WinForms] Fix Windows version detection 2019-07-15 23:27:55 +03:00
Roman
ab139594f3 [Winforms] Set directory for folder dialog 2019-07-15 14:56:07 +03:00
Roman Sirokov
e63624644f Delete unused dll 2019-07-11 13:26:07 +03:00
Nick Barrett
3fcb17da61 Show the default window control buttons. 2019-07-07 13:56:39 +03:00
Roman
0698b059db pywebview 3.0 (#340)
* Update change_url.md

* Update api.md

* Update installation.md

* Add Google Analytics

* Fix installation

* 2.4 info

* [Docs] add information about window.pywebview availability

* Update debuggig info about QTWebEngine

* [Docs] Add information about app architecture

* Update cef.md

* [CEF] Fix JS logic not persisting after navigating to another page

* #169 Frameless window (#313)

* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* [GTK] partial implementation of frameless window

* [QT] Partial implementation of frameless window

* [QT] implement easy drag

* [Cocoa] Hide standard buttons and make the entire window draggable

* [GTK] implement easy move

* Add frameless tests

* Remove unused parameter

* [Cocoa] Implement free drag

* Revert WebBrowserInterops

* Code cleanup

* Update interop DLLs

* Fix interop dll

* Update docs; Fix tests

* Add example

* Update examples

* [CEF]: Implement support for pyinstaller one-file mode

* [CEF] Fix typo

* [All] Change api_call timeout to 15 seconds

* Update setup.py

* [QT] Simplify QT installation

* New API
Cocoa implementation
Revamped tests and examples

* Fix web engine force setting

* Rename destroy_window to destroy

* Update documentation

* Add documentation for 2.4

* Refactor project structure

* [GTK] New API support

* Rename confirm_quit to confirm_close
Split lifecycle events to shown and loaded

* [GTK] Implement new API
Fix tests

* [QT] New API implementation

* Remove multiprocessing

* [Windows/CEF] New API implementation

* Implement CSRF token
[All] Implement get_element

* Update Flask app example

* Rename get_element to get_elements. Bug fixes.

* [GTK] Implement propert JS-Python bridge for WebKit2 >2.2

* Update documentation

* [Windows/CEF] New API implementation

* Add token test

* [Winforms] Fix js api initialization

* [Cocoa] Fix events

* Debug: print webkit version

* [GTK] Check for old webkit

* [GTK] Fix event issues

* Catch notimlementederror in tests

* Update travis conf with qt from pip

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* [Windows] Preliminary implementation of EdgeHTML based on PR from @HeavenVolkoff

* [docs] Add information about EdgeHTML

* EdgeHTML WIP

* Remove windows.web import

* EdgeHTML improvements. Fix MSHTML evaluate_js

* [Docs] Add information about renderer limitations

* [EdgeHTML] Fix bugs and tests

* Remove window from windows list after it is destroyed

* Fix window object deletion after window is closed via GUI

* [Docs] Add information about renderer codes

* Refactor and fix JS API
Remove multiprocessing example
[MSHTML] Add console.log debug support

* [Travis] Change conf

* [WinForms] Fix fullscreen

* Fix dll installation

* [Windows] Fix DLL bundling

* Update changelog

* [CEF]: Fix JS API

* Update changelog

* Built-in HTTP server implementation

* Add http server test

* Add http server testcd

* Add http server testcd

* [EdgeHTML] allow localhost urls

* Add video example

* Bug fixing

* [Cocoa] Remove media prefs

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* [Travis] Disable QT 5.12 builds

* Update html_load.md
2019-07-07 13:33:37 +03:00
cormacc
72e1d1a675 Use os.remove rather than shutil.rmtree to remove error.log on exit
shutil.rmtree is only supposed to take a directory argument according
to docs. Was resulting in an exception on window shutdown.
2019-06-09 20:22:13 +03:00
Roman Sirokov
48cb71d653 [All] Change api_call timeout to 15 seconds 2019-04-05 23:49:45 +03:00
Roman Sirokov
08e012bb8a [CEF] Fix typo 2019-04-05 23:42:42 +03:00
Roman Sirokov
097c3067da [CEF]: Implement support for pyinstaller one-file mode 2019-03-11 09:58:09 +02:00
Roman
6ee73e7e66 #169 Frameless window (#313)
* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* [GTK] partial implementation of frameless window

* [QT] Partial implementation of frameless window

* [QT] implement easy drag

* [Cocoa] Hide standard buttons and make the entire window draggable

* [GTK] implement easy move

* Add frameless tests

* Remove unused parameter

* [Cocoa] Implement free drag

* Revert WebBrowserInterops

* Code cleanup

* Update interop DLLs

* Fix interop dll

* Update docs; Fix tests

* Add example

* Update examples
2019-02-16 21:33:05 +02:00
Roman
c99e3109f4 [CEF] Fix JS logic not persisting after navigating to another page 2019-02-13 23:35:23 +02:00
Roman
9c785381e9 #15 CEF implementation (#310) 2019-02-12 22:34:22 +02:00
Roman
1043204123 #189: Remove QT4 (#305) 2019-02-04 15:58:18 +02:00
Roman Sirokov
7a4f5c6a79 [All] Add logging formatter 2018-12-23 14:32:38 +02:00
Roman Sirokov
8e6acbb2ec Merge branch 'master' of github.r0x0r:r0x0r/pywebview 2018-12-23 12:24:17 +02:00
Roman Sirokov
ed9b4bca27 [All] Refactor logging to keep its configuration locally 2018-12-23 12:22:59 +02:00
Shiva Prasad
40e424fbf9 [Cocoa] Enable dark mode support for macOS Mojave 2018-12-20 12:01:13 +05:30
Roman
0d7d49889e Merge branch 'wkwebview' of https://github.com/r0x0r/pywebview into wkwebview 2018-12-18 00:17:03 +02:00
Roman
a4e886490e Fix Windows tests 2018-12-18 00:14:20 +02:00
Shiva Prasad
971f6a8466 [All] Quote URLs only on macOS
Quoting seems to produce errors on Windows. Also, the quote function of
urllib encodes parts of query strings as well, which is undesirable. So
a custom function has been used.
2018-12-18 00:13:35 +02:00
Shiva Prasad
bd8a1d7abc [Cocoa] Fix non-existant DOM when url is empty
Follow-up to a52d90b.
2018-12-18 00:13:35 +02:00
Shiva Prasad
3965293631 [Cocoa] Ignore colons while quoting urls
Plus some code cleanup.
2018-12-18 00:13:35 +02:00
Shiva Prasad
50960b02ee [Cocoa] Move bridgesupport metadata to cocoa.py 2018-12-18 00:13:34 +02:00
Shiva Prasad
10a8248bd2 [Cocoa] Init NSURLs with quoted strings
Follow up to 91cd767.
2018-12-18 00:13:34 +02:00
Shiva Prasad
a2c79086d6 [Cocoa] Reimplement JS window.print() hook
We are forced to use the private API _printOperationWithPrintInfo_ of
WKWebView, for the time being. It offers no better alternatives.
2018-12-18 00:13:34 +02:00
Shiva Prasad
ee33d18125 [Cocoa] Disable delete key nav via preference flag
More direct and robust than the current method. Works for internal links
as well. And this seems to be the method used by Safari. But the flag is
available only from macOS 14+.
2018-12-18 00:13:34 +02:00
Shiva Prasad
77c179366e [Cocoa] Disable right/control click context menu 2018-12-18 00:13:34 +02:00
Shiva Prasad
3475532bb6 [Cocoa] Port WKNavigationDelegate methods 2018-12-18 00:13:34 +02:00
Shiva Prasad
7d4d089732 [Cocoa] Convert method signatures to byte strings
For compatibility with Python 3.x ctypes.create_string_buffer.
2018-12-18 00:13:34 +02:00
Shiva Prasad
f3f9cc0516 [Cocoa] Properly port WKUIDelegate methods
Manually assign the missing block signatures of the completionHandler
arguments (idea credits: https://github.com/munki/munki/commit/b9944e9).
2018-12-18 00:13:34 +02:00
Shiva Prasad
577fbd9563 [Cocoa] Manually load metadata when unavailable
The metadata for WKWebView evaluateJavaScript:completionHandler: is
absent in older versions (<3.1) of PyObjC. We need to manually load
the required metadata using PyObjC's manual metadata loading system.
2018-12-18 00:13:33 +02:00
Roman
064b859601 Fix alert/confirm delegates 2018-12-18 00:13:33 +02:00
Roman
23ffc1d345 Fix indendation 2018-12-18 00:13:33 +02:00
Roman
884be9169f [macOS] Eval JS fixes 2018-12-18 00:12:47 +02:00