Title: [94818] trunk/Source/WebKit2
Revision
94818
Author
mr...@apple.com
Date
2011-09-08 16:29:57 -0700 (Thu, 08 Sep 2011)

Log Message

<rdar://problem/9742393> Spell checking a text area causes the page to reload

Ensure that m_pendingLearnOrIgnoreWordMessageCount is incremented when we use
executeEditCommand to ignore a word. This will ensure that WebPageProxy::ignoreWord
is expecting to be called, and will not turn around and terminate the web process.

Reviewed by Anders Carlsson.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::executeEditCommand):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (94817 => 94818)


--- trunk/Source/WebKit2/ChangeLog	2011-09-08 23:15:48 UTC (rev 94817)
+++ trunk/Source/WebKit2/ChangeLog	2011-09-08 23:29:57 UTC (rev 94818)
@@ -1,3 +1,16 @@
+2011-09-08  Mark Rowe  <mr...@apple.com>
+
+        <rdar://problem/9742393> Spell checking a text area causes the page to reload
+
+        Ensure that m_pendingLearnOrIgnoreWordMessageCount is incremented when we use
+        executeEditCommand to ignore a word. This will ensure that WebPageProxy::ignoreWord
+        is expecting to be called, and will not turn around and terminate the web process.
+
+        Reviewed by Anders Carlsson.
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::executeEditCommand):
+
 2011-09-08  Sam Weinig  <s...@webkit.org>
 
         Remove accidentally committed typo.

Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (94817 => 94818)


--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp	2011-09-08 23:15:48 UTC (rev 94817)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp	2011-09-08 23:29:57 UTC (rev 94818)
@@ -726,6 +726,10 @@
     if (!isValid())
         return;
 
+    DEFINE_STATIC_LOCAL(String, ignoreSpellingCommandName, ("ignoreSpelling"));
+    if (commandName == ignoreSpellingCommandName)
+        ++m_pendingLearnOrIgnoreWordMessageCount;
+
     process()->send(Messages::WebPage::ExecuteEditCommand(commandName), m_pageID);
 }
     
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to