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

Issue 2302703002: MD Settings: fix infinite setInterval loop (Closed)

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

Description

MD Settings: fix infinite setInterval loop Pages that are not shown (but have been stamped) enter an infinite doWhenReady loop when transitioning to another page. We shouldn't use the doWhenReady hack if the page shouldn't be shown anyway. BUG=643022 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/0e52c54ca4ad014ba5ac13451d1da456b06a4b80 Cr-Commit-Position: refs/heads/master@{#416014}

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M chrome/browser/resources/settings/settings_main/settings_main.html View 2 chunks +5 lines, -3 lines 2 comments Download
M chrome/browser/resources/settings/settings_page/main_page_behavior.js View 2 chunks +13 lines, -1 line 5 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (4 generated)
michaelpg
shotgunning the review to include interested parties
4 years, 3 months ago (2016-09-01 01:59:58 UTC) #3
Dan Beam
lgtm but can haz test? https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode65 chrome/browser/resources/settings/settings_page/main_page_behavior.js:65: // Height is irrelevant ...
4 years, 3 months ago (2016-09-01 03:05:15 UTC) #4
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/2302703002/1
4 years, 3 months ago (2016-09-01 18:08:40 UTC) #6
michaelpg
On 2016/09/01 03:05:15, Dan Beam wrote: > lgtm but can haz test? tests are sorely ...
4 years, 3 months ago (2016-09-01 18:09:42 UTC) #7
tommycli
https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode66 chrome/browser/resources/settings/settings_page/main_page_behavior.js:66: if (!settings.Route[this.route].contains(settings.getCurrentRoute())) holy shit that's clever.
4 years, 3 months ago (2016-09-01 18:14:24 UTC) #8
dschuyler
https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_main/settings_main.html File chrome/browser/resources/settings/settings_main/settings_main.html (right): https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_main/settings_main.html#newcode62 chrome/browser/resources/settings/settings_main/settings_main.html:62: prefs="{{prefs}}" nit: unwrap https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_main/settings_main.html#newcode81 chrome/browser/resources/settings/settings_main/settings_main.html:81: prefs="{{prefs}}" nit: unwrap https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js ...
4 years, 3 months ago (2016-09-01 18:28:42 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-01 19:20:39 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0e52c54ca4ad014ba5ac13451d1da456b06a4b80 Cr-Commit-Position: refs/heads/master@{#416014}
4 years, 3 months ago (2016-09-01 19:23:49 UTC) #12
michaelpg
https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode66 chrome/browser/resources/settings/settings_page/main_page_behavior.js:66: if (!settings.Route[this.route].contains(settings.getCurrentRoute())) On 2016/09/01 18:14:24, tommycli wrote: > holy ...
4 years, 3 months ago (2016-09-01 19:34:46 UTC) #13
dschuyler
4 years, 3 months ago (2016-09-01 20:38:02 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/se...
File chrome/browser/resources/settings/settings_page/main_page_behavior.js
(right):

https://codereview.chromium.org/2302703002/diff/1/chrome/browser/resources/se...
chrome/browser/resources/settings/settings_page/main_page_behavior.js:69: return
false;
Please combine these into:

return this.scrollHeight > 0 ||
    !settings.Route[this.route].contains(settings.getCurrentRoute());

Powered by Google App Engine
This is Rietveld 408576698