@@ -194,7 +194,7 @@ Task<bool> IsUserSignedInToContoso()
194194 if (cookie.Name == "is_signed_in")
195195 {
196196 return cookie.Value == "1";
197- }
197+ }
198198 }
199199 return false;
200200}
@@ -222,7 +222,7 @@ In this scenario, the host application clears the remembered user ID because the
222222
223223``` csharp
224224void ClearRememberedUserId ()
225- {
225+ {
226226 CoreWebView2CookieManager cookieManager = webView .CoreWebView2 .CookieManager ;
227227 cookieManager .DeleteCookiesWithNameAndPath (" last_userid" , " https://contoso.com" , " /" );
228228}
@@ -239,7 +239,7 @@ Task ClearNonContosoCookies()
239239 List < CoreWebView2Cookie > cookieList =
240240 await webView .CoreWebView2 .CookieManager .GetCookiesAsync (null );
241241 foreach (CoreWebView2Cookie cookie in cookieList )
242- {
242+ {
243243 if (cookie .Domain != " contoso.com" ) cookieManager .DeleteCookie (cookie );
244244 }
245245}
@@ -359,7 +359,7 @@ interface ICoreWebView2CookieManager : IUnknown {
359359 /// One can set other optional properties after cookie creation.
360360 /// This only creates a cookie object and it is not added to the cookie
361361 /// manager until you call AddOrUpdateCookie.
362- /// name that starts with whitespace(s) is not allowed.
362+ /// Leading or trailing whitespace(s), empty string, and special characters are not allowed for name .
363363 /// See ICoreWebView2Cookie for more details.
364364 HRESULT CreateCookie(
365365 [in] LPCWSTR name,
@@ -393,8 +393,8 @@ interface ICoreWebView2CookieManager : IUnknown {
393393
394394 /// Deletes cookies with matching name and uri.
395395 /// Cookie name is required.
396- /// If uri is specified, deletes all cookies with the given name where domain
397- /// and path match provided URI.
396+ /// All cookies with the given name where domain
397+ /// and path match provided URI are deleted .
398398 HRESULT DeleteCookies([in] LPCWSTR name, [in] LPCWSTR uri);
399399
400400 /// Deletes cookies with matching name and domain/path pair.
0 commit comments