Skip to content

Commit e41d57f

Browse files
authored
Update UpdateRuntime.md
1 parent e0325a0 commit e41d57f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

specs/UpdateRuntime.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ The new version of an app might require a newer version of Edge WebView2 Runtime
33

44
An app updater may wish to ensure that a particular minimum version of the Edge WebView2 Runtime is installed before upgrading the app to a version that requires those features.
55

6-
Alternatively, the newer version of the app could use feature detection to disable portions of the app that rely on new WebView2 Runtime features. In this alternate scenario, the app updater would install the new version of the app immediately, and then request that the Edge WebView2 Runtime be updated, so that the updated app can start taking advantage of the new features.
6+
Alternatively, the newer version of the app could use feature detection to disable portions of the app that rely on new WebView2 Runtime features. In this alternate scenario, the app updater would install the new version of the app immediately, and then request that the Edge WebView2 Runtime be updated, so that the updated app can start taking advantage of the new features once the Edge WebView2 Runtime is updated.
77

88
Edge WebView2 Runtime is auto updated and normally the latest version should be already installed. However, there could be cases that we need trigger Edge WebView2 Runtime
99
update to ensure coordinated app and WebView2 Runtime update.
1010

1111
# Description
12-
You may call the `UpdateRuntime` API to check and install updates to installed Edge WebView2 Runtime. This is useful when the app wants to coordinate app and
12+
You may call the `UpdateRuntime` API to check and install updates for the installed Edge WebView2 Runtime. This is useful when the app wants to coordinate app and
1313
Edge WebView2 Runtime update.
1414

1515
# Examples
@@ -158,7 +158,7 @@ interface ICoreWebView2ExperimentalUpdateRuntimeResult : IUnknown {
158158
159159
/// The caller implements this interface to receive the UpdateRuntime result.
160160
[uuid(F1D2D722-3721-499C-87F5-4C405260697A), object, pointer_default(unique)]
161-
interface ICoreWebView2ExperimentalTryUpdateRuntimeCompletedHandler : IUnknown {
161+
interface ICoreWebView2ExperimentalUpdateRuntimeCompletedHandler : IUnknown {
162162
163163
/// Provides the result for the UpdateRuntime operation.
164164
/// `errorCode` will be S_OK if the update operation can be performed
@@ -200,6 +200,10 @@ interface ICoreWebView2ExperimentalEnvironment3 : IUnknown {
200200
/// `HRESULT_FROM_WIN32(ERROR_BUSY)`. To protect accidental abuse of the update
201201
/// service, the implementation throttles the calls of this API to 3 times within
202202
/// 5 minutes in a process. Throttling limit can change in the future.
203+
/// Edge update service can only support one update request at a time globally.
204+
/// If there is already an update operation running in the Edge update service,
205+
// UpdateRuntime request will result in the completed handler being invoked with a
206+
/// result that has `Status` of `COREWEBVIEW2_UPDATE_RUNTIME_STATUS_INSTALL_ALREADY_RUNNING`.
203207
/// The UpdateRuntime operation is associated with the CoreWebView2Environment
204208
/// object and any ongoing UpdateRuntime operation will be aborted when the
205209
/// associated CoreWebView2Environment along with the CoreWebView2 objects that
@@ -208,7 +212,7 @@ interface ICoreWebView2ExperimentalEnvironment3 : IUnknown {
208212
/// result object with `Status` of COREWEBVIEW2_UPDATE_RUNTIME_STATUS_FAILED and
209213
/// `ExtendedError` as `E_ABORT`.
210214
HRESULT UpdateRuntime(
211-
[in] ICoreWebView2ExperimentalTryUpdateRuntimeCompletedHandler *
215+
[in] ICoreWebView2ExperimentalUpdateRuntimeCompletedHandler *
212216
handler);
213217
}
214218

0 commit comments

Comments
 (0)