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

Issue 2574603002: DevTools: Fix Elements tab event listener removal (Closed)

Created:
4 years ago by phulce
Modified:
4 years ago
Reviewers:
lushnikov
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, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Fix Elements tab event listener removal Upon removal of the last event listener of a given type, the entire tree for that type would be removed from the DOM and never readded. It's not clear why it was originally being removed in the first place since the hidden check will take care of this case already. Updated the behavior to simply collapse instead of remove. BUG=672867 Committed: https://crrev.com/3c1e09c2062cfd0a37a47837eba5d2654d7a7198 Cr-Commit-Position: refs/heads/master@{#439547}

Patch Set 1 #

Total comments: 1

Patch Set 2 : add test #

Total comments: 6

Patch Set 3 : address feedback #

Messages

Total messages: 18 (7 generated)
phulce
4 years ago (2016-12-13 19:07:51 UTC) #3
lushnikov
https://codereview.chromium.org/2574603002/diff/1/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js File third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js (left): https://codereview.chromium.org/2574603002/diff/1/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js#oldcode330 third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js:330: parent.parent.removeChild(parent); The old behavior is better! We shouldn't show ...
4 years ago (2016-12-14 01:40:05 UTC) #4
pfeldman
Time to write a test?
4 years ago (2016-12-14 01:42:16 UTC) #5
phulce
On 2016/12/14 01:40:05, lushnikov wrote: > https://codereview.chromium.org/2574603002/diff/1/third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js > File > third_party/WebKit/Source/devtools/front_end/components/EventListenersView.js > (left): > > ...
4 years ago (2016-12-14 17:14:10 UTC) #6
lushnikov
Ah, I see now, thanks Let's add a test to verify the behavior - and ...
4 years ago (2016-12-14 18:44:04 UTC) #7
phulce
On 2016/12/14 18:44:04, lushnikov wrote: > Ah, I see now, thanks > > Let's add ...
4 years ago (2016-12-14 19:10:28 UTC) #8
lushnikov
lgtm https://codereview.chromium.org/2574603002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js (right): https://codereview.chromium.org/2574603002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js#newcode453 third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js:453: const treeOutline = InspectorTest.eventListenersWidget()._eventListenersView._treeOutline; style: const -> var. ...
4 years ago (2016-12-15 22:33:16 UTC) #9
phulce
https://codereview.chromium.org/2574603002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js (right): https://codereview.chromium.org/2574603002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js#newcode453 third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js:453: const treeOutline = InspectorTest.eventListenersWidget()._eventListenersView._treeOutline; On 2016/12/15 22:33:16, lushnikov wrote: ...
4 years ago (2016-12-16 18:41:56 UTC) #10
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/2574603002/40001
4 years ago (2016-12-19 18:39:52 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-19 20:49:39 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-19 20:52:51 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3c1e09c2062cfd0a37a47837eba5d2654d7a7198
Cr-Commit-Position: refs/heads/master@{#439547}

Powered by Google App Engine
This is Rietveld 408576698