DescriptionDevTools: carefully cleanup script UISourceCodes
This patch starts removing script UISourceCodes when the parent
execution context gets destroyed.
Note: this patch removes only script-related UISourceCodes in
NetworkProject. The "debugger://" UISourceCodes, created by
DefaultScriptMapping, are kept intact. They come handy to reveal
location in old stacktrace/messages.
With this patch, all UISourceCodes created by networkProject have
a lifetime, defined by their parent model:
- DebuggerModel defines life-time for Script-related UISourceCodes
- CSSModel defines life time for CSS-related UISourceCodes
- SASSSourceMapping/CompilerScriptMapping define life-time of SourceMap
Sources
- ResourceModel defines life-time for document/font/images
UISourceCodes
For this reason, the NavigatorView no longer needs to listen to
FrameDetached/FrameNavigated events.
Drive-By: move DebuggerModel.scripts to the native Map.
R=dgozman
BUG=670180
Review-Url: https://codereview.chromium.org/2795193003
Cr-Commit-Position: refs/heads/master@{#462645}
Committed: https://chromium.googlesource.com/chromium/src/+/96fe1d78f2701bb68c721282a5831026243e3a3d
Patch Set 1 #
Total comments: 8
Patch Set 2 : address comments #Messages
Total messages: 16 (10 generated)
|