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

Issue 2219393003: DevTools: Runtime.compileScript with persistScript = false should not report script (Closed)

Created:
4 years, 4 months ago by lushnikov
Modified:
4 years, 4 months ago
Reviewers:
kozy, 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, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Runtime.compileScript with persistScript = false should not report script The Runtime.complieScript with persistScript = false flag is used to dynamically report compilation error while user is typing in javascript. There's no good reason this function reports scripts to front-end. This leads to a memory leak, and also spoils the "search across all files" experience (all the script replicas are searchable as well). BUG=none R=dgozman, kozyatinskiy Committed: https://crrev.com/2ff2c6e7664bcd26d82800023a14f754143a6052 Cr-Commit-Position: refs/heads/master@{#410891}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 6

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -28 lines) Patch
M third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html View 1 2 1 chunk +43 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript-expected.txt View 3 chunks +17 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8Debugger.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8Debugger.cpp View 1 2 3 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
lushnikov
please, take a look
4 years, 4 months ago (2016-08-09 03:11:38 UTC) #3
kozy
https://codereview.chromium.org/2219393003/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html File third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html (right): https://codereview.chromium.org/2219393003/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html#newcode9 third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html:9: InspectorTest.sendCommand("Debugger.enable", {}, onDebuggerEnabled); We can use more promises! InspectorTest.sendCommandPromise("Debugger.enable", ...
4 years, 4 months ago (2016-08-09 16:25:44 UTC) #4
lushnikov
https://codereview.chromium.org/2219393003/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html File third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html (right): https://codereview.chromium.org/2219393003/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html#newcode9 third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html:9: InspectorTest.sendCommand("Debugger.enable", {}, onDebuggerEnabled); Unfortunately, there's no waitForEventPromise! Without it ...
4 years, 4 months ago (2016-08-09 20:16:13 UTC) #5
dgozman
https://codereview.chromium.org/2219393003/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html File third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html (right): https://codereview.chromium.org/2219393003/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html#newcode41 third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html:41: hasReportedScript = false; Unused. https://codereview.chromium.org/2219393003/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8Debugger.h File third_party/WebKit/Source/platform/v8_inspector/V8Debugger.h (right): https://codereview.chromium.org/2219393003/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8Debugger.h#newcode117 ...
4 years, 4 months ago (2016-08-09 20:43:09 UTC) #6
lushnikov
https://codereview.chromium.org/2219393003/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html File third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html (right): https://codereview.chromium.org/2219393003/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html#newcode41 third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-compileScript.html:41: hasReportedScript = false; On 2016/08/09 20:43:08, dgozman wrote: > ...
4 years, 4 months ago (2016-08-09 22:24:29 UTC) #7
dgozman
Alexey, please coordinate the isInternalScript removal with this.
4 years, 4 months ago (2016-08-09 23:01:34 UTC) #10
kozy
lgtm
4 years, 4 months ago (2016-08-10 00:11:14 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/2219393003/40001
4 years, 4 months ago (2016-08-10 00:11:54 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-10 00:17:18 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 00:21:06 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2ff2c6e7664bcd26d82800023a14f754143a6052
Cr-Commit-Position: refs/heads/master@{#410891}

Powered by Google App Engine
This is Rietveld 408576698