Title: [152646] releases/WebKitGTK/webkit-2.0/Source/WebKit2
- Revision
- 152646
- Author
- carlo...@webkit.org
- Date
- 2013-07-15 10:42:27 -0700 (Mon, 15 Jul 2013)
Log Message
Merge r152627 - [GTK] [WK2] Check if the keyEventQueue is empty in WebPageProxy::getEditorCommandsForKeyEvent
https://bugs.webkit.org/show_bug.cgi?id=118530
Patch by Simon Pena <simon.p...@samsung.com> on 2013-07-15
Reviewed by Carlos Garcia Campos.
When a key event is started in the WebProcess (e.g. in the inspector)
it doesn't have an associated GdkEvent queued. Adding a check in
WebPageProxy::getEditorCommandsForKeyEvent ensures there's always a queued
key event to process.
In GTK-WK2, inspector-protocol/input/dispatchKeyEvent.html no longer crashes once
this fix is in place.
* UIProcess/gtk/WebPageProxyGtk.cpp:
(WebKit::WebPageProxy::getEditorCommandsForKeyEvent): Ensure m_keyEventQueue is
not empty.
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.0/Source/WebKit2/ChangeLog (152645 => 152646)
--- releases/WebKitGTK/webkit-2.0/Source/WebKit2/ChangeLog 2013-07-15 17:38:20 UTC (rev 152645)
+++ releases/WebKitGTK/webkit-2.0/Source/WebKit2/ChangeLog 2013-07-15 17:42:27 UTC (rev 152646)
@@ -1,3 +1,22 @@
+2013-07-15 Simon Pena <simon.p...@samsung.com>
+
+ [GTK] [WK2] Check if the keyEventQueue is empty in WebPageProxy::getEditorCommandsForKeyEvent
+ https://bugs.webkit.org/show_bug.cgi?id=118530
+
+ Reviewed by Carlos Garcia Campos.
+
+ When a key event is started in the WebProcess (e.g. in the inspector)
+ it doesn't have an associated GdkEvent queued. Adding a check in
+ WebPageProxy::getEditorCommandsForKeyEvent ensures there's always a queued
+ key event to process.
+
+ In GTK-WK2, inspector-protocol/input/dispatchKeyEvent.html no longer crashes once
+ this fix is in place.
+
+ * UIProcess/gtk/WebPageProxyGtk.cpp:
+ (WebKit::WebPageProxy::getEditorCommandsForKeyEvent): Ensure m_keyEventQueue is
+ not empty.
+
2013-07-15 Alberto Garcia <be...@igalia.com>
[WK2][GTK] SIGSEV in webkitWebViewBaseSizeAllocate
Modified: releases/WebKitGTK/webkit-2.0/Source/WebKit2/UIProcess/gtk/WebPageProxyGtk.cpp (152645 => 152646)
--- releases/WebKitGTK/webkit-2.0/Source/WebKit2/UIProcess/gtk/WebPageProxyGtk.cpp 2013-07-15 17:38:20 UTC (rev 152645)
+++ releases/WebKitGTK/webkit-2.0/Source/WebKit2/UIProcess/gtk/WebPageProxyGtk.cpp 2013-07-15 17:42:27 UTC (rev 152646)
@@ -50,7 +50,10 @@
void WebPageProxy::getEditorCommandsForKeyEvent(const AtomicString& eventType, Vector<WTF::String>& commandsList)
{
- m_pageClient->getEditorCommandsForKeyEvent(m_keyEventQueue.first(), eventType, commandsList);
+ // When the keyboard event is started in the WebProcess side (e.g. from the Inspector)
+ // it will arrive without a GdkEvent associated, so the keyEventQueue will be empty.
+ if (!m_keyEventQueue.isEmpty())
+ m_pageClient->getEditorCommandsForKeyEvent(m_keyEventQueue.first(), eventType, commandsList);
}
void WebPageProxy::bindAccessibilityTree(const String& plugID)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes