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

Issue 2428823002: DevTools: properly restore selected DOMNode in Elements panel. (Closed)

Created:
4 years, 2 months ago by lushnikov
Modified:
4 years, 2 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: properly restore selected DOMNode in Elements panel. Since the http://crrev.com/b4d6bf98e, we started sending two "documentUpdated" events for every page reload. It's not a bad thing by itself (but probably needs addressing in a follow-up), but the element restoration logic is unprepared for this. This patch re-writes the element restoring logic in the elements panel. BUG=645645 Committed: https://crrev.com/247328a16045ca03a0684b76cf1f7de988550453 Cr-Commit-Position: refs/heads/master@{#426732}

Patch Set 1 #

Patch Set 2 : nit #

Patch Set 3 : test #

Total comments: 14

Patch Set 4 : address comments #

Patch Set 5 : rebaseline test #

Patch Set 6 : make test non-flaky #

Patch Set 7 : fix test #

Messages

Total messages: 37 (20 generated)
lushnikov
please, take a look
4 years, 2 months ago (2016-10-18 21:26:45 UTC) #4
dgozman
https://codereview.chromium.org/2428823002/diff/40001/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js File third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js (right): https://codereview.chromium.org/2428823002/diff/40001/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js#newcode393 third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js:393: .then(onNodeRestored.bind(this, this._selectedNodeOnReset)) missing semicolon https://codereview.chromium.org/2428823002/diff/40001/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js#newcode408 third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js:408: this._preselectNode(defaultSelection); Should recalc ...
4 years, 2 months ago (2016-10-19 01:10:38 UTC) #9
lushnikov
mostly done. please, take another look! https://codereview.chromium.org/2428823002/diff/40001/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js File third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js (right): https://codereview.chromium.org/2428823002/diff/40001/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js#newcode393 third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js:393: .then(onNodeRestored.bind(this, this._selectedNodeOnReset)) On ...
4 years, 2 months ago (2016-10-19 20:52:12 UTC) #10
dgozman
lgtm
4 years, 2 months ago (2016-10-19 21:25:58 UTC) #11
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/2428823002/60001
4 years, 2 months ago (2016-10-19 22:04:09 UTC) #13
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/318779)
4 years, 2 months ago (2016-10-19 23:27:21 UTC) #15
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/2428823002/100001
4 years, 2 months ago (2016-10-20 00:41:02 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/247126) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-10-20 03:07:22 UTC) #20
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/2428823002/100001
4 years, 2 months ago (2016-10-20 16:20:23 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-20 17:55:15 UTC) #24
Mathieu
A revert of this CL (patchset #6 id:100001) has been created in https://chromiumcodereview.appspot.com/2434343002/ by mathp@chromium.org. ...
4 years, 2 months ago (2016-10-20 20:10:48 UTC) #25
lushnikov
Thank you for the revert. Fixed the test, doesn't flake any more.
4 years, 2 months ago (2016-10-21 02:40:08 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/2428823002/120001
4 years, 2 months ago (2016-10-21 02:40:47 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-21 05:14:42 UTC) #32
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/9cb88eeb6589fb10e8b7e87c76b54ee16d2f844e Cr-Commit-Position: refs/heads/master@{#426525}
4 years, 2 months ago (2016-10-21 13:20:01 UTC) #34
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/247328a16045ca03a0684b76cf1f7de988550453 Cr-Commit-Position: refs/heads/master@{#426732}
4 years, 2 months ago (2016-10-21 13:27:35 UTC) #36
lushnikov
4 years, 1 month ago (2016-10-25 23:27:43 UTC) #37
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://chromiumcodereview.appspot.com/2446163004/ by lushnikov@chromium.org.

The reason for reverting is: Reverting this patch since it doesn't eliminate
issue..

Powered by Google App Engine
This is Rietveld 408576698