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

Issue 2774003002: MD Settings: Don't search inside <dialog> elements. (Closed)

Created:
3 years, 9 months ago by dpapad
Modified:
3 years, 8 months ago
Reviewers:
tommycli, 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/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Don't search inside <dialog> elements. The disconnectDialog inside people-page was being searched erroneously causing the people section to be returned as a result, instead of displaying the "no results found" message. BUG=704880 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2774003002 Cr-Commit-Position: refs/heads/master@{#459549} Committed: https://chromium.googlesource.com/chromium/src/+/2ad0e26fba82875b90424b386851cfd1abd855a0

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -5 lines) Patch
M chrome/browser/resources/settings/search_settings.js View 1 chunk +1 line, -5 lines 2 comments Download
M chrome/test/data/webui/settings/search_settings_test.js View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
dpapad
3 years, 9 months ago (2017-03-24 18:31:10 UTC) #6
tommycli
lgtm except: https://codereview.chromium.org/2774003002/diff/1/chrome/browser/resources/settings/search_settings.js File chrome/browser/resources/settings/search_settings.js (left): https://codereview.chromium.org/2774003002/diff/1/chrome/browser/resources/settings/search_settings.js#oldcode55 chrome/browser/resources/settings/search_settings.js:55: 'PAPER-ITEM', I assume you've determined this is ...
3 years, 9 months ago (2017-03-24 19:07:19 UTC) #7
dpapad
https://codereview.chromium.org/2774003002/diff/1/chrome/browser/resources/settings/search_settings.js File chrome/browser/resources/settings/search_settings.js (left): https://codereview.chromium.org/2774003002/diff/1/chrome/browser/resources/settings/search_settings.js#oldcode55 chrome/browser/resources/settings/search_settings.js:55: 'PAPER-ITEM', On 2017/03/24 at 19:07:19, tommycli wrote: > I ...
3 years, 9 months ago (2017-03-24 19:13:22 UTC) #8
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/2774003002/1
3 years, 9 months ago (2017-03-24 20:43:02 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/2ad0e26fba82875b90424b386851cfd1abd855a0
3 years, 9 months ago (2017-03-24 21:01:15 UTC) #15
Dan Beam
does this affect cbd? why not just add no-search on more dialogs?
3 years, 8 months ago (2017-03-27 11:10:35 UTC) #17
dpapad
3 years, 8 months ago (2017-03-27 17:34:21 UTC) #18
Message was sent while issue was closed.
On 2017/03/27 at 11:10:35, dbeam wrote:
> does this affect cbd?
No it does not. The CBD dialog does not exist in the DOM (it is behind a dom-if,
with "restamp" too), so it was never searched, even before this CL. This is by
design, since we had decided to not search dialogs to begin with.

> 
> why not just add no-search on more dialogs?
We could do this, but as said above, there isn't any dialog we want to search,
so it makes more sense to add 'DIALOG' to the ignored elements set instead of
adding multiple 'no-search' attributes.

Powered by Google App Engine
This is Rietveld 408576698