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

Issue 2454023002: MD Settings: Fix <select> search highlighting. (Closed)

Created:
4 years, 1 month ago by dpapad
Modified:
4 years, 1 month ago
Reviewers:
Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix <select> search highlighting. <select> elements should not be highlighted with yellow rectangles because the highlight CSS style is ignored anyway and breaks the <select> (duplicate strings displayed). Just including the parent <settings-section> should be sufficient for now (matches old Options). Also add the first unit tests for the DOM searching algorithm internals. BUG=659617 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/9128a695732eba4729713506cf40268e1aada67a Cr-Commit-Position: refs/heads/master@{#429122}

Patch Set 1 : Revise. #

Total comments: 1

Patch Set 2 : Nt. #

Total comments: 3

Patch Set 3 : Separate test fixture #

Patch Set 4 : Fix browserPreload path. #

Total comments: 13

Patch Set 5 : Address comments. #

Total comments: 19

Patch Set 6 : More nits. #

Patch Set 7 : Pong #

Patch Set 8 : Rebase #

Total comments: 3

Patch Set 9 : Attempting bot fix. #

Total comments: 2

Patch Set 10 : Use loadScript. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -1 line) Patch
M chrome/browser/resources/settings/search_settings.js View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/search_settings_test.js View 1 2 3 4 5 6 7 8 9 1 chunk +98 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (26 generated)
dpapad
Tests! (Expecting green results on patch 1). https://codereview.chromium.org/2454023002/diff/60001/chrome/browser/resources/settings/search_settings.js File chrome/browser/resources/settings/search_settings.js (right): https://codereview.chromium.org/2454023002/diff/60001/chrome/browser/resources/settings/search_settings.js#newcode154 chrome/browser/resources/settings/search_settings.js:154: // displayed. ...
4 years, 1 month ago (2016-10-27 01:24:48 UTC) #11
Dan Beam
https://codereview.chromium.org/2454023002/diff/80001/chrome/test/data/webui/settings/cr_settings_browsertest.js File chrome/test/data/webui/settings/cr_settings_browsertest.js (right): https://codereview.chromium.org/2454023002/diff/80001/chrome/test/data/webui/settings/cr_settings_browsertest.js#newcode894 chrome/test/data/webui/settings/cr_settings_browsertest.js:894: 'search_settings_test.js', can you make a different @constructor for this ...
4 years, 1 month ago (2016-10-27 01:29:06 UTC) #12
dpapad
https://codereview.chromium.org/2454023002/diff/80001/chrome/test/data/webui/settings/cr_settings_browsertest.js File chrome/test/data/webui/settings/cr_settings_browsertest.js (right): https://codereview.chromium.org/2454023002/diff/80001/chrome/test/data/webui/settings/cr_settings_browsertest.js#newcode894 chrome/test/data/webui/settings/cr_settings_browsertest.js:894: 'search_settings_test.js', On 2016/10/27 at 01:29:06, Dan Beam wrote: > ...
4 years, 1 month ago (2016-10-27 17:54:52 UTC) #13
Dan Beam
https://codereview.chromium.org/2454023002/diff/120001/chrome/test/data/webui/settings/search_settings_test.js File chrome/test/data/webui/settings/search_settings_test.js (right): https://codereview.chromium.org/2454023002/diff/120001/chrome/test/data/webui/settings/search_settings_test.js#newcode13 chrome/test/data/webui/settings/search_settings_test.js:13: /* /** https://codereview.chromium.org/2454023002/diff/120001/chrome/test/data/webui/settings/search_settings_test.js#newcode19 chrome/test/data/webui/settings/search_settings_test.js:19: var htmlBefore = document.body.innerHTML = ...
4 years, 1 month ago (2016-10-27 21:24:53 UTC) #18
dpapad
https://codereview.chromium.org/2454023002/diff/120001/chrome/test/data/webui/settings/search_settings_test.js File chrome/test/data/webui/settings/search_settings_test.js (right): https://codereview.chromium.org/2454023002/diff/120001/chrome/test/data/webui/settings/search_settings_test.js#newcode13 chrome/test/data/webui/settings/search_settings_test.js:13: /* On 2016/10/27 at 21:24:53, Dan Beam wrote: > ...
4 years, 1 month ago (2016-10-27 21:35:37 UTC) #19
Dan Beam
https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js File chrome/browser/resources/settings/search_settings.js (right): https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js#newcode156 chrome/browser/resources/settings/search_settings.js:156: if (node.parentNode.nodeName != 'OPTION') wait, why can't we just ...
4 years, 1 month ago (2016-10-27 21:37:15 UTC) #20
dpapad
On 2016/10/27 at 21:37:15, dbeam wrote: > https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js > File chrome/browser/resources/settings/search_settings.js (right): > > https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js#newcode156 ...
4 years, 1 month ago (2016-10-27 21:38:38 UTC) #21
Dan Beam
https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js File chrome/browser/resources/settings/search_settings.js (right): https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js#newcode156 chrome/browser/resources/settings/search_settings.js:156: if (node.parentNode.nodeName != 'OPTION') TODO(dpapad): highlight <select> controls even ...
4 years, 1 month ago (2016-10-27 21:46:09 UTC) #22
dpapad
https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js File chrome/browser/resources/settings/search_settings.js (right): https://codereview.chromium.org/2454023002/diff/140001/chrome/browser/resources/settings/search_settings.js#newcode156 chrome/browser/resources/settings/search_settings.js:156: if (node.parentNode.nodeName != 'OPTION') On 2016/10/27 at 21:46:09, Dan ...
4 years, 1 month ago (2016-10-27 22:14:22 UTC) #23
Dan Beam
https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js File chrome/test/data/webui/settings/search_settings_test.js (right): https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js#newcode18 chrome/test/data/webui/settings/search_settings_test.js:18: var textBefore = 'FooSettingsFoo'; On 2016/10/27 21:46:09, Dan Beam ...
4 years, 1 month ago (2016-10-27 22:15:52 UTC) #24
dpapad
https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js File chrome/test/data/webui/settings/search_settings_test.js (right): https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js#newcode18 chrome/test/data/webui/settings/search_settings_test.js:18: var textBefore = 'FooSettingsFoo'; On 2016/10/27 at 22:15:52, Dan ...
4 years, 1 month ago (2016-10-27 22:24:51 UTC) #25
dpapad
On 2016/10/27 at 22:24:51, dpapad wrote: > https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js > File chrome/test/data/webui/settings/search_settings_test.js (right): > > https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js#newcode18 ...
4 years, 1 month ago (2016-10-28 21:44:10 UTC) #26
Dan Beam
lgtm https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js File chrome/test/data/webui/settings/search_settings_test.js (right): https://codereview.chromium.org/2454023002/diff/140001/chrome/test/data/webui/settings/search_settings_test.js#newcode18 chrome/test/data/webui/settings/search_settings_test.js:18: var textBefore = 'FooSettingsFoo'; On 2016/10/27 22:24:50, dpapad ...
4 years, 1 month ago (2016-10-28 22:26:04 UTC) #27
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/2454023002/180001
4 years, 1 month ago (2016-10-28 22:33:42 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/154894) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 1 month ago (2016-10-28 22:50:44 UTC) #31
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/2454023002/180001
4 years, 1 month ago (2016-10-29 00:02:38 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/112402)
4 years, 1 month ago (2016-10-29 00:43:55 UTC) #35
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/2454023002/180001
4 years, 1 month ago (2016-10-29 01:12:29 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/325105)
4 years, 1 month ago (2016-10-29 01:38:48 UTC) #39
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/2454023002/200001
4 years, 1 month ago (2016-10-31 22:42:28 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/322590)
4 years, 1 month ago (2016-10-31 23:54:53 UTC) #44
dpapad
https://codereview.chromium.org/2454023002/diff/200001/chrome/test/data/webui/settings/cr_settings_browsertest.js File chrome/test/data/webui/settings/cr_settings_browsertest.js (right): https://codereview.chromium.org/2454023002/diff/200001/chrome/test/data/webui/settings/cr_settings_browsertest.js#newcode925 chrome/test/data/webui/settings/cr_settings_browsertest.js:925: ROOT_PATH + 'chrome/browser/resources/settings/search_settings.js', Even though this works locally, it ...
4 years, 1 month ago (2016-11-01 01:45:40 UTC) #45
Dan Beam
https://codereview.chromium.org/2454023002/diff/200001/chrome/test/data/webui/settings/cr_settings_browsertest.js File chrome/test/data/webui/settings/cr_settings_browsertest.js (right): https://codereview.chromium.org/2454023002/diff/200001/chrome/test/data/webui/settings/cr_settings_browsertest.js#newcode925 chrome/test/data/webui/settings/cr_settings_browsertest.js:925: ROOT_PATH + 'chrome/browser/resources/settings/search_settings.js', On 2016/11/01 01:45:40, dpapad wrote: > ...
4 years, 1 month ago (2016-11-01 18:00:32 UTC) #46
dpapad
https://codereview.chromium.org/2454023002/diff/200001/chrome/test/data/webui/settings/cr_settings_browsertest.js File chrome/test/data/webui/settings/cr_settings_browsertest.js (right): https://codereview.chromium.org/2454023002/diff/200001/chrome/test/data/webui/settings/cr_settings_browsertest.js#newcode925 chrome/test/data/webui/settings/cr_settings_browsertest.js:925: ROOT_PATH + 'chrome/browser/resources/settings/search_settings.js', > trying doing something like: > ...
4 years, 1 month ago (2016-11-01 19:26:10 UTC) #47
Dan Beam
https://codereview.chromium.org/2454023002/diff/220001/chrome/test/BUILD.gn File chrome/test/BUILD.gn (right): https://codereview.chromium.org/2454023002/diff/220001/chrome/test/BUILD.gn#newcode1937 chrome/test/BUILD.gn:1937: "//chrome/browser/resources/settings/", this is a lot of files. i think ...
4 years, 1 month ago (2016-11-01 19:33:54 UTC) #48
dpapad
https://codereview.chromium.org/2454023002/diff/220001/chrome/test/BUILD.gn File chrome/test/BUILD.gn (right): https://codereview.chromium.org/2454023002/diff/220001/chrome/test/BUILD.gn#newcode1937 chrome/test/BUILD.gn:1937: "//chrome/browser/resources/settings/", On 2016/11/01 at 19:33:54, Dan Beam wrote: > ...
4 years, 1 month ago (2016-11-01 20:41:08 UTC) #49
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/2454023002/240001
4 years, 1 month ago (2016-11-01 20:41:43 UTC) #52
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 1 month ago (2016-11-01 21:39:04 UTC) #53
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 21:42:42 UTC) #55
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/9128a695732eba4729713506cf40268e1aada67a
Cr-Commit-Position: refs/heads/master@{#429122}

Powered by Google App Engine
This is Rietveld 408576698