Skip to content

Commit b22505f

Browse files
author
Maura Winstanley
committed
update idl section
1 parent 960a31e commit b22505f

1 file changed

Lines changed: 20 additions & 31 deletions

File tree

specs/Autofill.md

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ In this document we describe the updated API. We'd appreciate your feedback.
66

77
# Description
88

9-
Autofilling has three components
10-
* Autostuffing - Filling the corresponding form fields automatically on page load
11-
* Suggesting - When the user clicks on the form field, drop down suggestions of previously saved forms will be displayed
12-
* Populating - When clicking on one of the suggestions, the form data will populate the respective fields
9+
Autofill has three components
10+
* Auto-populate - Populate the corresponding form fields automatically on page load.
11+
* Suggest - When the user clicks on the form field, drop down suggestions of previously saved forms will be displayed.
12+
* Populate - When clicking on one of the suggestions, the form data will populate the respective fields.
1313

1414

1515
# Examples
@@ -28,7 +28,7 @@ void SettingsComponent::ToggleGeneralAutofill() {
2828
wil::com_ptr<ICoreWebView2Settings2_2> settings;
2929
webView->get_Settings(&settings);
3030
bool enabled;
31-
settings->get_IsGeneralAutofillEnabled(&enabled)
31+
settings->get_IsGeneralAutofillEnabled(&enabled);
3232
settings->put_IsGeneralAutofillEnabled(!enabled);
3333
}
3434
```
@@ -54,30 +54,6 @@ private void ToggleGeneralAutofill(CoreWebView2 sender, CoreWebView2NavigationSt
5454
```
5555

5656

57-
# Remarks
58-
The two types of autofill preferences behave differently when toggling between enable and disable.
59-
If general autofill is enabled:
60-
* General data will be saved
61-
* Upon clicking on the form field, suggestions will appear.
62-
* Clicking on one of the suggestions will populate the corresponding fields.
63-
64-
If general autofill is disabled
65-
* No new general data will be saved.
66-
* Upon clicking on the form field, suggestions will not appear.
67-
68-
If password autofill is enabled
69-
* Password data will be autostuffed.
70-
* Upon clicking on the form field, suggestions will appear.
71-
* Clicking on one of the suggestions will populate the corresponding fields.
72-
* Upon submitting the password data, a save password prompt will be displayed that will give the user the option to save or update the password data. If the user selects `Yes`, the new password data will be saved or updated depending on if they have previously entered password data while password autofill is enabled.
73-
74-
If password autofill is disabled
75-
* The password data will be autostuffed.
76-
* Upon clicking on the form field, suggestions will appear.
77-
* Clicking on one of the suggestions will populate the corresponding fields.
78-
* Upon submitting the password data, no save password prompt will be displayed and no password information is saved or updated.
79-
80-
8157
# API Notes
8258
See [API Details](#api-details) section below for API reference.
8359

@@ -88,13 +64,26 @@ interface ICoreWebView2Settings2_2
8864
8965
[uuid(f051013e-4bb3-46b2-b6e4-6ee3fe4f43c2), object, pointer_default(unique)]
9066
interface ICoreWebView2Settings2_2 : ICoreWebView2Settings2 {
91-
/// IsPasswordAutofillEnabled controls whether autofill for passwords is enabled.
67+
/// IsPasswordAutofillEnabled controls whether autofill for password
68+
/// information is enabled. The isPasswordAutofillEnabled property behaves
69+
/// independently of the isGeneralAutofillEnabled property. When
70+
/// isPasswordAutofillEnabled is false, password information is auto-populated,
71+
/// suggestions are shown and clicking on one will populate the fields,
72+
/// but no new data is saved and no Save/Update Password prompts are displayed.
73+
/// When isPasswordAutofillEnabled is true, password information is auto-populated,
74+
/// suggestions are shown and clicking on one will populate the fields, new data
75+
/// is saved, and a Save/Update Password prompt is displayed.
9276
/// The default value is `FALSE`.
9377
[propget] HRESULT IsPasswordAutofillEnabled([out, retval] BOOL* isPasswordAutofillEnabled);
9478
// Set the IsPasswordAutofillEnabled property.
9579
[propput] HRESULT IsPasswordAutofillEnabled([in] BOOL isPasswordAutofillEnabled);
9680
97-
/// IsGeneralAutofillEnabled controls whether general autofill is enabled.
81+
/// IsGeneralAutofillEnabled controls whether autofill for information
82+
/// like names, street and email addresses, phone numbers, and aribtrary input
83+
/// is enabled. This excludes password information. When isGeneralAutofillEnabled
84+
/// is false, no suggestions appear, and no new information is saved.
85+
/// When isGeneralAutofillEnabled is true, information is saved, suggestions appear
86+
/// and clicking on one will populate the form fields.
9887
/// The default value is `TRUE`.
9988
[propget] HRESULT IsGeneralAutofillEnabled([out, retval] BOOL* isGeneralAutofillEnabled);
10089
/// Set the IsGeneralAutofillEnabled property.

0 commit comments

Comments
 (0)