Bug 112464 - Copy-paste should not spellcheck when continuous spellcheck is turned off
Summary: Copy-paste should not spellcheck when continuous spellcheck is turned off
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-15 13:27 PDT by Rouslan Solomakhin
Modified: 2013-03-20 10:30 PDT (History)
10 users (show)

See Also:


Attachments
Patch (9.02 KB, patch)
2013-03-15 13:32 PDT, Rouslan Solomakhin
no flags Details | Formatted Diff | Diff
Patch (11.85 KB, patch)
2013-03-15 15:57 PDT, Rouslan Solomakhin
no flags Details | Formatted Diff | Diff
Patch (16.11 KB, patch)
2013-03-18 18:34 PDT, Rouslan Solomakhin
no flags Details | Formatted Diff | Diff
Patch for landing (12.72 KB, patch)
2013-03-19 11:26 PDT, Rouslan Solomakhin
no flags Details | Formatted Diff | Diff
Patch (13.62 KB, patch)
2013-03-19 13:09 PDT, Rouslan Solomakhin
no flags Details | Formatted Diff | Diff
Patch (15.35 KB, patch)
2013-03-19 17:15 PDT, Rouslan Solomakhin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rouslan Solomakhin 2013-03-15 13:27:33 PDT
Copy-paste should not spellcheck when continuous spellcheck is turned off
Comment 1 Rouslan Solomakhin 2013-03-15 13:32:50 PDT
Created attachment 193369 [details]
Patch
Comment 2 Rouslan Solomakhin 2013-03-15 13:36:05 PDT
The new layout test editing/spelling/spellcheck-paste-continuous-disabled.html is a copy of editing/spelling/spellcheck-paste-disabled.html, except that it tests turning off the continuous spellcheck setting in the editor, instead of setting spellcheck="off" attribute on the element.

Chromium bug report: https://code.google.com/p/chromium/issues/detail?id=166827
Comment 3 Build Bot 2013-03-15 14:42:37 PDT
Comment on attachment 193369 [details]
Patch

Attachment 193369 [details] did not pass win-ews (win):
Output: http://webkit-commit-queue.appspot.com/results/17213220
Comment 4 Tony Chang 2013-03-15 15:07:28 PDT
Comment on attachment 193369 [details]
Patch

The GTK and Win failures appear to be symbol export lists that need to be updated. See http://trac.webkit.org/wiki/ExportingSymbols .
Comment 5 Build Bot 2013-03-15 15:37:58 PDT
Comment on attachment 193369 [details]
Patch

Attachment 193369 [details] did not pass mac-ews (mac):
Output: http://webkit-commit-queue.appspot.com/results/17118296
Comment 6 Rouslan Solomakhin 2013-03-15 15:57:53 PDT
Created attachment 193390 [details]
Patch
Comment 7 Rouslan Solomakhin 2013-03-15 15:59:17 PDT
Comment on attachment 193390 [details]
Patch

Exposing symbols in symbols.filter and WebCore.exp.in to see how EWS bots react.
Comment 8 Build Bot 2013-03-15 16:49:51 PDT
Comment on attachment 193390 [details]
Patch

Attachment 193390 [details] did not pass win-ews (win):
Output: http://webkit-commit-queue.appspot.com/results/17172198
Comment 9 Build Bot 2013-03-15 17:00:15 PDT
Comment on attachment 193390 [details]
Patch

Attachment 193390 [details] did not pass mac-ews (mac):
Output: http://webkit-commit-queue.appspot.com/results/17145348
Comment 10 Build Bot 2013-03-15 20:50:47 PDT
Comment on attachment 193390 [details]
Patch

Attachment 193390 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-commit-queue.appspot.com/results/17118327
Comment 11 Rouslan Solomakhin 2013-03-18 18:34:19 PDT
Created attachment 193711 [details]
Patch
Comment 12 Rouslan Solomakhin 2013-03-18 18:36:53 PDT
Comment on attachment 193711 [details]
Patch

I've added the exports to every possible .exp, exp.in, and .order file. The build still fails on my Mac, however. The only way to build successfully is to alter WebKitBuild/Release/DerivedSources/WebCore/WebCore.exp by hand. (Even a clean build with no WebKitBuild directory does not update WebCore.exp.) What have I missed?
Comment 13 Build Bot 2013-03-18 19:11:53 PDT
Comment on attachment 193711 [details]
Patch

