Commit 0850c8ee authored by mrowe@apple.com's avatar mrowe@apple.com
Browse files

<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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9c3ff546
2011-09-08 Mark Rowe <mrowe@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 <sam@webkit.org>
Remove accidentally committed typo.
......
......@@ -726,6 +726,10 @@ void WebPageProxy::executeEditCommand(const String& commandName)
if (!isValid())
return;
DEFINE_STATIC_LOCAL(String, ignoreSpellingCommandName, ("ignoreSpelling"));
if (commandName == ignoreSpellingCommandName)
++m_pendingLearnOrIgnoreWordMessageCount;
process()->send(Messages::WebPage::ExecuteEditCommand(commandName), m_pageID);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment