|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by dpapad Modified:
4 years, 4 months ago Reviewers:
tommycli 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 Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMD Settings: Remove iron-pages usage from <settings-sync-page>.
This facilitates the searching algorithm to ignore hidden nodes.
<iron-pages> hides the currently not displayed pages using a custom CSS
:host > ::content > :not(.iron-selected) { display: none !important; }
which bypasses the searching algorithm's visibility checks. Using the
"hidden" attribute instead of <iron-pages> fixes the issue.
BUG=608535
TEST=When logged in to chrome and after sync prefs have been fetched, search
for "Please wait". There should be no search hit in the "People" section.
Previously a search hit occurred within a hidden message that was not applicable
to the current state of the user.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/9474e1a879494292768c724190da09fd77b64a06
Cr-Commit-Position: refs/heads/master@{#411514}
Patch Set 1 #Patch Set 2 : Comment out problematic lines. #Patch Set 3 : Fix test. #
Total comments: 6
Patch Set 4 : Alternate hack after discussing with Tommy. #
Total comments: 2
Patch Set 5 : nit #
Messages
Total messages: 25 (14 generated)
Description was changed from
==========
MD Settings: Remove iron-pages usage from <settings-sync-page>.
This facilitates the searching algorithm to ignore hidden nodes.
<iron-pages> hides the currently not displayed pages using a custom CSS
:host > ::content > :not(.iron-selected) { display: none !important; }
which bypasses the searching algorithm's visibility checks. Using the
"hidden" attribute instead of <iron-pages> fixes the issue.
BUG=608535
TEST=When logged in to chrome, search for "Please wait". There should be no
search hit in the "People" section. Previously a search hit occurred within a
hidden message that was not applicable to the current state of the user.
==========
to
==========
MD Settings: Remove iron-pages usage from <settings-sync-page>.
This facilitates the searching algorithm to ignore hidden nodes.
<iron-pages> hides the currently not displayed pages using a custom CSS
:host > ::content > :not(.iron-selected) { display: none !important; }
which bypasses the searching algorithm's visibility checks. Using the
"hidden" attribute instead of <iron-pages> fixes the issue.
BUG=608535
TEST=When logged in to chrome, search for "Please wait". There should be no
search hit in the "People" section. Previously a search hit occurred within a
hidden message that was not applicable to the current state of the user.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
The CQ bit was checked by dpapad@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by dpapad@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from
==========
MD Settings: Remove iron-pages usage from <settings-sync-page>.
This facilitates the searching algorithm to ignore hidden nodes.
<iron-pages> hides the currently not displayed pages using a custom CSS
:host > ::content > :not(.iron-selected) { display: none !important; }
which bypasses the searching algorithm's visibility checks. Using the
"hidden" attribute instead of <iron-pages> fixes the issue.
BUG=608535
TEST=When logged in to chrome, search for "Please wait". There should be no
search hit in the "People" section. Previously a search hit occurred within a
hidden message that was not applicable to the current state of the user.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
MD Settings: Remove iron-pages usage from <settings-sync-page>.
This facilitates the searching algorithm to ignore hidden nodes.
<iron-pages> hides the currently not displayed pages using a custom CSS
:host > ::content > :not(.iron-selected) { display: none !important; }
which bypasses the searching algorithm's visibility checks. Using the
"hidden" attribute instead of <iron-pages> fixes the issue.
BUG=608535
TEST=When logged in to chrome and after sync prefs have been fetched, search
for "Please wait". There should be no search hit in the "People" section.
Previously a search hit occurred within a hidden message that was not applicable
to the current state of the user.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
dpapad@chromium.org changed reviewers: + tommycli@chromium.org
https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/people_page/sync_page.js (right): https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.js:127: //if (settings.getCurrentRoute() == settings.Route.SYNC) Tommy, I commented out lines 127 and line 161 because otherwise the sync page is very unfriendly to searching. It displays different contents when force-rendered, and different when navigated to by a user. Do you think removing those lines will cause any problems?
https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/people_page/sync_page.html (right): https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.html:35: hidden$="[[!isStatus_(pages.CONFIGURE, pageStatus_)]]"> FYI, the diff looks pretty misleading after this point. The only real change is an indentation decrease, because I removed the surrounding <iron-pages> element.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Friendly ping. @Tommy see question in previous message.
dpapad: sorry for lag https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/people_page/sync_page.js (right): https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.js:64: * The curernt page status. nit: typo https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.js:127: //if (settings.getCurrentRoute() == settings.Route.SYNC) On 2016/08/11 01:25:20, dpapad wrote: > Tommy, I commented out lines 127 and line 161 because otherwise the sync page is > very unfriendly to searching. It displays different contents when > force-rendered, and different when navigated to by a user. > > Do you think removing those lines will cause any problems? Fuuu I think that would be bad... I think I need to rework how this works before it will play nice with search.
https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/people_page/sync_page.js (right): https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.js:64: * The curernt page status. On 2016/08/11 at 22:14:28, tommycli wrote: > nit: typo Fixed. https://codereview.chromium.org/2230833003/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.js:127: //if (settings.getCurrentRoute() == settings.Route.SYNC) On 2016/08/11 at 22:14:28, tommycli wrote: > On 2016/08/11 01:25:20, dpapad wrote: > > Tommy, I commented out lines 127 and line 161 because otherwise the sync page is > > very unfriendly to searching. It displays different contents when > > force-rendered, and different when navigated to by a user. > > > > Do you think removing those lines will cause any problems? > > Fuuu I think that would be bad... I think I need to rework how this works before it will play nice with search. Per our discussion, when the didNavigateToSyncPage() is called the C++ side of things is being put into a "setup" mode, which is undesirable when the user has not visited the page manually. So instead of commenting those lines out and invoking "setup" mode from a forced-rendering, changed the default PageStatus to CONFIGURE instead. This results in reasonable behavior for the most frequent case (when no timeout occurred).
lgtm thanks! nit: https://codereview.chromium.org/2230833003/diff/60001/chrome/browser/resource... File chrome/browser/resources/settings/people_page/sync_page.js (right): https://codereview.chromium.org/2230833003/diff/60001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.js:155: isStatus_: function(pageStatus) { err maybe make this argument name expectedPageStatus or something to disambiguate.
The CQ bit was checked by dpapad@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2230833003/diff/60001/chrome/browser/resource... File chrome/browser/resources/settings/people_page/sync_page.js (right): https://codereview.chromium.org/2230833003/diff/60001/chrome/browser/resource... chrome/browser/resources/settings/people_page/sync_page.js:155: isStatus_: function(pageStatus) { On 2016/08/11 at 23:03:32, tommycli wrote: > err maybe make this argument name expectedPageStatus or something to disambiguate. Done.
The CQ bit was unchecked by dpapad@chromium.org
The CQ bit was checked by dpapad@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tommycli@chromium.org Link to the patchset: https://codereview.chromium.org/2230833003/#ps80001 (title: "nit")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from
==========
MD Settings: Remove iron-pages usage from <settings-sync-page>.
This facilitates the searching algorithm to ignore hidden nodes.
<iron-pages> hides the currently not displayed pages using a custom CSS
:host > ::content > :not(.iron-selected) { display: none !important; }
which bypasses the searching algorithm's visibility checks. Using the
"hidden" attribute instead of <iron-pages> fixes the issue.
BUG=608535
TEST=When logged in to chrome and after sync prefs have been fetched, search
for "Please wait". There should be no search hit in the "People" section.
Previously a search hit occurred within a hidden message that was not applicable
to the current state of the user.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
MD Settings: Remove iron-pages usage from <settings-sync-page>.
This facilitates the searching algorithm to ignore hidden nodes.
<iron-pages> hides the currently not displayed pages using a custom CSS
:host > ::content > :not(.iron-selected) { display: none !important; }
which bypasses the searching algorithm's visibility checks. Using the
"hidden" attribute instead of <iron-pages> fixes the issue.
BUG=608535
TEST=When logged in to chrome and after sync prefs have been fetched, search
for "Please wait". There should be no search hit in the "People" section.
Previously a search hit occurred within a hidden message that was not applicable
to the current state of the user.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/9474e1a879494292768c724190da09fd77b64a06
Cr-Commit-Position: refs/heads/master@{#411514}
==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/9474e1a879494292768c724190da09fd77b64a06 Cr-Commit-Position: refs/heads/master@{#411514} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