Attachment 193711 [details] did not pass win-ews (win):
Output: http://webkit-commit-queue.appspot.com/results/17144454
Comment 14 Ryosuke Niwa 2013-03-18 19:32:09 PDT
(In reply to comment #0)
> Copy-paste should not spellcheck when continuous spellcheck is turned off

Why? Having spellcheck automatically run after copy & paste is a pretty important feature to test.
Comment 15 Ryosuke Niwa 2013-03-18 19:33:38 PDT
I don't object to test continuous spellchecking feature but please don't disable spellchecking for copy & paste just so that we can work around the limitation of continuous spellchecks.
Comment 16 Rouslan Solomakhin 2013-03-18 19:44:51 PDT
From what I understand, continuous spellcheck corresponds to "Check spelling as you type" option in web browsers. A user that has this option turned off would not want to see red squiggly lines after copy-pasting some text. Right?
Comment 17 Ryosuke Niwa 2013-03-18 19:49:08 PDT
(In reply to comment #16)
> From what I understand, continuous spellcheck corresponds to "Check spelling as you type" option in web browsers. A user that has this option turned off would not want to see red squiggly lines after copy-pasting some text. Right?

Ah, sorry, I think I misunderstood what you were trying to do.
Comment 18 Ryosuke Niwa 2013-03-18 19:57:39 PDT
Comment on attachment 193711 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=193711&action=review

Please fix the Windows build before you land.

> Source/WebCore/testing/Internals.cpp:1513
> +    if (!contextDocument() || !contextDocument()->frame() || !contextDocument()->frame()->editor())
> +        return;
> +
> +    if (enabled != contextDocument()->frame()->editor()->isContinuousSpellCheckingEnabled())
> +        contextDocument()->frame()->editor()->toggleContinuousSpellChecking();

It's somewhat strange that this isn't a setting but I guess that's outside of the scope of this bug.
Comment 19 Build Bot 2013-03-18 22:29:29 PDT
Comment on attachment 193711 [details]
Patch

Attachment 193711 [details] did not pass mac-ews (mac):
Output: http://webkit-commit-queue.appspot.com/results/17239094
Comment 20 Build Bot 2013-03-18 23:50:14 PDT
Comment on attachment 193711 [details]
Patch

Attachment 193711 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-commit-queue.appspot.com/results/17211468
Comment 21 Tony Chang 2013-03-19 10:04:11 PDT
Comment on attachment 193711 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=193711&action=review

> Source/WebCore/WebCore.exp.in:2120
> -__ZN7WebCore6Editor32isContinuousSpellCheckingEnabledEv
> +__ZN7WebCore6Editor29toggleContinuousSpellCheckingEv

This appears to be inside an #if PLATFORM(IOS) block.  I think you want to move it up before any of the #ifs.
Comment 22 Rouslan Solomakhin 2013-03-19 10:15:11 PDT
(In reply to comment #21)
> (From update of attachment 193711 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=193711&action=review
> 
> > Source/WebCore/WebCore.exp.in:2120
> > -__ZN7WebCore6Editor32isContinuousSpellCheckingEnabledEv
> > +__ZN7WebCore6Editor29toggleContinuousSpellCheckingEv
> 
> This appears to be inside an #if PLATFORM(IOS) block.  I think you want to move it up before any of the #ifs.

You're right, thank you. I will move the lines in the next patch.
Comment 23 Rouslan Solomakhin 2013-03-19 11:26:28 PDT
Created attachment 193876 [details]
Patch for landing
Comment 24 Rouslan Solomakhin 2013-03-19 11:27:58 PDT
Comment on attachment 193876 [details]
Patch for landing

Let's wait for EWS bots to validate the exports.
Comment 25 Build Bot 2013-03-19 12:10:03 PDT
Comment on attachment 193876 [details]
Patch for landing

Attachment 193876 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-commit-queue.appspot.com/results/17189688

New failing tests:
editing/spelling/spellcheck-paste-continuous-disabled.html
Comment 26 Build Bot 2013-03-19 12:36:53 PDT
Comment on attachment 193876 [details]
Patch for landing

Attachment 193876 [details] did not pass win-ews (win):
Output: http://webkit-commit-queue.appspot.com/results/17191399
Comment 27 Rouslan Solomakhin 2013-03-19 12:43:53 PDT
(In reply to comment #25)
> (From update of attachment 193876 [details])
> Attachment 193876 [details] did not pass mac-wk2-ews (mac-wk2):
> Output: http://webkit-commit-queue.appspot.com/results/17189688
> 
> New failing tests:
> editing/spelling/spellcheck-paste-continuous-disabled.html

Is there a way to extract the test diff from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/layout-test-results/editing/spelling/spellcheck-paste-continuous-disabled-diff.txt on the EWS bot?
Comment 28 Rouslan Solomakhin 2013-03-19 13:06:46 PDT
(In reply to comment #27)
> (In reply to comment #25)
> > (From update of attachment 193876 [details] [details])
> > Attachment 193876 [details] [details] did not pass mac-wk2-ews (mac-wk2):
> > Output: http://webkit-commit-queue.appspot.com/results/17189688
> > 
> > New failing tests:
> > editing/spelling/spellcheck-paste-continuous-disabled.html
> 
> Is there a way to extract the test diff from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/layout-test-results/editing/spelling/spellcheck-paste-continuous-disabled-diff.txt on the EWS bot?

Nevermind. I ran mac-wk2 tests on my machine and found that the new tests fails. This test is based on a test that is skipped in mac-wk2 because of lack of eventSender implementation.  Going to skip the new test on mac-wk2 as well.
Comment 29 Rouslan Solomakhin 2013-03-19 13:09:47 PDT
Created attachment 193905 [details]
Patch
Comment 30 Rouslan Solomakhin 2013-03-19 13:10:37 PDT
Comment on attachment 193905 [details]
Patch

Waiting for EWS bot results.
Comment 31 Build Bot 2013-03-19 14:05:09 PDT
Comment on attachment 193905 [details]
Patch

Attachment 193905 [details] did not pass win-ews (win):
Output: http://webkit-commit-queue.appspot.com/results/17184420
Comment 32 Rouslan Solomakhin 2013-03-19 17:15:37 PDT
Created attachment 193952 [details]
Patch
Comment 33 Rouslan Solomakhin 2013-03-19 17:16:32 PDT
Comment on attachment 193952 [details]
Patch

Added the export symbols for win port. Waiting for EWS results.
Comment 34 Rouslan Solomakhin 2013-03-20 07:28:36 PDT
Comment on attachment 193952 [details]
Patch

All bots are green. Let's commit?
Comment 35 WebKit Review Bot 2013-03-20 10:30:22 PDT
Comment on attachment 193952 [details]
Patch

Clearing flags on attachment: 193952

Committed r146361: <http://trac.webkit.org/changeset/146361>
Comment 36 WebKit Review Bot 2013-03-20 10:30:27 PDT
All reviewed patches have been landed.  Closing bug.