Skip to content
Draft
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
e98ad5d
Initial draft
mikehoffms Feb 17, 2023
b9c34a2
linkfix
mikehoffms Feb 17, 2023
a6fddf4
Add tables
mikehoffms Feb 17, 2023
5c871a6
Topical TOC buckets
mikehoffms Feb 23, 2023
ddf7797
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Mar 1, 2023
bcfa65d
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Mar 3, 2023
176e5b3
Draft diagrams
mikehoffms Mar 9, 2023
21528ff
AddHostObject color
mikehoffms Mar 9, 2023
edcf400
native-side/web-side code
mikehoffms Mar 9, 2023
d76e62c
Reorg sections
mikehoffms Mar 10, 2023
84617df
Move diagram down, detail upper right
mikehoffms Mar 10, 2023
93be2bf
linkfix
mikehoffms Mar 10, 2023
1e4ecca
linkfix2
mikehoffms Mar 10, 2023
47f2572
Applied h2/h4/h6 pattern in wv2 docs
mikehoffms Mar 11, 2023
37ed9d2
Change tabs to h5 in wv2 docs
mikehoffms Mar 11, 2023
f50c324
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Mar 14, 2023
34b333d
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Mar 29, 2023
5f948a2
color diagrams
mikehoffms Mar 31, 2023
46671d5
simplify
mikehoffms Mar 31, 2023
d35342b
labeled diagrams
mikehoffms Mar 31, 2023
7d42bf4
control-runtime-sdk.png
mikehoffms Apr 4, 2023
08eb77a
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Apr 6, 2023
7ae9651
Text of full diagram
mikehoffms Apr 6, 2023
fff9e8b
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Apr 14, 2023
ed6925b
separate article for diagrams
mikehoffms Apr 14, 2023
8c9ff2f
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Apr 17, 2023
053208d
Moved content to arch page
mikehoffms Apr 18, 2023
a0f3751
linkfix
mikehoffms Apr 18, 2023
db0addb
linkfix2
mikehoffms Apr 18, 2023
4e75447
Apply suggestions from code review
Reezaali Apr 19, 2023
575c785
retitle to Components
mikehoffms Apr 19, 2023
0769e25
Talk through diagram
mikehoffms Apr 22, 2023
f986ae8
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Apr 27, 2023
eb64192
blocking extensions
mikehoffms Apr 28, 2023
7016915
Revert "blocking extensions"
mikehoffms Apr 28, 2023
4792113
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms May 3, 2023
deab4fb
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms May 3, 2023
c7121d5
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms May 17, 2023
4c28508
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms May 23, 2023
ae16e41
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms May 30, 2023
0ad4f52
Merge branch 'MicrosoftDocs:main' into user/mikehoffms/wv2-intro-diagram
mikehoffms Jun 7, 2023
a46b9b0
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Jun 9, 2023
a21f9d0
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Jun 19, 2023
d79f7a7
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Jun 20, 2023
6c7d940
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Jul 1, 2023
3912862
Merge remote-tracking branch 'upstream/main' into user/mikehoffms/wv2…
mikehoffms Jul 19, 2023
6d2ec16
Revert toc
mikehoffms Aug 4, 2023
c6d2ed4
Merge branch 'main' into pr/2450
mikehoffms Aug 11, 2023
6130440
Merge branch 'main' into pr/2450
mikehoffms Aug 19, 2023
1ad986a
Merge branch 'main' into pr/2450
mikehoffms Aug 29, 2023
e0c5418
Merge branch 'main' into pr/2450
mikehoffms Aug 31, 2023
924ec27
Merge branch 'main' into pr/2450
mikehoffms Sep 5, 2023
ea8293e
Merge branch 'main' into pr/2450
mikehoffms Sep 8, 2023
1e945f4
Merge branch 'main' into pr/2450
mikehoffms Sep 20, 2023
8777ed7
Merge branch 'main' into pr/2450
mikehoffms Sep 21, 2023
7e58c2b
Merge branch 'main' into pr/2450
mikehoffms Oct 5, 2023
61d7af2
Merge branch 'main' into pr/2450
mikehoffms Oct 24, 2023
ab15a0d
Merge branch 'main' into pr/2450
mikehoffms Nov 14, 2023
c895971
linkfix
mikehoffms Nov 14, 2023
4e77133
Merge branch 'main' into pr/2450
mikehoffms Nov 15, 2023
d986e6f
Merge branch 'main' into pr/2450
mikehoffms Nov 30, 2023
ad7ac45
Merge branch 'main' into pr/2450
mikehoffms May 1, 2025
1bd040b
yaml
mikehoffms May 1, 2025
a2980b5
normize Download section link
mikehoffms May 6, 2025
fea1b13
Merge branch 'main' into pr/2450
mikehoffms May 6, 2025
e83c4c1
Merge branch 'main' into pr/2450
mikehoffms May 14, 2025
7425f0d
Merge branch 'main' into pr/2450
mikehoffms May 21, 2025
dae5d12
Merge branch 'main' into pr/2450
mikehoffms May 27, 2025
4cdbba7
Merge branch 'main' into pr/2450
mikehoffms May 28, 2025
6ae4ff8
Merge branch 'main' into pr/2450
mikehoffms Jun 19, 2025
56a29e0
Merge branch 'main' into pr/2450
mikehoffms Jun 20, 2025
cba0099
Merge branch 'main' into pr/2450
mikehoffms Jun 24, 2025
ba2e44d
Merge branch 'main' into pr/2450
mikehoffms Jun 25, 2025
7174c1a
Merge branch 'main' into pr/2450
mikehoffms Jun 27, 2025
bee731d
Merge branch 'main' into pr/2450
mikehoffms Jun 30, 2025
ea20e46
Merge branch 'main' into pr/2450
mikehoffms Jul 1, 2025
6aa3ba9
Merge branch 'main' into pr/2450
mikehoffms Jul 3, 2025
91c526b
Merge branch 'main' into pr/2450
mikehoffms Jul 7, 2025
31d9cfd
Merge branch 'main' into pr/2450
mikehoffms Jul 10, 2025
6cb95c1
Merge branch 'main' into pr/2450
mikehoffms Jul 14, 2025
153670a
Merge branch 'main' into pr/2450
mikehoffms Jul 16, 2025
55f7c27
Merge branch 'main' into pr/2450
mikehoffms Jul 21, 2025
ade7003
Merge branch 'main' into pr/2450
mikehoffms Jul 29, 2025
5386527
Merge branch 'main' into pr/2450
mikehoffms Jul 31, 2025
21b7546
Merge branch 'main' into pr/2450
mikehoffms Aug 1, 2025
cceda3d
Merge branch 'main' into pr/2450
mikehoffms Aug 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 103 additions & 101 deletions microsoft-edge/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,14 @@
href: webview2/concepts/overview-features-apis.md
displayName:

