Bug 145312

Summary: Yellow highlight and DD popover don't go away when scrolling an iframe
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
thorton: review+
Patch thorton: review+

Description Beth Dakin 2015-05-22 12:22:32 PDT
Yellow highlight and DD popover don't go away when scrolling an iframe

rdar://problem/19692334
Comment 1 Beth Dakin 2015-05-22 12:31:58 PDT
Created attachment 253600 [details]
Patch
Comment 2 Tim Horton 2015-05-22 13:03:49 PDT
Comment on attachment 253600 [details]
Patch

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

> Source/WebKit2/ChangeLog:11
> +        Match what Lookup already does for their popover and dismiss our popovers on 
> +        scroll.

We could probably get rid of the other way they're dismissed on scroll, now, if we want.

> Source/WebKit2/UIProcess/API/mac/WKView.mm:1351
> +    [self _dismissContentRelativeChildWindowsWithAnimation:NO];

You should make sure this isn't too expensive. I think everything checks and short-circuits if there isn't currently anything installed, but ... double check?
Comment 3 Beth Dakin 2015-05-22 13:15:53 PDT
Created attachment 253603 [details]
Patch
Comment 4 Tim Horton 2015-05-22 13:17:09 PDT
Comment on attachment 253603 [details]
Patch

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

> Source/WebKit2/UIProcess/WebPageProxy.cpp:-3689
> -    m_pageClient.dismissContentRelativeChildWindows(false);

Are there other callers of this page client method? (there probably are, just checking)
Comment 5 Beth Dakin 2015-05-22 13:24:31 PDT
(In reply to comment #4)
> Comment on attachment 253603 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=253603&action=review
> 
> > Source/WebKit2/UIProcess/WebPageProxy.cpp:-3689
> > -    m_pageClient.dismissContentRelativeChildWindows(false);
> 
> Are there other callers of this page client method? (there probably are,
> just checking)

There are other callers, but good thought!

http://trac.webkit.org/changeset/184790