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+

Adam Roben (:aroben)
Reported 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>
Attachments
Ask the UI client to close the page when the WKView receives a WM_CLOSE message (6.26 KB, patch)
2010-10-20 23:22 PDT, Adam Roben (:aroben)
jhoneycutt: review+
Adam Roben (:aroben)
Comment 1 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.
Adam Roben (:aroben)
Comment 2 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
Adam Roben (:aroben)
Comment 3 2010-10-21 10:07:17 PDT
Note You need to log in before you can comment on or make changes to this bug.