WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 38496
[WebKit2] WKView should respond to WM_SHOWWINDOW messages
https://bugs.webkit.org/show_bug.cgi?id=38496
Summary
[WebKit2] WKView should respond to WM_SHOWWINDOW messages
Anders Carlsson
Reported
2010-05-03 16:50:05 PDT
[WebKit2] WKView should respond to WM_SHOWWINDOW messages
Attachments
Patch
(3.24 KB, patch)
2010-05-03 16:55 PDT
,
Anders Carlsson
jhoneycutt
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2010-05-03 16:55:46 PDT
Created
attachment 54975
[details]
Patch
Jon Honeycutt
Comment 2
2010-05-03 17:11:27 PDT
Comment on
attachment 54975
[details]
Patch
> Index: WebKit2/ChangeLog > =================================================================== > --- WebKit2/ChangeLog (revision 58716) > +++ WebKit2/ChangeLog (working copy) > @@ -1,3 +1,19 @@ > +2010-05-03 Anders Carlsson <
andersca@apple.com
> > + > + Reviewed by NOBODY (OOPS!). > + > + [WebKit2] WKView should respond to WM_SHOWWINDOW messages > +
https://bugs.webkit.org/show_bug.cgi?id=38496
> + > + * UIProcess/win/WebView.cpp: > + (WebKit::WebView::wndProc): > + Add case for WM_SHOWWINDOW. > + > + (WebKit::WebView::onShowWindowEvent): > + Update the page visibility.accordingly.
Typo.
> > +LRESULT WebView::onShowWindowEvent(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, bool& handled) > +{ > + // lParam is 0 when the message is sent because of a ShowWindow call. > + if (!lParam) { > + bool isVisible = wParam; > + > + // Notify the drawing area that the visibility changed. > + m_page->drawingArea()->setPageIsVisible(isVisible);
What happens if you call ShowWindow on a WKView that is the child of a hidden window? Does it still receive WM_SHOWWINDOW? Do you want to set "page is visible" in that case? r=me
Anders Carlsson
Comment 3
2010-05-03 17:16:24 PDT
Committed
r58720
: <
http://trac.webkit.org/changeset/58720
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug