Repository navigation
chore: enable debugger api specs - #14475
Merged
Merged
Conversation
deepak1556
requested review from
a team,
alexeykuzmin,
codebytere and
zcbenz
September 6, 2018 12:57
ckerr
approved these changes
Sep 6, 2018
ckerr
left a comment
Member
There was a problem hiding this comment.
Nice side cleanups wrt removing SmartPtr.get() and deprecated DictionaryValues
|
|
||
| bool Debugger::IsAttached() { | ||
| return agent_host_.get() ? agent_host_->IsAttached() : false; | ||
| return agent_host_ ? agent_host_->IsAttached() : false; |
Member
There was a problem hiding this comment.
(nit) slightly simpler:
return agent_host_ && agent_host_->IsAttached();
| agent_host_->DispatchProtocolMessage(this, json_args); | ||
| } | ||
|
|
||
| void Debugger::ClearPendingRequests() { |
Member
There was a problem hiding this comment.
Could test for pending_requests_.empty() first
|
|
||
| describe('debugger.attach', () => { | ||
| it('fails when devtools is already open', done => { | ||
| it('succeeds when devtools is already open', done => { |
deepak1556
force-pushed
the
debugger_patch
branch
from
September 6, 2018 13:38
e10476d to
7488747
Compare
codebytere
approved these changes
Sep 6, 2018
MarshallOfSound
approved these changes
Sep 6, 2018
|
No Release Notes |
Contributor
|
We have automatically backported this PR to "3-0-x", please check out #14479 |
codebytere
pushed a commit
that referenced
this pull request
Sep 6, 2018
Merged
codebytere
added a commit
that referenced
this pull request
Sep 6, 2018
* chore: enable debugger api specs (#14475) * backport base::Value converters
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Fixes #13343
When we force swap site instances the debugger isn't aware of those changes , some of the inspector protocol network notifications have been moved to the browser side https://bugs.chromium.org/p/chromium/issues/detail?id=791838 and they are fired as expected when the swap happens, the remaining navigation lifecycle events {loadingFinished, dataReceived} which are emitted by the renderer are lost. This patch fixes it by watching for render frame swaps and reconnecting the debugger session to it if one is available.
Checklist
npm testpassesRelease Notes
Notes: no-notes