345 Commits

Author SHA1 Message Date
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
r0x0r
8b6e9120b9 [WIP] Implementation of webview.start() 2018-04-07 22:41:49 +03:00
Roman
ef611cc6f1 Fix missing import 2018-04-07 19:14:52 +03:00
Roman
919d2e5a7d Merge branch 'issue153' of https://github.com/r0x0r/pywebview into issue153 2018-04-07 10:57:57 +03:00
Roman
720d1df1e2 [WinForms] Support for opening external links 2018-04-07 10:56:02 +03:00
Shiva Prasad
69bc122369 [Cocoa,GTK] Open _blank links in external browser 2018-04-07 09:55:48 +03:00
Shiva Prasad
ed783c0a01 [Qt 5.5+] Debug feature: improvements and bug fixes
* Check if inspector exists before opening

* Make inspector_port a class attribute
    Chrome Remote debugger supports only one debug server per app.
2018-04-01 11:59:08 +05:30
Shiva Prasad
8f50411738 [Qt 5.5+] Implement basic web inspector support
Starting with 5.5, Qt relies on Chrome Remote debugging for inspecting
webviews. This commit utilises the multi-window feature to open a new
window, using it to host the debugger instead of an external Chromium
based browser.

The info about the debug server is automatically logged by Qt into the
console, so users who prefer to debug in an external browser can do so.

Note: this has not passed the experimental stage; it has still got a few
bugs to take care of.
2018-03-28 21:50:07 +05:30
Shiva Prasad
0f79b2b985 [GTK] Enable execCommand copy to clipboard 2018-03-24 00:20:12 +05:30
Roman
1273fdb3d3 Convert js files to py modules (#193) 2018-03-13 19:40:43 +02:00
Roman Sirokov
a648b0015a [WinForms] Don't suppress JS error messages in debug mode 2018-03-12 19:25:54 +05:30
Shiva Prasad
f466ee6da9 [Winforms] Enable right click menu for debug=True 2018-03-12 19:25:54 +05:30
Shiva Prasad
5261a2f600 [GTK] Implement web-inspector debug support
Based on the latest multi-window feature.
2018-03-12 19:23:51 +05:30
Shiva Prasad
aaa48bd242 [Cocoa,GTK] Open _blank links in external browser 2018-03-12 19:12:14 +05:30
Roman
22de1e0f9c evaluate_js, thread safety improvements
- Uniform cross-platform JS type conversion to Python types in evalulate_js
- Thread safety improvements 
- New test runner
2018-03-10 09:23:01 +02:00
Roman
cd19742748 Remove base_uri paramter from load_html (#180) 2018-02-26 00:01:36 +02:00
Shiva Prasad
5c9da5a2b1 Merge branch 'fix-test'
Partially fixes Travis CI tests.
2018-02-23 19:00:26 +05:30
Roman
640ab8e44a [WinForms] Fix High DPI 2018-02-20 22:08:46 +02:00
Shiva Prasad
5883780591 [QT] Refactor platform branching in JS bridge call
This is to avoid conflicts in some recent versions of QtWebEngine, where
window.external does seems to be present by default. It's better to
check for Qt first; window.qt is not likely to be defined anywhere else,
so we won't hopefully run to conflicts.
2018-02-19 20:22:25 +05:30
Shiva Prasad
fa04b4f0a6 [QT][Travis] Fix Python 3.x test failure
I don't know why this is needed but from reading the error log I came
upto this solution (and it works).
2018-02-19 17:47:47 +05:30
Roman
cce2648284 [Win32] Make Win32 run + possible DPI fix 2018-02-16 00:56:54 +02:00
Roman
9f82a0b8d9 Merge branch 'master' into multi-window 2018-02-13 11:43:02 +02:00
Roman Sirokov
a620d3b580 Fix assert_js
[GTK] convert 'undefined' to None when evaluating js
2018-02-10 11:56:37 +02:00