Title: [232049] trunk/Source/WebKit
- Revision
- 232049
- Author
- [email protected]
- Date
- 2018-05-21 23:08:51 -0700 (Mon, 21 May 2018)
Log Message
[GTK][Wayland] UI process crash when closing the window
https://bugs.webkit.org/show_bug.cgi?id=185818
Reviewed by Michael Catanzaro.
This happens when a page containing a text field is loaded but the focus remains in the url bar when the window
is closed. This is because we are sending a notify-in to the IM context, but the focus is still in the URL
bar. That confuses the wayland input method manager that tries to free the text of the web view IM context that has
already been deleted.
* UIProcess/gtk/InputMethodFilter.cpp:
(WebKit::InputMethodFilter::setEnabled): Only send notify-in if the view is actually focused.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (232048 => 232049)
--- trunk/Source/WebKit/ChangeLog 2018-05-22 05:46:27 UTC (rev 232048)
+++ trunk/Source/WebKit/ChangeLog 2018-05-22 06:08:51 UTC (rev 232049)
@@ -1,3 +1,18 @@
+2018-05-21 Carlos Garcia Campos <[email protected]>
+
+ [GTK][Wayland] UI process crash when closing the window
+ https://bugs.webkit.org/show_bug.cgi?id=185818
+
+ Reviewed by Michael Catanzaro.
+
+ This happens when a page containing a text field is loaded but the focus remains in the url bar when the window
+ is closed. This is because we are sending a notify-in to the IM context, but the focus is still in the URL
+ bar. That confuses the wayland input method manager that tries to free the text of the web view IM context that has
+ already been deleted.
+
+ * UIProcess/gtk/InputMethodFilter.cpp:
+ (WebKit::InputMethodFilter::setEnabled): Only send notify-in if the view is actually focused.
+
2018-05-21 Ryosuke Niwa <[email protected]>
Remove unused and no-op WKContextSetCookieStorageDirectory
Modified: trunk/Source/WebKit/UIProcess/gtk/InputMethodFilter.cpp (232048 => 232049)
--- trunk/Source/WebKit/UIProcess/gtk/InputMethodFilter.cpp 2018-05-22 05:46:27 UTC (rev 232048)
+++ trunk/Source/WebKit/UIProcess/gtk/InputMethodFilter.cpp 2018-05-22 06:08:51 UTC (rev 232049)
@@ -89,7 +89,7 @@
if (!enabled)
notifyFocusedOut();
m_enabled = enabled;
- if (enabled)
+ if (enabled && m_page->isViewFocused())
notifyFocusedIn();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes