Bug 48044

Summary: Pressing Ctrl+W when viewing a full-page PDF destroys the WKView but doesn't close its parent window
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, jhoneycutt, sam
Priority: P2 Keywords: InRadar, PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: http://www.irs.gov/pub/irs-pdf/fw4.pdf
Attachments:
Description Flags
Ask the UI client to close the page when the WKView receives a WM_CLOSE message jhoneycutt: review+

Description Adam Roben (:aroben) 2010-10-20 23:15:32 PDT
To reproduce:

1. Go to http://www.irs.gov/pub/irs-pdf/fw4.pdf
2. Press Ctrl+W

The WKView gets destroyed but its parent window doesn't close.

<rdar://problem/8488446>
Comment 1 Adam Roben (:aroben) 2010-10-20 23:17:01 PDT
Adobe Reader is sending the WKView a WM_CLOSE message when the user presses Ctrl+W. WKView doesn't handle WM_CLOSE, so it gets passed along to ::DefWindowProcW, which turns around and calls ::DestroyWindow. But the UI client never gets to find out about any of this.
Comment 2 Adam Roben (:aroben) 2010-10-20 23:22:08 PDT
Created attachment 71393 [details]
Ask the UI client to close the page when the WKView receives a WM_CLOSE message
Comment 3 Adam Roben (:aroben) 2010-10-21 10:07:17 PDT
Committed r70247: <http://trac.webkit.org/changeset/70247>