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

Issue 1129473003: DevTools: respond with error when Debugger command is sent to disabled debugger agent (Closed)

Created:
5 years, 7 months ago by yurys
Modified:
5 years, 7 months ago
Reviewers:
kozy, dgozman, sergeyv, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, arv+blink, vivekg_samsung, vivekg, yurys+blink_chromium.org, lushnikov+blink_chromium.org, loislo+blink_chromium.org, pfeldman+blink_chromium.org, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

DevTools: respond with error when Debugger command is sent to disabled debugger agent InspectorBackendDispatcher now will respond with error message if debugger command arrives to disabled debugger agent. DOMDebugger will also respond with an error on attempt to add breakpoint if DOM or Debugger is not enabled. DebuggerScript.js is only compiled when ScriptDebugServer::enabled is called. No lazy compilation anymore. BUG=481845 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195053

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments, added checks in DOMDebugger #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : Renamed test #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Removed assert from SDS::getInternalProperties #

Patch Set 8 : Rebased #

Messages

Total messages: 37 (15 generated)
yurys
5 years, 7 months ago (2015-05-05 12:32:19 UTC) #3
sergeyv
lets add the similar check to domdebuggerAgent https://codereview.chromium.org/1129473003/diff/1/Source/bindings/core/v8/ScriptDebugServer.h File Source/bindings/core/v8/ScriptDebugServer.h (right): https://codereview.chromium.org/1129473003/diff/1/Source/bindings/core/v8/ScriptDebugServer.h#newcode63 Source/bindings/core/v8/ScriptDebugServer.h:63: static bool ...
5 years, 7 months ago (2015-05-05 12:41:10 UTC) #4
yurys
Added similar check for DOMDebugger. https://codereview.chromium.org/1129473003/diff/1/Source/bindings/core/v8/ScriptDebugServer.h File Source/bindings/core/v8/ScriptDebugServer.h (right): https://codereview.chromium.org/1129473003/diff/1/Source/bindings/core/v8/ScriptDebugServer.h#newcode63 Source/bindings/core/v8/ScriptDebugServer.h:63: static bool isDebugContext(v8::Local<v8::Context>); On ...
5 years, 7 months ago (2015-05-05 13:13:02 UTC) #5
yurys
There is one issue with this patch. We've got a workaround for backward compatibility in ...
5 years, 7 months ago (2015-05-05 13:22:57 UTC) #6
pfeldman
https://codereview.chromium.org/1129473003/diff/20001/Source/core/inspector/CodeGeneratorInspector.py File Source/core/inspector/CodeGeneratorInspector.py (right): https://codereview.chromium.org/1129473003/diff/20001/Source/core/inspector/CodeGeneratorInspector.py#newcode1729 Source/core/inspector/CodeGeneratorInspector.py:1729: agent_enablement_check += " reportProtocolError(callId, ServerError, error);\n" - This is ...
5 years, 7 months ago (2015-05-05 14:00:13 UTC) #7
yurys
Pavel, what are your thoughts re comment #6 ? On 2015/05/05 14:00:13, pfeldman_ooo_may11 wrote: > ...
5 years, 7 months ago (2015-05-05 14:17:07 UTC) #8
pfeldman
> I don't remember us agreeing on polluting code with enablement checks all over > ...
5 years, 7 months ago (2015-05-05 14:19:26 UTC) #9
yurys
Reverted changed to the code generator. Added manual checks. PTAL.
5 years, 7 months ago (2015-05-06 08:34:38 UTC) #10
sergeyv
lgtm
5 years, 7 months ago (2015-05-06 10:04:41 UTC) #11
yurys
Runtime.getProperties now will fail on attempt to get object's internal properties if debugger agent is ...
5 years, 7 months ago (2015-05-06 10:47:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129473003/80001
5 years, 7 months ago (2015-05-06 13:06:03 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129473003/80001
5 years, 7 months ago (2015-05-06 13:06:26 UTC) #18
pfeldman
I don't see how we can explain runtime agent not working to the users. It ...
5 years, 7 months ago (2015-05-06 13:36:04 UTC) #20
yurys
On 2015/05/06 13:36:04, pfeldman_ooo_may11 wrote: > I don't see how we can explain runtime agent ...
5 years, 7 months ago (2015-05-07 07:17:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129473003/100001
5 years, 7 months ago (2015-05-07 07:30:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129473003/120001
5 years, 7 months ago (2015-05-07 10:25:19 UTC) #27
commit-bot: I haz the power
Failed to apply patch for Source/core/inspector/InspectorDOMDebuggerAgent.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 7 months ago (2015-05-07 12:01:14 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129473003/140001
5 years, 7 months ago (2015-05-07 13:12:42 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195053
5 years, 7 months ago (2015-05-07 14:47:14 UTC) #34
tasak
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1124083003/ by tasak@google.com. ...
5 years, 7 months ago (2015-05-08 08:54:47 UTC) #35
yurys
On 2015/05/08 08:54:47, tasak wrote: > A revert of this CL (patchset #8 id:140001) has ...
5 years, 7 months ago (2015-05-08 09:01:02 UTC) #36
yurys
5 years, 7 months ago (2015-05-08 13:54:21 UTC) #37
Message was sent while issue was closed.
Fix for the test is in cq: https://codereview.chromium.org/1132793002/

Powered by Google App Engine
This is Rietveld 408576698