Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Issue 2316303006: Make default spellchecking behavior in html elements configurable via WebSettings. (Closed)

Created:
4 years, 3 months ago by timvolodine
Modified:
4 years, 2 months ago
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, do_not_use, Tobias Sargeant, groby-ooo-7-16, Peter Beverloo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make default spellchecking behavior in html elements configurable via WebSettings. This patch introduces the setSpellCheckEnabledByDefault method in WebSettings to allow control over whether spellchecking should be enabled by default in spellcheck-capable html elements (e.g. text <input> elements and elements with the contenteditable="true" attribute). Currently the default behavior is that spellcheck is enabled. This patch does not actually change any defaults or functionality, instead this would happen at a later stage in a separate patch. For example on Android where we may want to change the default for performance reasons, or in Android WebView due to consistency considerations. BUG=583616, 629609 Committed: https://crrev.com/b0a6d1d8932f6d5a1bbdfb4a650e139d6557163c Cr-Commit-Position: refs/heads/master@{#421808}

Patch Set 1 #

Total comments: 3

Patch Set 2 : make it configurable via settings #

Total comments: 2

Patch Set 3 : address Rick's comments add tests #

Patch Set 4 : correct version of spellcheck-attribute-default.html #

Patch Set 5 : rebase #

Patch Set 6 : rename test files to "..settings-default.." #

Patch Set 7 : enable the test and update description #

Patch Set 8 : fix expectations #

Total comments: 2

Patch Set 9 : rebase add doctype #

Patch Set 10 : remove setting of spellcheck default in render_view_impl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html View 1 2 3 4 5 6 7 8 1 chunk +80 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default-expected.txt View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 62 (43 generated)
timvolodine
4 years, 3 months ago (2016-09-12 14:38:19 UTC) #8
timvolodine
On 2016/09/12 14:38:19, timvolodine wrote: note: this does not break existing behavior because we have ...
4 years, 3 months ago (2016-09-12 14:42:11 UTC) #10
timvolodine
+cc: groby@
4 years, 3 months ago (2016-09-12 14:55:35 UTC) #14
Peter Beverloo
https://codereview.chromium.org/2316303006/diff/1/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2316303006/diff/1/third_party/WebKit/Source/core/dom/Element.cpp#newcode3212 third_party/WebKit/Source/core/dom/Element.cpp:3212: return false; This should probably be a decision made ...
4 years, 3 months ago (2016-09-12 14:59:02 UTC) #15
Rick Byers
Looks like the spec expects the default behavior to be UA defined: https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking so this ...
4 years, 3 months ago (2016-09-14 15:21:00 UTC) #16
timvolodine
https://codereview.chromium.org/2316303006/diff/1/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2316303006/diff/1/third_party/WebKit/Source/core/dom/Element.cpp#newcode3212 third_party/WebKit/Source/core/dom/Element.cpp:3212: return false; On 2016/09/14 15:21:00, Rick Byers wrote: > ...
4 years, 3 months ago (2016-09-14 17:16:31 UTC) #20
timvolodine
On 2016/09/14 15:21:00, Rick Byers wrote: > Looks like the spec expects the default behavior ...
4 years, 3 months ago (2016-09-14 17:18:03 UTC) #21
Rick Byers
Yep this looks great, thanks. Now, what about a test? Is there already a basic ...
4 years, 3 months ago (2016-09-15 20:28:09 UTC) #28
timvolodine
Thanks Rick for the comments, added a layout test for testing the default spellcheck behavior ...
4 years, 2 months ago (2016-09-22 17:52:58 UTC) #37
Rick Byers
LGTM with nit https://codereview.chromium.org/2316303006/diff/140001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html File third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html (right): https://codereview.chromium.org/2316303006/diff/140001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html#newcode1 third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html:1: <html> nit: html, head and body ...
4 years, 2 months ago (2016-09-26 18:44:34 UTC) #44
timvolodine
https://codereview.chromium.org/2316303006/diff/140001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html File third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html (right): https://codereview.chromium.org/2316303006/diff/140001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html#newcode1 third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html:1: <html> On 2016/09/26 18:44:34, Rick Byers wrote: > nit: ...
4 years, 2 months ago (2016-09-27 17:51:56 UTC) #49
timvolodine
Actually, planning to land this patch without any default changes for now. We can decide ...
4 years, 2 months ago (2016-09-27 17:53:44 UTC) #50
Rick Byers
On 2016/09/27 17:51:56, timvolodine wrote: > https://codereview.chromium.org/2316303006/diff/140001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html > File > third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html > (right): > > ...
4 years, 2 months ago (2016-09-28 22:15:39 UTC) #53
Rick Byers
On 2016/09/27 17:51:56, timvolodine wrote: > https://codereview.chromium.org/2316303006/diff/140001/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html > File > third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute-settings-default.html > (right): > > ...
4 years, 2 months ago (2016-09-28 22:15:41 UTC) #54
Rick Byers
On 2016/09/27 17:53:44, timvolodine wrote: > Actually, planning to land this patch without any default ...
4 years, 2 months ago (2016-09-28 22:16:18 UTC) #55
timvolodine
On 2016/09/28 22:16:18, Rick Byers wrote: > On 2016/09/27 17:53:44, timvolodine wrote: > > Actually, ...
4 years, 2 months ago (2016-09-29 12:34:12 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2316303006/180001
4 years, 2 months ago (2016-09-29 12:34:30 UTC) #58
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-09-29 13:57:31 UTC) #60
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 14:01:23 UTC) #62
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b0a6d1d8932f6d5a1bbdfb4a650e139d6557163c
Cr-Commit-Position: refs/heads/master@{#421808}

Powered by Google App Engine
This is Rietveld 408576698