Bug 222524

Summary: Restoring App Highlight crashes if no range is found.
Product: WebKit Reporter: Megan Gardner <megan_gardner>
Component: New BugsAssignee: Megan Gardner <megan_gardner>
Status: RESOLVED FIXED    
Severity: Normal CC: info, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Megan Gardner 2021-02-27 23:23:05 PST
Restoring App Highlight crashes if no range is found.
Comment 1 Megan Gardner 2021-02-27 23:25:10 PST
Created attachment 421766 [details]
Patch
Comment 2 Tim Horton 2021-02-28 01:24:30 PST
Comment on attachment 421766 [details]
Patch

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

> Source/WebCore/Modules/highlight/AppHighlightStorage.cpp:243
> +    if (range)

what is the bool return value of this method for? If it’s “did restoration succeed”, perhaps you should return false here?
Comment 3 Megan Gardner 2021-03-01 08:47:10 PST
Created attachment 421831 [details]
Patch for landing
Comment 4 EWS 2021-03-01 09:36:23 PST
Committed r273654: <https://commits.webkit.org/r273654>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421831 [details].
Comment 5 Radar WebKit Bug Importer 2021-03-01 09:37:48 PST
<rdar://problem/74874015>
Comment 6 Anne 2021-03-09 23:57:29 PST Comment hidden (spam)