Bug 228929 - Don't instantiate a SYNotesActivationObserver to just say that it's not active or visible.
Summary: Don't instantiate a SYNotesActivationObserver to just say that it's not activ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Megan Gardner
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-09 15:45 PDT by Megan Gardner
Modified: 2021-08-10 10:40 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.93 KB, patch)
2021-08-09 15:48 PDT, Megan Gardner
wenson_hsieh: review+
Details | Formatted Diff | Diff
Patch (1.91 KB, patch)
2021-08-09 16:25 PDT, Megan Gardner
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Megan Gardner 2021-08-09 15:45:57 PDT
Don't instantiate a SYNotesActivationObserver to just say that it's not active or visible.
Comment 1 Megan Gardner 2021-08-09 15:48:23 PDT
Created attachment 435219 [details]
Patch
Comment 2 Wenson Hsieh 2021-08-09 15:51:07 PDT
Comment on attachment 435219 [details]
Patch

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

> Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:602
>      if (!m_appHighlightsObserver)
> -        setUpHighlightsObserver();
> +        return false;

Nit - I think you can just remove this early return altogether.
Comment 3 Megan Gardner 2021-08-09 16:25:59 PDT
Created attachment 435224 [details]
Patch
Comment 4 EWS 2021-08-10 10:29:47 PDT
Committed r280850 (240395@main): <https://commits.webkit.org/240395@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 435224 [details].
Comment 5 Radar WebKit Bug Importer 2021-08-10 10:40:27 PDT
<rdar://problem/81750820>