- name: Architecture of the WebView2 platform
href: webview2/concepts/platform-architecture.md
displayName:

- name: Differences between Microsoft Edge and WebView2
href: webview2/concepts/browser-features.md
displayName:

# -----------------------------------------------------------------------------
# machine setup
- name: Set up your Dev environment for WebView2
Expand Down Expand Up @@ -1151,19 +1159,19 @@

- name: Win32 sample app
href: webview2/samples/webview2apissample.md
displayName: WebView2APISample, SampleApps, Win32 sample app # repo dir names, top-of-page title
displayName: WebView2APISample, SampleApps # repo dir names

- name: Win32 sample app with Visual Composition
href: webview2/samples/webview2samplewincomp.md
displayName: WebView2SampleWinComp, Win32 sample app with Visual Composition # repo dir name, top-of-page title
displayName: WebView2SampleWinComp # repo dir name

- name: Win32 sample WebView2Browser
href: webview2/samples/webview2browser.md
displayName: WebView2Browser # repo dir name

- name: WinUI 2 (UWP) sample app
href: webview2/samples/webview2_sample_uwp.md
displayName: webview2_sample_uwp, WinUI 2 (UWP) sample app # repo dir name, top-of-page title
displayName: webview2_sample_uwp # repo dir name

# pending, July 26 2022
# - name: WinUI 3 sample app
Expand All @@ -1172,18 +1180,17 @@

- name: WPF sample app
href: webview2/samples/webview2wpfbrowser.md
displayName: WebView2WpfBrowser, WPF sample app # repo dir name, top-of-page title
displayName: WebView2WpfBrowser # repo dir name

