[GTK] Crash when spell checker returns no guesses
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Jul 2015 00:09:11 +0000 (00:09 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Jul 2015 00:09:11 +0000 (00:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=146805

Reviewed by Martin Robinson.

Properly handle ContextMenuItemTagNoGuessesFound in the switch statement.

* UIProcess/API/gtk/WebKitContextMenuActions.cpp:
(webkitContextMenuActionGetForContextMenuItem):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186653 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuActions.cpp

index 3c40840..50ac3fb 100644 (file)
@@ -1,3 +1,15 @@
+2015-07-09  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        [GTK] Crash when spell checker returns no guesses
+        https://bugs.webkit.org/show_bug.cgi?id=146805
+
+        Reviewed by Martin Robinson.
+
+        Properly handle ContextMenuItemTagNoGuessesFound in the switch statement.
+
+        * UIProcess/API/gtk/WebKitContextMenuActions.cpp:
+        (webkitContextMenuActionGetForContextMenuItem):
+
 2015-07-09  Alex Christensen  <achristensen@webkit.org>
 
         [Content Extensions] Add 3 byte jump size.
index e8cdffd..4ed20fa 100644 (file)
@@ -182,6 +182,8 @@ WebKitContextMenuAction webkitContextMenuActionGetForContextMenuItem(ContextMenu
         return WEBKIT_CONTEXT_MENU_ACTION_UNICODE;
     case ContextMenuItemTagSpellingGuess:
         return WEBKIT_CONTEXT_MENU_ACTION_SPELLING_GUESS;
+    case ContextMenuItemTagNoGuessesFound:
+        return WEBKIT_CONTEXT_MENU_ACTION_NO_GUESSES_FOUND;
     case ContextMenuItemTagIgnoreSpelling:
         return WEBKIT_CONTEXT_MENU_ACTION_IGNORE_SPELLING;
     case ContextMenuItemTagLearnSpelling: