You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/concepts/overview-features-apis.md
+59-4Lines changed: 59 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: msedgedevrel
6
6
ms.topic: conceptual
7
7
ms.service: microsoft-edge
8
8
ms.subservice: webview
9
-
ms.date: 08/26/2024
9
+
ms.date: 10/21/2024
10
10
---
11
11
# Overview of WebView2 features and APIs
12
12
@@ -230,7 +230,7 @@ Allows the host app to add JavaScript code in the web content within the WebView
230
230
<!-- ------------------------------ -->
231
231
#### Web messaging
232
232
233
-
Your app can send messages to the web content that's within the WebView2 control, and receive messages from that web content. Messages are sent as strings or JSON objects.
233
+
Your app can send messages to the web content that's within the WebView2 control, and receive messages from that web content. Messages are sent as strings or JSON objects.
234
234
235
235
You can optionally post and receive DOM objects along with your message, via the `additionalObjects` parameter of `PostWebMessageAsJson` (.NET, WinRT) or via `PostWebMessageAsJsonWithAdditionalObjects` (Win32). The WebView2 `CoreWebView2FileSystemHandle` class represents the DOM `FileSystemHandle`, and `CoreWebView2File` represents the DOM `File`. See also [`chrome.webview.postMessageWithAdditionalObjects`](../reference/javascript/webview.yml#webview2script-webview-postmessagewithadditionalobjects-member(1)) in the JavaScript Reference.
236
236
@@ -794,7 +794,62 @@ The Save As APIs allow you to programmatically perform the **Save as** operation
###### Configure the security warning when saving a file
803
+
804
+
By listening for the `SaveFileSecurityCheckStarting` event, your app can register a handler on this event to get the file path, filename extension, and document origin URI information. You can then apply your own rules to do actions such as the following:
805
+
* Allow saving the file without presenting a default security-warning UI about the file-type policy.
806
+
* Cancel the saving.
807
+
* Create your own UI to manage runtime file-type policies.
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/release-notes/index.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ ms.date: 10/21/2024
13
13
These Release Notes provide information about new features and bug fixes that are included in the WebView2 Release SDK and the WebView2 Prerelease SDK.
14
14
15
15
<!-- this webpage covers the most recent ~5 months; periodically move oldest h2 sections from bottom of present file to archive.md. eg covers:
16
+
Oct 2024
16
17
Sep 2024
17
18
Aug 2024
18
19
Jul 2024
@@ -26,7 +27,7 @@ Feb 2024
26
27
-->
27
28
28
29
29
-
<!--
30
+
<!--
30
31
template for Release and Prerelease
31
32
omit the "Experimental APIs" section from actual Release section
32
33
-->
@@ -163,7 +164,7 @@ Added a new `SaveFileSecurityCheckStarting` event. Your app can register a hand
0 commit comments