- name: WPF sample app with CDP
href: webview2/samples/wv2cdpextensionwpfsample.md
displayName: WV2CDPExtensionWPFSample, WPF sample app with CDP # repo dir name, top-of-page title
displayName: WV2CDPExtensionWPFSample, WPF sample app with CDP extension # repo dir name, top-of-page title

- name: WinForms sample app
href: webview2/samples/webview2windowsformsbrowser.md
displayName: WebView2WindowsFormsBrowser, WinForms sample app # repo dir name, top-of-page title

# -----------------------------------------------------------------------------
# Deployment samples
- name: Deployment samples
items:
- name: Deployment samples
Expand All @@ -1203,54 +1210,29 @@
displayName: WV2DeploymentWiXCustomActionSample # repo dir name

# -----------------------------------------------------------------------------
- name: Fundamentals
items:
- name: Differences between Microsoft Edge and WebView2
href: webview2/concepts/browser-features.md
displayName:

- name: "Main classes for WebView2: Environment, Controller, and Core"
href: webview2/concepts/environment-controller-core.md
displayName:
- name: "Main classes for WebView2: Environment, Controller, and Core"
href: webview2/concepts/environment-controller-core.md
displayName:

- name: Navigation events
href: webview2/concepts/navigation-events.md
displayName: Navigation events for WebView2 apps # top-of-page title
- name: Navigation events
href: webview2/concepts/navigation-events.md
displayName: Navigation events for WebView2 apps # top-of-page title

- name: Basic authentication
href: webview2/concepts/basic-authentication.md
displayName: auth, Basic authentication for WebView2 apps # top-of-page title
- name: Basic authentication
href: webview2/concepts/basic-authentication.md
displayName: auth, Basic authentication for WebView2 apps # top-of-page title

- name: Windowed vs. visual hosting of WebView2
href: webview2/concepts/windowed-vs-visual-hosting.md
displayName:
- name: Windowed vs. visual hosting of WebView2
href: webview2/concepts/windowed-vs-visual-hosting.md
displayName:

# -----------------------------------------------------------------------------
- name: Customization and UI
items:
- name: Custom management of network requests
href: webview2/how-to/webresourcerequested.md
displayName: WebResourceRequested, WebResourceResponseReceived

- name: Web and native interop
items:
- name: Interop of native-side and web-side code
href: webview2/how-to/communicate-btwn-web-native.md
displayName: JavaScript interop, Embed web content into native applications (JavaScript interop) # old title

- name: Call web-side code from native-side code
href: webview2/how-to/javascript.md
displayName: ExecuteScriptAsync API, Use JavaScript in WebView for extended scenarios # old title

- name: Call native-side code from web-side code
href: webview2/how-to/hostobject.md
displayName: AddHostObjectToScript, host objects

- name: Call native-side WinRT code from web-side code
href: webview2/how-to/winrt-from-js.md
displayName: AddHostObjectToScript, host objects

- name: How WinRT types and members are represented in JavaScript
href: webview2/how-to/winrt-js-conversion.md
displayName:

- name: Using frames
href: webview2/concepts/frames.md
displayName: Using frames in WebView2 apps, iframe # full title
Expand All @@ -1259,10 +1241,53 @@
href: webview2/how-to/print.md
displayName: Printing from WebView2 apps # full title

# updated h2: Experimental APIs, added a 2nd, new h3:
- name: Understand the different WebView2 SDK versions
- name: Working with local content in WebView2 apps
href: webview2/concepts/working-with-local-content.md
displayName:

# - name: Customize the UI # not needed? flatten
# items:
# - name: Customize the UI of WebView2 apps
# href: webview2/how-to/customize-ui.md
# displayName: context menu, right-click menu

- name: Customize context menus
href: webview2/how-to/context-menus.md
displayName: right-click menu, Customize context menus in WebView2 # top-of-page title

# -----------------------------------------------------------------------------
- name: Web and native interop
items:
- name: Interop of native-side and web-side code
Copy link
Collaborator Author

@mikehoffms mikehoffms Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Interop of native-side and web-side code
- name: Interop of native and web code

@aluhrs13 - Are the terms "native-side code" and "web-side code" used in the industry? Affects:

