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

Issue 2795193003: DevTools: carefully cleanup script UISourceCodes (Closed)

Created:
3 years, 8 months ago by lushnikov
Modified:
3 years, 8 months ago
Reviewers:
dgozman
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/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: 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)
lushnikov
this is a re-implementation of https://codereview.chromium.org/2739983002/ which you've already liked. Please, take a look!
3 years, 8 months ago (2017-04-04 20:48:49 UTC) #1
dgozman
I don't like that DebuggerModel keeps the scripts, but notifies clients about them being "removed". ...
3 years, 8 months ago (2017-04-05 18:22:56 UTC) #6
lushnikov
please, take another look https://codereview.chromium.org/2795193003/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-bindings-frame-attach-detach-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-bindings-frame-attach-detach-expected.txt (right): https://codereview.chromium.org/2795193003/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-bindings-frame-attach-detach-expected.txt#newcode31 third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-bindings-frame-attach-detach-expected.txt:31: [+] _test_attachFrame.js On 2017/04/05 18:22:55, ...
3 years, 8 months ago (2017-04-06 03:32:35 UTC) #7
dgozman
lgtm
3 years, 8 months ago (2017-04-06 19:36:58 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/2795193003/20001
3 years, 8 months ago (2017-04-06 20:23:20 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 22:17:16 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/96fe1d78f2701bb68c721282a583...

Powered by Google App Engine
This is Rietveld 408576698