Skip to content

Commit ab8420c

Browse files
authored
Merge pull request #2896 from mikehoffms/user/mikehoffms/dmc-to-lmc
Changed docs.microsoft.com to learn.microsoft.com
2 parents 240d575 + 4794d2f commit ab8420c

17 files changed

+39
-39
lines changed

specs/BrowserProcessExited.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ is that `BrowserProcessExited` is raised for any **browser process** exit
278278
`ProcessFailed` is raised for **unexpected** process exits of any kind (browser,
279279
render, GPU, and all other types), or for main frame **render process**
280280
unresponsiveness. To learn more about the WebView2 Process Model, go to
281-
[Process model](https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/process-model).
281+
[Process model](https://learn.microsoft.com/microsoft-edge/webview2/concepts/process-model).
282282

283283
In the case the browser process crashes, both `BrowserProcessExited` and
284284
`ProcessFailed` events are raised, but the order is not guaranteed.
@@ -318,7 +318,7 @@ interface ICoreWebView2Environment3 : ICoreWebView2Environment2
318318
/// due to browser process failure or normal shutdown (for example, when all
319319
/// associated WebViews are closed), after all resources have been released
320320
/// (including the user data folder). To learn about what these processes are,
321-
/// go to [Process model](https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/process-model).
321+
/// go to [Process model](https://learn.microsoft.com/microsoft-edge/webview2/concepts/process-model).
322322
///
323323
/// A handler added with this method is called until removed with
324324
/// `remove_BrowserProcessExited`, even if a new browser process is bound to
@@ -344,7 +344,7 @@ interface ICoreWebView2Environment3 : ICoreWebView2Environment2
344344
/// **unexpected** process exits of any kind (browser, render, GPU, and all
345345
/// other types), or for main frame **render process** unresponsiveness. To
346346
/// learn more about the WebView2 Process Model, go to
347-
/// [Process model](https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/process-model).
347+
/// [Process model](https://learn.microsoft.com/microsoft-edge/webview2/concepts/process-model).
348348
///
349349
/// In the case the browser process crashes, both `BrowserProcessExited` and
350350
/// `ProcessFailed` events are raised, but the order is not guaranteed. These
@@ -408,7 +408,7 @@ namespace Microsoft.Web.WebView2.Core
408408
/// terminate due to browser process failure or normal shutdown (for example,
409409
/// when all associated WebViews are closed), after all resources have been
410410
/// released (including the user data folder). To learn about what these processes
411-
/// are, go to [Process model](https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/process-model).
411+
/// are, go to [Process model](https://learn.microsoft.com/microsoft-edge/webview2/concepts/process-model).
412412
///
413413
/// Multiple app processes can share a browser process by creating their webviews
414414
/// from a `CoreWebView2Environment` with the same user data folder. When the entire
@@ -429,7 +429,7 @@ namespace Microsoft.Web.WebView2.Core
429429
/// `ProcessFailed` is raised for **unexpected** process exits of any kind (browser,
430430
/// render, GPU, and all other types), or for main frame **render process**
431431
/// unresponsiveness. To learn more about the WebView2
432-
/// Process Model, go to [Process model](https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/process-model).
432+
/// Process Model, go to [Process model](https://learn.microsoft.com/microsoft-edge/webview2/concepts/process-model).
433433
///
434434
/// In the case the browser process crashes, both `BrowserProcessExited` and
435435
/// `ProcessFailed` events are raised, but the order is not guaranteed. These

specs/CDPSessionIdSupport.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ See [DevToolsProtocol Target domain](https://chromedevtools.github.io/devtools-p
1010

1111
The DevToolsProtocol event messages also have sessionId field to indicate which target the event comes from.
1212

13-
However, the current WebView2 DevToolsProtocol APIs like [CallDevToolsProtocolMethod](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#calldevtoolsprotocolmethod)
14-
and [DevToolsProtocolEventReceived](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceivedeventargs)
13+
However, the current WebView2 DevToolsProtocol APIs like [CallDevToolsProtocolMethod](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2#calldevtoolsprotocolmethod)
14+
and [DevToolsProtocolEventReceived](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceivedeventargs)
1515
don't support sessionId.
1616

1717
To support interaction with different parts of the page, we allow apps to specify a sessionId when calling DevToolsProtocol methods, as well as passing a sessionId to DevToolsProtocol event handlers, with empty string sessionId representing the default target of the top page.

specs/DOMContentLoaded.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Background
22

3-
In response to consumers' requests for an event similar to the old [WebView DOMContentLoaded](https://docs.microsoft.com/en-us/microsoft-edge/hosting/webview#mswebviewdomcontentloaded), the WebView2 team has introduced DOMContentLoaded API which indicates that the main DOM elements have finished loading.
3+
In response to consumers' requests for an event similar to the old [WebView DOMContentLoaded](https://learn.microsoft.com/microsoft-edge/hosting/webview#mswebviewdomcontentloaded), the WebView2 team has introduced DOMContentLoaded API which indicates that the main DOM elements have finished loading.
44
In this document we describe the new API. We'd appreciate your feedback.
55

66
# Description

specs/DefaultDownloadDialog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ position below your button, and alternating open and close calls when the button
1111
clicked on.
1212

1313
For more complex customizations, you can use the Download APIs -
14-
[DownloadStarting](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs?view=webview2-1.0.961.33)
15-
and [DownloadOperation](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation?view=webview2-1.0.961.33) - to build custom download UI.
14+
[DownloadStarting](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs?view=webview2-1.0.961.33)
15+
and [DownloadOperation](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation?view=webview2-1.0.961.33) - to build custom download UI.
1616

1717
# Examples
1818
```cpp

specs/DisableCrashReporting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ interface ICoreWebView2Environment11 : ICoreWebView2Environment10 {
9898
/// `FailureReportFolderPath` get the folder path of where minidump files is written.
9999
/// Whenever a WebView2 process crashes, a crash dump file will be created in the crash dump folder.
100100
/// A crash dump format is minidump files, please see
101-
/// https://docs.microsoft.com/en-us/windows/win32/debug/minidump-files for detailed documentation.
101+
/// https://learn.microsoft.com/windows/win32/debug/minidump-files for detailed documentation.
102102
/// Normally when a single child process failed, a minidump will be generated and written to disk,
103103
/// then `ProcessFailed` event is raised. But for unexpected crashes, minidump might not be generated
104104
/// at all, despite whether `ProcessFailed` event is raised. For times, that there are multiple

specs/ExecuteScriptWithResult.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Background
2-
Our end developers have pointed out gaps in the existing [CoreWebView2.ExecuteScript](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.1150.38#executescript) method, and it is necessary
2+
Our end developers have pointed out gaps in the existing [CoreWebView2.ExecuteScript](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.1150.38#executescript) method, and it is necessary
33
to provide a new method to let our end developers get more information in a more convenient manner.
44
The new ExecuteScriptWithResult method will provide exception information if the executed script
55
failed, and provides a new method to try to get the script execution result as a string rather than as JSON
@@ -284,7 +284,7 @@ interface ICoreWebView2_10 : ICoreWebView2_9 {
284284
```
285285

286286
## .NET and WinRT
287-
The documentation for the old interface [CoreWebView2.ExecuteScriptAsync(String) Method](https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.executescriptasync?view=webview2-dotnet-1.0.1150.38#microsoft-web-webview2-core-corewebview2-executescriptasync(system-string)) is here.
287+
The documentation for the old interface [CoreWebView2.ExecuteScriptAsync(String) Method](https://learn.microsoft.com/dotnet/api/microsoft.web.webview2.core.corewebview2.executescriptasync?view=webview2-dotnet-1.0.1150.38#microsoft-web-webview2-core-corewebview2-executescriptasync(system-string)) is here.
288288
```c#
289289
namespace Microsoft.Web.WebView2.Core
290290
{

specs/ExtendedProcessFailed.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Background
2-
WebView2 provides applications with the [ProcessFailed](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.705.50#add_processfailed) event so they can react accordingly when a process failure occurs. However, this event does not currently provide additional information about the process failure, nor does it cover the cases in which only subframes within the CoreWebView2 are impacted by the failure, or the cases in which a process other than the browser/render process fails.
2+
WebView2 provides applications with the [ProcessFailed](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.705.50#add_processfailed) event so they can react accordingly when a process failure occurs. However, this event does not currently provide additional information about the process failure, nor does it cover the cases in which only subframes within the CoreWebView2 are impacted by the failure, or the cases in which a process other than the browser/render process fails.
33

4-
In this document we describe an extended version of the [PROCESS_FAILED_KIND](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.705.50#corewebview2_process_failed_kind) enum, which covers the new scenarios in which the event is raised: frame-only render process failure, and process failures for processes other than the browser/render process. We also include a new version of the [ProcessFailedEventArgs](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs?view=webview2-1.0.705.50) that enables the host application to collect additional information about the process failure for their logging and telemetry purposes.
4+
In this document we describe an extended version of the [PROCESS_FAILED_KIND](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.705.50#corewebview2_process_failed_kind) enum, which covers the new scenarios in which the event is raised: frame-only render process failure, and process failures for processes other than the browser/render process. We also include a new version of the [ProcessFailedEventArgs](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs?view=webview2-1.0.705.50) that enables the host application to collect additional information about the process failure for their logging and telemetry purposes.
55

66
The updated API is detailed below. We'd appreciate your feedback.
77

@@ -394,7 +394,7 @@ void WebView_ProcessFailed(object sender, CoreWebView2ProcessFailedEventArgs e)
394394
bool IsAppContentUri(Uri source)
395395
{
396396
// Sample virtual host name for the app's content.
397-
// See CoreWebView2.SetVirtualHostNameToFolderMapping: https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.setvirtualhostnametofoldermapping
397+
// See CoreWebView2.SetVirtualHostNameToFolderMapping: https://learn.microsoft.com/dotnet/api/microsoft.web.webview2.core.corewebview2.setvirtualhostnametofoldermapping
398398
return source.Host == "appassets.example";
399399
}
400400

specs/IFramePermissionRequested.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ within the iframe are requesting access to priveleged resources. The permission
55
request types that we support are: Microphone, Camera, Geolocation,
66
Notifications, Other Sensors, and Clipboard Read.
77

8-
We currently have a [PermissionRequested](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs?view=webview2-1.0.1020.30)
8+
We currently have a [PermissionRequested](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs?view=webview2-1.0.1020.30)
99
event on our `CoreWebView2` which is raised for any permission requests
1010
(either from webview or iframes). However, our customers do not have a way to
1111
determine whether the request has come from the webview or an iframe and

specs/IsPinchZoomEnabled.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Background
22

33
There are two types of zoom in Chromium: Browser Zoom and Pinch-Zoom:
4-
- Browser zoom, referred to as “Page Zoom” or “Zoom” more generally, is what we get by using Ctrl + +(plus) or – (minus) or Ctrl + Mousewheel. This changes the size of a CSS pixel relative to a device independent pixel and so it will cause page layout to change. End developers can programmatically change browser Zoom properties including [IsZoomControlEnabled](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings?view=webview2-1.0.774.44#get_iszoomcontrolenabled) and [ZoomFactor](https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller?view=webview2-1.0.774.44#get_zoomfactor). Setting ZoomFactor property causes the layout to change and enables scroll bar which lets users interact with the zoomed in content using mouse.
4+
- Browser zoom, referred to as “Page Zoom” or “Zoom” more generally, is what we get by using Ctrl + +(plus) or – (minus) or Ctrl + Mousewheel. This changes the size of a CSS pixel relative to a device independent pixel and so it will cause page layout to change. End developers can programmatically change browser Zoom properties including [IsZoomControlEnabled](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2settings?view=webview2-1.0.774.44#get_iszoomcontrolenabled) and [ZoomFactor](https://learn.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2controller?view=webview2-1.0.774.44#get_zoomfactor). Setting ZoomFactor property causes the layout to change and enables scroll bar which lets users interact with the zoomed in content using mouse.
55
- Pinch-zoom, referred to as “Page Scale” zoom, is performed as a post-rendering step, it changes the page scale factor property and scales the surface the web page is rendered onto when user perfoms a pinch zooming action. It does not change the layout but rather changes the viewport and clips the web content, the content outside of the viewport isn't visible onscreen and users can't reach this content using mouse.
66

77
Currently, the first type of zoom control is supported in WebView2 and modifying it has no effect on page scale zoom.

specs/MultiProfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ interface ICoreWebView2Profile3;
276276
interface ICoreWebView2ControllerOptions : IUnknown {
277277
/// The `ProfileName` property specifies the profile's name. It has a maximum length of 64
278278
/// characters excluding the null terminator and must be a valid file name.
279-
/// See [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file)
279+
/// See [Naming Files, Paths, and Namespaces](https://learn.microsoft.com/windows/win32/fileio/naming-a-file)
280280
/// for more information on file names. It must contain only the following ASCII characters:
281281
///
282282
/// * alphabet characters: a-z and A-Z

0 commit comments

Comments
 (0)