TOC article titles near "AddHostObject"
Wording in those articles.
Wording on right side of large diagram. We had -side, then removed it:

Rendered article section showing the large diagram which used to have "-side" in about 4 boxes on the right:
https://review.learn.microsoft.com/en-us/microsoft-edge/webview2/index?branch=pr-en-us-2450#overview-of-the-components-of-the-webview2-platform [⁠gh rendered]

Web searches:
https://www.bing.com/search?q=%22native-side+code%22
https://www.bing.com/search?q=%22web-side+code%22

Copy link
Collaborator Author

@mikehoffms mikehoffms Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retitled article in PR #2725

href: webview2/how-to/communicate-btwn-web-native.md
displayName: JavaScript interop, Embed web content into native applications (JavaScript interop) # old title

- name: Call web-side code from native-side code
href: webview2/how-to/javascript.md
displayName: ExecuteScriptAsync API, Use JavaScript in WebView for extended scenarios # old title

- name: Call native-side code from web-side code
href: webview2/how-to/hostobject.md
displayName: AddHostObjectToScript, host objects

- name: Call native-side WinRT code from web-side code
href: webview2/how-to/winrt-from-js.md
displayName: AddHostObjectToScript, host objects

- name: How WinRT types and members are represented in JavaScript
href: webview2/how-to/winrt-js-conversion.md
displayName:

# -----------------------------------------------------------------------------
- name: Distribution and SDK versions
items:
- name: Deployment and distribution # firstchild landing page
href: webview2/concepts/deployment-distribution.md
displayName: Manage WebView2 applications # old title

- name: Prerelease and release SDKs for WebView2
href: webview2/concepts/versioning.md
displayName: Understand WebView2 SDK versions # old title
displayName: experimental APIs, Understand the different WebView2 SDK versions # old title

# update needed?
- name: Test upcoming APIs and features
Expand All @@ -1273,13 +1298,37 @@
href: webview2/concepts/distribution.md
displayName:

- name: Working with local content in WebView2 apps
href: webview2/concepts/working-with-local-content.md
displayName:
- name: Enterprise management of WebView2 Runtimes
href: webview2/concepts/enterprise.md
displayName: Manage WebView2 applications # old title

- name: Distribute an app as a single executable file
href: webview2/how-to/static.md
displayName: Statically link the WebView2 loader library, single-file app # old title

- name: Publish a UWP WebView2 app to the Microsoft Store
href: webview2/how-to/publish-uwp-app-store.md
displayName: Partner Center, Microsoft Store

# -----------------------------------------------------------------------------
- name: Debug WebView2 apps
items:
- name: Testing and best practices
items:
- name: Development best practices
href: webview2/concepts/developer-guide.md
displayName: Development best practices for WebView2 apps # top-of-page title

- name: Develop secure WebView2 apps
href: webview2/concepts/security.md
displayName:

- name: Use the Chrome DevTools Protocol
href: webview2/how-to/chromium-devtools-protocol.md
displayName: Use the Chrome DevTools Protocol in WebView2 # old title

- name: Automate and test with Microsoft Edge WebDriver
href: webview2/how-to/webdriver.md
displayName: Automate and test WebView2 apps with Microsoft Edge WebDriver # top-of-page title

- name: Debug WebView2 apps
href: webview2/how-to/debug.md
displayName:
Expand Down Expand Up @@ -1332,53 +1381,6 @@
displayName:

# -----------------------------------------------------------------------------
- name: Advanced Topics and Best Practices
items:
- name: Development best practices
href: webview2/concepts/developer-guide.md
displayName: Development best practices for WebView2 apps # top-of-page title

- name: Develop secure WebView2 apps
href: webview2/concepts/security.md
displayName:

# - name: Customize the UI # not needed? flatten
# items:
# - name: Customize the UI of WebView2 apps
# href: webview2/how-to/customize-ui.md
# displayName: context menu, right-click menu

- name: Customize context menus
href: webview2/how-to/context-menus.md
displayName: right-click menu, Customize context menus in WebView2 # top-of-page title

- name: Use the Chrome DevTools Protocol
href: webview2/how-to/chromium-devtools-protocol.md
displayName: Use the Chrome DevTools Protocol in WebView2 # old title

