Bug 48044 - Pressing Ctrl+W when viewing a full-page PDF destroys the WKView but doesn't close its parent window
Summary: Pressing Ctrl+W when viewing a full-page PDF destroys the WKView but doesn't ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.irs.gov/pub/irs-pdf/fw4.pdf
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2010-10-20 23:15 PDT by Adam Roben (:aroben)
Modified: 2010-10-21 10:07 PDT (History)
3 users (show)

See Also:


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+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>