| Summary: | REGRESSION(r180768): Slower startup time for WKWebView | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Enrica Casucci <enrica> | ||||||
| Component: | WebKit2 | Assignee: | Enrica Casucci <enrica> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | thorton | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Enrica Casucci
2015-03-26 15:16:30 PDT
Created attachment 249518 [details]
Patch
Comment on attachment 249518 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=249518&action=review > Source/WebKit2/UIProcess/API/mac/WKView.mm:2622 > + [[NSFontPanel sharedFontPanel] addObserver:self forKeyPath:@"visible" options:NSKeyValueObservingOptionNew context:nil]; I don't think you need NSKeyValueObservingOptionNew unless you actually get it from the dictionary in your observe method. Also you need to specify a context. Just add something like static void* wkViewObservationContext = &wkViewObservationContext; and pass that in add and remove. You also need to compare the context in your observe method. Created attachment 249524 [details]
Patch2
New patch that includes feedback from Anders.
Comment on attachment 249524 [details] Patch2 View in context: https://bugs.webkit.org/attachment.cgi?id=249524&action=review > Source/WebKit2/UIProcess/API/mac/WKView.mm:3728 > + NSTrackingAreaOptions options = NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited | NSTrackingInVisibleRect | NSTrackingCursorUpdate; Please disregard this line. I had to update ToT. Committed revision 182037. |