- name: Automate and test with Microsoft Edge WebDriver
href: webview2/how-to/webdriver.md
displayName: Automate and test WebView2 apps with Microsoft Edge WebDriver # top-of-page title

# -----------------------------------------------------------------------------
- name: Deployment and distribution
items:
- name: Deployment and distribution # new firstchild page
href: webview2/concepts/deployment-distribution.md
displayName: Manage WebView2 applications # old title

- name: Enterprise management of WebView2 Runtimes
href: webview2/concepts/enterprise.md
displayName: Manage WebView2 applications # old title

- name: Distribute an app as a single executable file
href: webview2/how-to/static.md
displayName: Statically link the WebView2 loader library, single-file app # old title

- name: Publish a UWP WebView2 app to the Microsoft Store
href: webview2/how-to/publish-uwp-app-store.md
displayName: Partner Center, Microsoft Store

- name: Release Notes for the WebView2 SDK
href: webview2/release-notes.md
displayName: what's new, announcements
Expand Down
5 changes: 4 additions & 1 deletion microsoft-edge/webview2/code-samples-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ ms.prod: microsoft-edge
ms.technology: webview
ms.date: 08/29/2022
---
# Sample apps
# WebView2 Sample apps

This page is specifically about the code-rich platform sample apps within the Samples repo. For the finished Getting Started article projects (minimal code) which are also at the Samples repo, see [Getting Started tutorials](./get-started/get-started.md).


Sample apps that use WebView2 are available in the [WebView2Samples repo](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/SampleApps), for various frameworks or platforms.

Expand Down
15 changes: 8 additions & 7 deletions microsoft-edge/webview2/concepts/basic-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ For more realistic code, see the subsequent section.

<!-- ------------------------------ -->

# [C#](#tab/csharp)
##### [C#](#tab/csharp)

```csharp
// Prerequisite: Before using this code, make sure you read the section "Use HTTPS
Expand All @@ -132,7 +132,7 @@ For more realistic code, see the subsequent section.

<!-- ------------------------------ -->

# [C++](#tab/cpp)
##### [C++](#tab/cpp)

```cpp
// Prerequisite: Before using this code, make sure you read the section "Use HTTPS
Expand Down Expand Up @@ -186,7 +186,7 @@ This example builds upon the above sample, by adding the following features:

<!-- ------------------------------ -->

# [C#](#tab/csharp)
##### [C#](#tab/csharp)

```csharp
// Prerequisite: Before using this code, make sure you read the section "Use HTTPS
Expand Down Expand Up @@ -263,7 +263,7 @@ webView.CoreWebView2.BasicAuthenticationRequested += delegate (

<!-- ------------------------------ -->

# [C++](#tab/cpp)
##### [C++](#tab/cpp)

```cpp
// Prerequisite: Before using this code, make sure you read the section "Use HTTPS
Expand Down Expand Up @@ -394,7 +394,8 @@ As a part of navigation, the WebView2 control renders the corresponding page (th
For more information, see [Navigation events for WebView2 apps](navigation-events.md).


### Navigations for basic authentication
<!-- ------------------------------ -->
#### Navigations for basic authentication

There are two kinds of navigations in the flow:
* A "server requested authentication" navigation.
Expand Down Expand Up @@ -422,15 +423,15 @@ Navigation `event args` has a property: the `NavigationId`. The `NavigationId`

<!-- ------------------------------ -->

# [C#](#tab/csharp)
##### [C#](#tab/csharp)

* [CoreWebView2BasicAuthenticationRequestedEventArgs Class](/dotnet/api/microsoft.web.webview2.core.corewebview2basicauthenticationrequestedeventargs)
* [CoreWebView2.BasicAuthenticationRequested Event](/dotnet/api/microsoft.web.webview2.core.corewebview2.basicauthenticationrequested)
* [CoreWebView2Deferral Class](/dotnet/api/microsoft.web.webview2.core.corewebview2deferral)

<!-- ------------------------------ -->

# [C++](#tab/cpp)
##### [C++](#tab/cpp)

* [ICoreWebView2BasicAuthenticationRequestedEventArgs interface](/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs)
* [add_BasicAuthenticationRequested method](/microsoft-edge/webview2/reference/win32/icorewebview2_10#add_basicauthenticationrequested)
Expand Down
Loading