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

Issue 1754483002: [DevTools] Added setBlackboxPatterns method to protocol (Closed)

Created:
4 years, 9 months ago by kozy
Modified:
4 years, 8 months ago
Reviewers:
dgozman, pfeldman
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, sergeyv+blink_chromium.org, kinuko+watch, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@provide-hash-for-anonymous-scripts
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Added setBlackboxPatterns method to protocol This method set array of patterns that determines blackbox state on backend. Pattern can be one of two types: regexp for url or script's hash. DebuggerAgent preserves state of blackbox on reattach. BUG=341082 R=dgozman@chromium.org,pfeldman@chromium.org

Patch Set 1 : #

Patch Set 2 : rebased #

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 22

Patch Set 6 : #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+570 lines, -249 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackbox-pattern.html View 1 2 3 4 1 chunk +116 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackbox-pattern-expected.txt View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackbox-ranges.html View 1 2 3 4 3 chunks +20 lines, -9 lines 1 comment Download
A + third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackbox-ranges-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackboxed-ranges.html View 1 chunk +0 lines, -104 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackboxed-ranges-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -56 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-operation-breakpoints.html View 1 2 3 4 5 1 chunk +9 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-provisional.html View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-provisional-expected.txt View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-exceptions.html View 1 2 3 4 5 1 chunk +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp View 1 2 3 4 1 chunk +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js View 1 2 3 4 5 6 chunks +62 lines, -1 line 3 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js View 1 2 3 4 5 4 chunks +64 lines, -9 lines 1 comment Download
M third_party/WebKit/Source/devtools/front_end/sdk/Script.js View 1 2 3 4 3 chunks +9 lines, -7 lines 1 comment Download
M third_party/WebKit/Source/devtools/protocol.json View 1 2 3 4 5 5 chunks +27 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.h View 1 2 3 4 3 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp View 1 2 3 4 5 11 chunks +127 lines, -35 lines 2 comments Download

Messages

Total messages: 24 (10 generated)
kozy
ptal
4 years, 9 months ago (2016-03-01 02:24:26 UTC) #5
kozy
New version uploaded. Ptal!
4 years, 9 months ago (2016-03-03 01:16:07 UTC) #7
pfeldman
releasing early comments while i continue review. https://codereview.chromium.org/1754483002/diff/80001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1754483002/diff/80001/third_party/WebKit/Source/devtools/protocol.json#newcode3394 third_party/WebKit/Source/devtools/protocol.json:3394: "id": "BlackboxPatternType", ...
4 years, 9 months ago (2016-03-03 01:20:52 UTC) #8
pfeldman
https://codereview.chromium.org/1754483002/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js File third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js (right): https://codereview.chromium.org/1754483002/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js#newcode186 third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js:186: .filter(item => !item.disabled) Did closure compiler resolve item type? ...
4 years, 9 months ago (2016-03-03 01:25:39 UTC) #9
kozy
All done. Please take a look! https://codereview.chromium.org/1754483002/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js File third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js (right): https://codereview.chromium.org/1754483002/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js#newcode188 third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js:188: return debuggerModel.setBlackboxPatterns(regexPatterns); On ...
4 years, 9 months ago (2016-03-03 20:14:18 UTC) #10
pfeldman
https://codereview.chromium.org/1754483002/diff/100001/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h File third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h (right): https://codereview.chromium.org/1754483002/diff/100001/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h#newcode84 third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h:84: void editBlackboxPatterns(ErrorString*, PassOwnPtr<protocol::Array<protocol::Debugger::BlackboxPattern>> patterns) override; setBlackboxPatterns https://codereview.chromium.org/1754483002/diff/100001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json ...
4 years, 9 months ago (2016-03-04 20:22:40 UTC) #11
kozy
All done. Please take a look. API methods were replaced with addBlackboxPatterns and clearBlackboxPatterns. https://codereview.chromium.org/1754483002/diff/100001/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h ...
4 years, 9 months ago (2016-03-06 01:13:09 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1754483002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1754483002/160001
4 years, 9 months ago (2016-03-06 01:16:11 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-06 02:26:41 UTC) #18
dgozman
https://codereview.chromium.org/1754483002/diff/160001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js File third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js (right): https://codereview.chromium.org/1754483002/diff/160001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js#newcode13 third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js:13: WebInspector.targetManager.observeTargets(this); Better do this at the end, after all ...
4 years, 9 months ago (2016-03-07 17:26:14 UTC) #19
pfeldman
https://codereview.chromium.org/1754483002/diff/160001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1754483002/diff/160001/third_party/WebKit/Source/devtools/protocol.json#newcode3805 third_party/WebKit/Source/devtools/protocol.json:3805: { "name": "patterns", "type": "array", "items": { "$ref": "BlackboxPattern"} ...
4 years, 9 months ago (2016-03-07 19:22:47 UTC) #20
kozy
All done! https://codereview.chromium.org/1754483002/diff/160001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js File third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js (right): https://codereview.chromium.org/1754483002/diff/160001/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js#newcode13 third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js:13: WebInspector.targetManager.observeTargets(this); On 2016/03/07 17:26:13, dgozman wrote: > ...
4 years, 9 months ago (2016-03-08 02:33:21 UTC) #21
dgozman
Please follow up with addChangeListener and breakpoints by hash. lgtm with comments https://codereview.chromium.org/1754483002/diff/200001/third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackbox-ranges.html File third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackbox-ranges.html ...
4 years, 9 months ago (2016-03-08 18:48:12 UTC) #23
kozy
4 years, 8 months ago (2016-04-19 21:46:30 UTC) #24
Message was sent while issue was closed.
We choose another approach to go with:
https://codereview.chromium.org/1902993002/

Powered by Google App Engine
This is Rietveld 408576698