367 Commits

Author SHA1 Message Date
Roman
bc68569821 [GTK] Upgrade to Webkit2 (#264)
* [GTK] WIP WebKit2 upgrade

* [GTK] Implement getting js value via url change

* [GTK] Remove inspect-web-view signal handler

WebKit2 automatically shows the web inspector.

* [GTK] add a js_result lock

* [GTK] Implement document.title based JSON communication bridge
2018-10-07 01:02:29 +03:00
Roman
1aabceecb1 Merge pull request #249 from r0x0r/fix-jsapi-reload
[Windows] Fix JS API reload
2018-09-05 11:58:57 +03:00
Roman
225fc291ba Merge pull request #247 from r0x0r/import-refactor
#220: Refactor import logic
2018-09-05 10:03:46 +03:00
Roman Sirokov
06525ed5e1 Refactor import logic 2018-09-02 12:05:05 +03:00
Roman
83893c7f1a [Windows] Fix JS API reload 2018-08-30 23:17:13 +03:00
Roman Sirokov
538aee0fe8 Fix disappearing JS API on reload 2018-08-26 14:44:03 +03:00
Roman Sirokov
185a4bc2d3 Refactor import logic
Introduce PYWEBVIEW_FORCE_GUI environment variable
2018-08-26 14:18:24 +03:00
Wormius
f4959340eb Update __init__.py
When webview.load_css(css, child_uid)  it's used, the interpreter throws:

TypeError: evaluate_js() missing 1 required positional argument: 'uid'

With this change the program already works.
2018-08-09 00:13:48 -05:00
Roman
1832d0f204 Merge pull request #231 from r0x0r/issue229-fix
[All] Change window close behaviour so that it returns control back instead of terminating
2018-06-07 15:16:00 +03:00
Roman
592fbd3df9 [GTK] Concurrency fixes 2018-06-07 13:45:35 +03:00
leetao
f5272fb534 remove the empty line 2018-06-04 20:06:43 +08:00
leetao
dd3d97e607 fix resize error 2018-06-04 11:28:14 +08:00
Shiva Prasad
e681e35d2a [Cocoa] Improve application loop restart 2018-06-02 11:44:34 +05:30
Shiva Prasad
e55fb96f2d [Qt,GTK] Fix broken debug feature
Closes #233. It seems that the environment variable must be set before
initialising the QWebPage.
2018-06-01 18:15:34 +05:30
Roman Sirokov
32e562bd21 [QT] Fix application loop restart 2018-05-31 23:02:42 +03:00
Roman Sirokov
ed7621a6e9 Code cleanup 2018-05-26 00:09:27 +03:00
Roman Sirokov
2b086e4942 Fix multi-window concurrency issues 2018-05-25 12:58:52 +03:00
Roman Sirokov
f489e6a411 [Cocoa] Change window close behaviour so that it returns control back to the calling code instead of termination 2018-05-24 23:14:40 +03:00
Roman Sirokov
1b54fdeae6 Change window creation logic to allow subsequent master window openings 2018-05-24 21:42:52 +03:00
Shiva Prasad
1ef00f9539 [Winforms] Create new windows via arbitary instance
The master instance could have been closed when creating new windows, we
cannot rely on it to create the window for us. So we use an arbitary
running instance. This is the pattern followed for such scenarios on the
other platforms.
2018-05-21 11:46:17 +05:30
Roman
38dba23b93 Fix QT 2018-05-16 22:14:03 +03:00
Roman
35d2baa4e6 Use QT by default on QT based systems 2018-05-11 12:23:23 +03:00
Roman
d8235627c8 Add 32/64 support for WebBrowserInterop (#218) 2018-04-28 19:54:44 +03:00
Roman
5d4aaee9e6 Recompile WebBrowserInterop.dll to x86 2018-04-20 23:32:17 +03:00
Roman
450614fd1e [WinForms] Fix typo in js_result_semaphore 2018-04-18 22:46:01 +03:00
Shiva Prasad
c7a84a2c69 [Qt] Fix WebView class initialisation 2018-04-17 19:20:17 +05:30
Shiva Prasad
afe466cc5f Merge branch 'master' into debug-feature 2018-04-16 23:08:27 +05:30
Roman
a1477ce695 Merge branch 'master' into master 2018-04-16 12:03:17 +03:00
HucSte
a780407d84 Correction to detect correctly only OpenBSD 2018-04-15 23:38:42 +02:00
Roman
119285d879 Merge branch 'master' into issue153 2018-04-15 23:03:16 +03:00
HucSte
505157fa60 Add support PyQt5 for OpenBSD 6.x! 2018-04-14 21:39:14 +02:00
Shiva Prasad
face013d59 [Qt 5.5+] Open _blank links in external browser 2018-04-13 21:12:29 +05:30
Shiva Prasad
951fcbe374 [Qt] Make call to super() Python 2.x compatible
Also:
  * Correct parenting of the view to the page.
  * Fix import error with PyQt4.
2018-04-10 00:16:02 +05:30
Roman
2b7b77d68a [QT] Implement opening target=_blank links in a web browser for older QT versons 2018-04-09 00:34:09 +03:00
Roman
d48374e143 [WinForms] Make WebBrowserInterop.dll import frozen friendly 2018-04-07 22:41:49 +03:00
Shiva Prasad
78e21b50d3 [All] Refactor API calls to remove duplicate code (#208)
Simply replace lots and lots of identical try-except blocks with a
decorator.
2018-04-07 22:41:49 +03:00
Roman
5e71370afb [QT] Fix evaluate_js 2018-04-07 22:41:49 +03:00
Roman
986cc57193 Change start to create_window 2018-04-07 22:41:49 +03:00
Roman
5c29bd4ac0 [Winforms] Fix evaluate_js 2018-04-07 22:41:49 +03:00
Roman
64012f018f [WinForms] Make todos app Windows compatible 2018-04-07 22:41:49 +03:00
Roman Sirokov
4f32fa58b8 [WinForms] Add base_uri support 2018-04-07 22:41:49 +03:00
Roman Sirokov
0783b2c7f3 Revert "Remove base_uri paramter from load_html"
This reverts commit ee59b9412e1b0966116c279b75736aadfd530395.
2018-04-07 22:41:49 +03:00
Shiva Prasad
86fec5ac5d [GTK] Remove duplicate JSON.stringify in evaluate_js 2018-04-07 22:41:49 +03:00
Shiva Prasad
79b5cae38e Fix transform_url logic
It should have been `':' in url` instead of `not in`. :D
Anyway I think this syntax reads better.
2018-04-07 22:41:49 +03:00
Shiva Prasad
be28b7085b [Cocoa] Remove seemingly heavy unused import
This was added in 22de1e0 with apparently no necessity. I just
discovered it is a time-hogging import that delayed app-startup
considerably.
2018-04-07 22:41:49 +03:00
Roman Sirokov
073e6eb62f Location based implementation of .start() 2018-04-07 22:41:49 +03:00
r0x0r
9919d9dfb5 [QT] Rename escape_string 2018-04-07 22:41:49 +03:00
r0x0r
4f3348dc33 Refactoring and refinements 2018-04-07 22:41:49 +03:00
r0x0r
e65f1eb356 Add test_start 2018-04-07 22:41:49 +03:00
Roman
4e517be6bf Fix GTK security issues
Fix QT text select
2018-04-07 22:41:49 +03:00