RESOLVED FIXED 215757
Make window.find not default the search string to undefined
https://bugs.webkit.org/show_bug.cgi?id=215757
Summary Make window.find not default the search string to undefined
Rob Buis
Reported 2020-08-23 06:18:25 PDT
Make window.find not default the search string to undefined, instead use the null string. Before this change window.find() would find a hit in a page containing the text string "undefined".
Attachments
Patch (7.04 KB, patch)
2020-08-23 06:21 PDT, Rob Buis
no flags
Patch (6.58 KB, patch)
2020-08-23 06:23 PDT, Rob Buis
no flags
Patch (4.17 KB, patch)
2020-08-24 02:04 PDT, Rob Buis
no flags
Patch (4.23 KB, patch)
2020-08-24 02:42 PDT, Rob Buis
no flags
Rob Buis
Comment 1 2020-08-23 06:21:11 PDT
Rob Buis
Comment 2 2020-08-23 06:23:22 PDT
Darin Adler
Comment 3 2020-08-23 11:32:19 PDT
Comment on attachment 407070 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407070&action=review > LayoutTests/ChangeLog:10 > + Add tests to verify window.find() does not use "undefined" > + as text string. This also fixes the logic of the test to > + not always output PASS at the end. Downside to these changes is that now it will only report a single failure. The ideal version would report all the failures to help the person who broke things get an overview of what’s wrong.
Rob Buis
Comment 4 2020-08-24 02:04:07 PDT
Rob Buis
Comment 5 2020-08-24 02:42:01 PDT
Rob Buis
Comment 6 2020-08-24 05:19:44 PDT
Comment on attachment 407070 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407070&action=review >> LayoutTests/ChangeLog:10 >> + not always output PASS at the end. > > Downside to these changes is that now it will only report a single failure. The ideal version would report all the failures to help the person who broke things get an overview of what’s wrong. You are right, my new version only reports the "success" message if there was no fail call at all.
EWS
Comment 7 2020-08-24 05:29:29 PDT
Committed r266054: <https://trac.webkit.org/changeset/266054> All reviewed patches have been landed. Closing bug and clearing flags on attachment 407093 [details].
Radar WebKit Bug Importer
Comment 8 2020-08-24 05:30:24 PDT
Note You need to log in before you can comment on or make changes to this bug.