Commit graph

19 commits

Author SHA1 Message Date
Branden Cash
c675d979a7
fix(macos): disable App Transport Security (#1157)
* feat(webview): enable context menu

This enables the ability (at least on MacOS) to reload the webview.

* fix(webview): add handler for webview error

Adding this un-covered the following error when trying to load a the printer page using http and hostname:
```
OnError: error loading page about:blank  wxWEBVIEW_NAV_ERR_OTHER The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

```

* fix(macos): disable App Transport Security policy

Disables the [App Transport Security](https://developer.apple.com/documentation/bundleresources/information_property_list/nsapptransportsecurity) policy that blocks loading http urls (via hostname...ip addresses were fine because ip addresses can't have certs, so they would be excluded from the ATS restriction).

Resolves #791
2023-06-01 00:14:47 +08:00
chunmao.guo
0aea102bd3 FIX: [STUDIO-2631] call AddScriptMessageHandler queued
Change-Id: I6a71c2db3ed1b3d06931f53428a8d78881399b4d
2023-04-17 15:39:02 +08:00
chunmao.guo
bda92795bb FIX: [STUDIO-1033] rm webview script handler on webview destory
Change-Id: I2e9390dfaad46da9e158a43026ef872aaf88d589
2023-04-17 15:39:02 +08:00
chunmao.guo
9f3a89320b FIX: [STUDIO-1033] rm webview script handler on webview destory
Change-Id: If1465ba6bf997bf17b8a33bc33d0f20d34fcbdc7
2023-04-17 15:39:02 +08:00
chunmao.guo
d164889aa4 ENH: [STUDIO-1647] use WebView2 put_UserAgent
Change-Id: Ifae6589892353adb4b940fbe77d7d0f9521330dc
2023-01-10 19:08:26 +08:00
chunmao.guo
a953442c9e ENH: update WebView2 to 1.0.1418.22
Change-Id: I76d4747f8e135368e9dae6ee9f3e980bf4ec6f81
2023-01-10 19:08:26 +08:00
Zhaofeng Li
06a06714c1 WebView: Only include the private header on Windows and macOS
The wrapper isn't used in the Linux code path. Some distributions'
wxWidgets packages don't ship the private headers.
2022-12-16 22:51:07 -05:00
Zhaofeng Li
daade424cb WebView: Only include webview_edge.h when enabled 2022-12-16 22:51:07 -05:00
chunmao.guo
a1fcd05baa FIX: [STUDIO-1570] wkwebview background color
Change-Id: I6b18a2dbf654b71bff88e0c14317d4479358218a
2022-12-15 04:38:15 -05:00
chunmao.guo
dcb9862410 FIX: [STUDIO-1570] webview background color
Change-Id: Icdf41659f4ab18ce30c8b0f585bf702991531599
2022-12-15 04:38:15 -05:00
chunmao.guo
ba8015e455 FIX: more web view logs
Change-Id: Ia4b2821188c3053be297b0fe0aa19fb8d939a816
(cherry picked from commit 4e76cfc6529038252a4afd8d53cf93f817d46b01)
2022-12-15 04:38:15 -05:00
chunmao.guo
3b3ad1b390 FIX: scroll offset with touch pad
Change-Id: I7dbec590f39f174c02e4179fd781ff7fd1a93374
2022-12-15 04:38:15 -05:00
chunmao.guo
bf24a71b60 ENH: webview dark mode
Change-Id: I0b58e759268d057d5942dd8726c37d1abbdd5930
2022-12-15 04:38:15 -05:00
lane.wei
c6f0c41213 Fix the random crash at the startup on Macos&&Linux
don't do the post_init when adding script handler of webview

Change-Id: I2c766c46bb67347286765dee539657b5efd7f64a
2022-10-09 10:37:45 +08:00
chunmao.guo
05bee8d8f4 FIX: run script async with linux webkit
Change-Id: Ia86ff30680baf3045da99909614f3d32a7fe526b
2022-09-30 17:37:38 +08:00
chunmao.guo
4b4e70efcb FIX: async evaluateJavaScript on vebwiew on MacOS
Change-Id: If4c34ef0e9b23622047842bada5a32efcee04498
2022-08-05 16:11:42 +08:00
chunmao.guo
cc1fb36a22 FIX: web view log
Change-Id: I8e28d7b8f5cfbc95428a3768b32f312a591e41c1
(cherry picked from commit fe623cb52a449ff7dffb10c9de8d7af9c7651f1e)
2022-08-05 16:11:42 +08:00
chunmao.guo
835f9837b1 FIX: load url in guide web dialog
Change-Id: Ie723d8994dddcaeb21299837a0e34d8c15b698ed
(cherry picked from commit 05d3a1c20a6f4a817dd098c2b121539863257a66)
2022-08-05 15:28:01 +08:00
lane.wei
1555904bef Add the full source of BambuStudio
using version 1.0.10
2022-07-15 23:42:08 +08:00