Bug 235256 - When a “autofilled and obscured” field becomes empty, turn “autofilled and obscured” off
Summary: When a “autofilled and obscured” field becomes empty, turn “autofilled and ob...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-14 15:03 PST by Ellie Epskamp-Hunt
Modified: 2022-03-17 12:04 PDT (History)
9 users (show)

See Also:


Attachments
Patch (5.53 KB, patch)
2022-03-16 11:47 PDT, Ellie Epskamp-Hunt
no flags Details | Formatted Diff | Diff
Patch (5.68 KB, patch)
2022-03-16 13:33 PDT, Ellie Epskamp-Hunt
no flags Details | Formatted Diff | Diff
Patch (13.02 KB, patch)
2022-03-16 16:23 PDT, Ellie Epskamp-Hunt
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ellie Epskamp-Hunt 2022-01-14 15:03:44 PST
When a “autofilled and obscured” field becomes empty, turn “autofilled and obscured” off
Comment 1 Ellie Epskamp-Hunt 2022-01-14 15:04:55 PST
<rdar://86244109>
Comment 2 Ellie Epskamp-Hunt 2022-03-16 11:47:19 PDT
Created attachment 454872 [details]
Patch
Comment 3 Devin Rousso 2022-03-16 11:52:57 PDT
Comment on attachment 454872 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=454872&action=review

r=me

> Source/WebCore/html/HTMLInputElement.cpp:1148
>      if (m_isAutoFilledAndViewable && value.isEmpty())
>          setAutoFilledAndViewable(false);

Did you mean to delete this now that it's also done below?

> LayoutTests/fast/forms/input-autofilled-and-obscured.html:34
> +        document.execCommand("Delete");

Could/Should we also tests things like `tf.value = ""` or `tf.form.reset()`?
Comment 4 Ellie Epskamp-Hunt 2022-03-16 12:03:28 PDT
(In reply to Devin Rousso from comment #3)
> Comment on attachment 454872 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=454872&action=review
> 
> r=me
> 
> > Source/WebCore/html/HTMLInputElement.cpp:1148
> >      if (m_isAutoFilledAndViewable && value.isEmpty())
> >          setAutoFilledAndViewable(false);
> 
> Did you mean to delete this now that it's also done below?

I sure did.

> 
> > LayoutTests/fast/forms/input-autofilled-and-obscured.html:34
> > +        document.execCommand("Delete");
> 
> Could/Should we also tests things like `tf.value = ""` or `tf.form.reset()`?

Sure, I can verify that the text field is actually empty at this point.
Comment 5 Ellie Epskamp-Hunt 2022-03-16 13:33:26 PDT
Created attachment 454889 [details]
Patch
Comment 6 Ellie Epskamp-Hunt 2022-03-16 16:23:15 PDT
Created attachment 454909 [details]
Patch
Comment 7 EWS 2022-03-17 12:04:01 PDT
Committed r291426 (248552@main): <https://commits.webkit.org/248552@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454909 [details].