String::startsWith(null) returns false. StringView::startsWith(null) returns true. Both startsWith(emptyString) returns true.
Created attachment 393975 [details] Patch
Comment on attachment 393975 [details] Patch I’m amazed. No one depended on the old behavior!?
(In reply to Darin Adler from comment #2) > Comment on attachment 393975 [details] > Patch > > I’m amazed. No one depended on the old behavior!? I was surprised too. Looking at our code base though, most of startsWith use null terminated strings as prefix so will not end up in that particular case.
Committed r258828: <https://trac.webkit.org/changeset/258828> All reviewed patches have been landed. Closing bug and clearing flags on attachment 393975 [details].
<rdar://problem/60764657>