WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
63050
[chromium] cannot replace a misspelled phrase with a suggested word
https://bugs.webkit.org/show_bug.cgi?id=63050
Summary
[chromium] cannot replace a misspelled phrase with a suggested word
Hironori Bono
Reported
2011-06-21 00:17:05 PDT
(Copied from <
http://crbug.com/86905
>.) What steps will reproduce the problem? 1. Open the attached file "replace.html". (Chrome shows a user-added marker under a phrase 'mer ger'.) 2. Right-click the phrase. (Chrome shows a user-added suggestion 'merger' as shown in the attached picture '001.png'.) 3. Choose the suggestion. What is the expected output? a misspelled phrase 'mer ger' is replaced with the suggestion 'merger'. What do you see instead? a part of the misspelled phrase is replaced with the suggestion as shown in the attached picture '002.png'. Please use labels and text to provide additional information. WebFrameImpl::replaceSelection() of Chrome just replaces the selection with the given text and this problem happens when this selection is not equal to the one of a user-added marker. We need to replace the range of a user-added marker with the given text for this case. Regards, Hironori Bono
Attachments
A patch v0
(12.51 KB, patch)
2011-06-21 01:57 PDT
,
Hironori Bono
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Hironori Bono
Comment 1
2011-06-21 01:57:04 PDT
Created
attachment 97951
[details]
A patch v0 Greetings, I have written a quick fix for Chromium. It may be better to change SpellingCorrectionCommand so it works not only on Chromium but also on other platforms? Regards, Hironori Bono
WebKit Review Bot
Comment 2
2011-06-21 01:59:20 PDT
Attachment 97951
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/edit..." exit_code: 1 Source/WebKit/chromium/src/WebFrameImpl.cpp:133: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Hajime Morrita
Comment 3
2011-06-21 23:57:34 PDT
Comment on
attachment 97951
[details]
A patch v0 View in context:
https://bugs.webkit.org/attachment.cgi?id=97951&action=review
> Source/WebKit/chromium/src/WebFrameImpl.cpp:1148 > }
As you said, I believe this is worth having inside WebCore. If we have this inside WebCore, we no longer need new TextInputController method. Also, this behavior is desirable for spelling marker in general, not only for API-based spellchecking.
> LayoutTests/editing/spelling/spellcheck-api-replace.html:7 > +<script language="javascript" type="text/javascript">
Could you get these two <script> block together?
> LayoutTests/editing/spelling/spellcheck-api-replace.html:18 > +function RunTest() {
we usually use camel case name like "runTest"
Hajime Morrita
Comment 4
2011-06-27 02:11:53 PDT
Comment on
attachment 97951
[details]
A patch v0 Marking obsolete at now. because original change was gone.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug