Chromium Code Reviews
DescriptionDevTools: proper management of ResourceTreeModel in NetworkProject
This patch cleans up NetworkProject handling of ResourceTreeModel.
This patch:
- stops NetworkProject from listening to MainFrameNavigated event.
Listening to frameDetached and frameWillNavigate is enough
- cleans up only those UISourceCodes which were created by
resourceTreeModel (via _acceptsResource method).
- stops listening to suspendedStateChanged method. This is not needed
anymore because cssmodel / debuggermodel / sourcemaps are properly
added and removed in case of target suspension/resume.
This patch also fixes a bug: calling method removeUISourceCode on
ContentProviderBasedProject is incorrect.
Drive-By: un-unrestrict ResourceTreeModel.
R=dgozman
BUG=670180
Review-Url: https://codereview.chromium.org/2833583003
Cr-Commit-Position: refs/heads/master@{#469815}
Committed: https://chromium.googlesource.com/chromium/src/+/07cf0b557a5fdf69dd0cd0bf95909a9d4c762e25
Patch Set 1 #
Total comments: 7
Patch Set 2 : changed tests #
Total comments: 1
Patch Set 3 : rebaseline #
Total comments: 8
Patch Set 4 : address comments #
Depends on Patchset: Messages
Total messages: 29 (21 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||