Commit Graph

239 Commits

Author SHA1 Message Date
yulia
a2f0af32b2 Bug 1494796 - maintain backwards compatibility r=jdescottes
Introduce a flag to maintain backwards compatibility with old servers

Differential Revision: https://phabricator.services.mozilla.com/D34184

--HG--
extra : moz-landing-system : lando
2019-06-14 00:18:25 +00:00
yulia
542bcd0e56 Bug 1494796 - use getFront to retrieve threadClient; r=jdescottes
In order for a front to be available to getFront on a given target, it must be first --
registered on the target scope, and second -- set on the target's targetForm. This makes that update
for both browsing context and worker targets. This works as part of a work around until we can get
the server into better shape.

Differential Revision: https://phabricator.services.mozilla.com/D32698

--HG--
extra : moz-landing-system : lando
2019-06-14 00:18:19 +00:00
yulia
607a83590c Bug 1494796 - Removing threadClient specifics from DebuggerClient Special case resume; r=jdescottes,jlast
The resume case is much more complex than the other events, because we do an
unsafeSynchronize to send an unsolicited pause. In the old system, the resume response would have
been ignored, but that is no longer the case. With the new system, we do not want to send a response
to a resume action if it did not come from the UI. This also update the debugger panel code to
accept a resume.

Differential Revision: https://phabricator.services.mozilla.com/D32697

--HG--
extra : moz-landing-system : lando
2019-06-14 00:18:17 +00:00
yulia
844b51e01a Bug 1494796 - get rid of ThreadClient specifics in DebuggerClient, attach/detach methods and events; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32845

--HG--
extra : moz-landing-system : lando
2019-06-14 00:32:28 +00:00
yulia
ecc3907641 Bug 1494796 - get rid of ThreadClient specifics in DebuggerClient ; r=jdescottes
This is part one of removing threadClient specifics out of the debuggerClient. We were
managing messages from the thread client in a special way -- this was the "Unsolicited Pauses"
object that we had before. This patch updates the threadClient to use Front style events. This
required updating the spec for the threadClient, and several of the methods. What has not been fully
migrated here is the "resumed" event, as this is much more complex. This is taken care of in the
next patch.

Differential Revision: https://phabricator.services.mozilla.com/D32695

--HG--
extra : moz-landing-system : lando
2019-06-14 00:28:03 +00:00
yulia
650d7f9c31 Bug 1494796 - Convert ThreadClient into a Front; r=jdescottes
This is the first part of the threadClient refactor. It only moves the methods to the new
front. and does some basic fixes.

Differential Revision: https://phabricator.services.mozilla.com/D32692

--HG--
extra : moz-landing-system : lando
2019-06-14 00:14:58 +00:00
yulia
57a1e6ce79 Bug 1494796 - fork threadclient for backwards compatibility r=jdescottes
make sure we have a copy of thread client for old servers

Differential Revision: https://phabricator.services.mozilla.com/D34179

--HG--
rename : devtools/shared/client/thread-client.js => devtools/shared/client/deprecated-thread-client.js
extra : moz-landing-system : lando
2019-06-14 00:14:36 +00:00
yulia
a9f8c70111 Bug 1042642 - Use EventEmitter instead of EventSource for the threadClient; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29373

--HG--
extra : moz-landing-system : lando
2019-05-30 08:37:55 +00:00
yulia
29a61755bc Bug 1042642 - use EventEmitter instead of eventSource on the DebuggerClient; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29371

--HG--
extra : moz-landing-system : lando
2019-05-29 15:51:28 +00:00
Jason Laster
77d4bd0ad9 Bug 1552453 - Breakpoint doesnt pause in file during page load. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D32161

--HG--
extra : moz-landing-system : lando
2019-05-23 12:52:34 +00:00
Brian Hackett
c201146e83 Bug 1547084 Part 2 - Remove reverseStepIn and reverseStepOut logic, r=loganfsmyth.
--HG--
extra : rebase_source : 9cd48bddd6d4156036b5732a94d3a2c79fd3e992
2019-05-12 13:15:05 -10:00
Oriol Brufau
4be85f2295 Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214

--HG--
extra : moz-landing-system : lando
2019-05-14 06:46:30 +00:00
Daniel Varga
f59107b417 Backed out changeset a0a023dac829 (bug 1392760) for debugger failure at object-inspector/types 2019-05-06 03:14:57 +03:00
Oriol Brufau
4687ff5e88 Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214

--HG--
extra : moz-landing-system : lando
2019-04-26 15:32:50 +00:00
yulia
77f46589d6 Bug 1494796 - Use promise pattern rather than callback pattern for threadClient methods; r=ochameau
This is preparation for moving the threadClient to a front. Fronts do not support the
callback style that clients have, they only support promises. As such, this patch migrates all
instances of the threadClient using callback style methods to promises. I have cc'd the debugger
team so that they are aware of this change and it doesn't take them by surprise.

try run : https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=242251058&revision=dbd6cca9619ca0880e920d5b86fc6d6e0c728113

Differential Revision: https://phabricator.services.mozilla.com/D28966

--HG--
extra : moz-landing-system : lando
2019-05-02 15:39:20 +00:00
yulia
2a531fdb64 Bug 1529247 - remove unused pausedLongString method, threadLongString and arrayBuffer methods; r=ochameau
Finally! the goal of all of this: removing three functions from threadClient that really belong as part of source client. PauseLongString is never used except in tests. ThreadLongString is only ever used by sourceClient. Same goes for the arrayBuffer method. This clears all of that out.

Differential Revision: https://phabricator.services.mozilla.com/D21715

--HG--
extra : moz-landing-system : lando
2019-04-30 14:44:23 +00:00
yulia
ef38cc7174 Bug 1545021 - Convert ArrayBuffer to a Front and Protocoljs actor; r=ochameau,jdescottes
This introduces an ArrayBuffer front, so that we no longer need to go through the thread client to get an array buffer for the sourceFront (this is the only place it is used).

It also converts the arrayBufferActor to a protocol.js actor. I was running into an issue between them. I need to double check what this issue was. If these two refactors need to be split, I can do that, but for now it looks like it wasn’t that large of a change.

Differential Revision: https://phabricator.services.mozilla.com/D27878

--HG--
rename : devtools/shared/client/array-buffer-client.js => devtools/shared/fronts/array-buffer.js
extra : moz-landing-system : lando
2019-04-30 14:40:43 +00:00
yulia
9c5ed9f5ef Bug 1042642 - Remove eventSource from EnvironmentClient; r=jdescottes
After reviewing how the EnvironmentClient is used, it looks like the use of eventSource
might be some cruft from the past. Here is the try run:
https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=242251058&revision=df4bb52f188f79b8006e8c40401e5af2258493ce

with the exception of whatever is going on Window 7 (which appeares also on central), it looks like
things are working as expected. The environment client will eventually have the event emitter, once
it is moved to being a front.

adding @nchevobbe as a subscriber, as this touches a dependancy of the scratchpad.

Differential Revision: https://phabricator.services.mozilla.com/D28962

--HG--
extra : moz-landing-system : lando
2019-04-30 14:57:10 +00:00
Jason Laster
d831a88525 Bug 1547314 - Remove references to updatedSource. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D29036

--HG--
extra : moz-landing-system : lando
2019-04-29 17:52:58 +00:00
yulia
1aa3bce3f9 Bug 1544694 - move and rename SourceClient to SourceFront; r=ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D27709

--HG--
rename : devtools/shared/client/source-client.js => devtools/shared/fronts/source.js
extra : moz-landing-system : lando
2019-04-26 13:50:47 +00:00
yulia
47738413e6 Bug 1544694 - Convert Source Client to a Front; r=ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D27708

--HG--
extra : moz-landing-system : lando
2019-04-26 12:51:07 +00:00
yulia
418c70d897 Bug 1544694 - remove unused client getters 'request' and '_transport' from sourceClient; r=ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D27707

--HG--
extra : moz-landing-system : lando
2019-04-26 12:43:45 +00:00
yulia
854b687951 Bug 1544694 - remove unused method 'getExecutableLines' from sourceClient; r=ochameau,jdescottes,loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D27706

--HG--
extra : moz-landing-system : lando
2019-04-23 13:48:59 +00:00
Dorel Luca
e349607790 Backed out 2 changesets (bug 1544694) for XPCshell failures in devtools/server/tests/unit/test_blackboxing-01.js. CLOSED TREE
Backed out changeset 63d133aae187 (bug 1544694)
Backed out changeset fc739beb6782 (bug 1544694)
2019-04-23 13:09:41 +03:00
yulia
ffb0df9c92 Bug 1544694 - remove unused client getters 'request' and '_transport' from sourceClient; r=ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D27707

--HG--
extra : moz-landing-system : lando
2019-04-19 09:21:56 +00:00
yulia
a2dd505a24 Bug 1544694 - remove unused method 'getExecutableLines' from sourceClient; r=ochameau,jdescottes,loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D27706

--HG--
extra : moz-landing-system : lando
2019-04-17 16:15:15 +00:00
yulia
994e78fd2f Bug 1532567 - remove unused eval method from threadClient and threadActor; r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D21700

--HG--
extra : moz-landing-system : lando
2019-03-12 15:03:47 +00:00
Jason Laster
d11dedc8c5 Bug 1532791 - Breaking on exception even if option is off. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D22186

--HG--
extra : moz-landing-system : lando
2019-03-12 19:01:40 +00:00
Ciure Andrei
1cea309572 Backed out changeset e2316f37b988 (bug 1532791)for perma failing test_blackboxing-05.js, test_pause_exceptions-01.js CLOSED TREE 2019-03-12 19:45:39 +02:00
Jason Laster
34482fc99e Bug 1532791 - Breaking on exception even if option is off. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D22186

--HG--
extra : moz-landing-system : lando
2019-03-12 15:41:39 +00:00
yulia
f70aa72ebf Bug 1529247 - remove unused cachedScript property; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D21672

--HG--
extra : moz-landing-system : lando
2019-03-12 14:02:05 +00:00
yulia
408d434de2 Bug 1529247 - remove unused releaseMany method from thread client and actor; r=ochameau
There is one spot I am unsure about, and that is the test:
devtools/server/tests/unit/test_threadlifetime-06.js -- should this be kept or do we want to remove
it as well?

Differential Revision: https://phabricator.services.mozilla.com/D21674

--HG--
extra : moz-landing-system : lando
2019-03-12 14:06:35 +00:00
yulia
6f475afa31 Bug 1529247 - remove unused eventlisteners method; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D21703

--HG--
extra : moz-landing-system : lando
2019-03-05 10:42:20 +00:00
Logan Smyth
6a327e3d2b Bug 1531874 - Add a no-op event-breakpoint API. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D21764

--HG--
extra : moz-landing-system : lando
2019-03-01 19:47:25 +00:00
yulia
beb91522fe Bug 1529247 - clean up frames methods on thread client; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D20834

--HG--
extra : moz-landing-system : lando
2019-03-01 15:26:18 +00:00
Alexandre Poirot
f439c41435 Bug 1520835 - Removed now-useless front pool from DebuggerClient. r=jdescottes
Depends on D20704

Differential Revision: https://phabricator.services.mozilla.com/D20705

--HG--
extra : moz-landing-system : lando
2019-02-22 18:32:38 +00:00
Alexandre Poirot
252ea7758f Bug 1520835 - Remove unused attachTarget methods. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D20704

--HG--
extra : moz-landing-system : lando
2019-02-22 18:32:52 +00:00
yulia
69d42691df Bug 1529247 - remove unused getPrototypesAndProperties method; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D20835

--HG--
extra : moz-landing-system : lando
2019-02-26 16:24:49 +00:00
yulia
f1efb1c816 Bug 1529247 - Remove environment method from the threadClient; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D20467

--HG--
extra : moz-landing-system : lando
2019-02-22 16:13:54 +00:00
Alexandre Poirot
412b285031 Bug 1269919 - Unify all the attachThread methods on Target class. r=jdescottes
There is still some tight connection between ThreadClient and Target,
- Target.threadClient, which should ideally disappear in favor of
  target.getFront("thread")
- Target.threadClient is manually nullified from ThreadClient.detach,
  but that should disappear as well thanks to getFront.

Differential Revision: https://phabricator.services.mozilla.com/D18813

--HG--
extra : moz-landing-system : lando
2019-02-21 15:05:49 +00:00
yulia
e7f1f95776 Bug 1485664 - remove attachConsole from the debugger client; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D20150

--HG--
extra : moz-landing-system : lando
2019-02-20 10:27:50 +00:00
yulia
1c4e7ce305 Bug 1485664 - move webconsole client to front directory; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18838

--HG--
rename : devtools/shared/webconsole/client.js => devtools/shared/fronts/webconsole.js
extra : moz-landing-system : lando
2019-02-19 16:00:45 +00:00
yulia
63ec6c691d Bug 1485664 - Change "attachConsole" in the debuggerClient so that it is compatible with a front; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18837

--HG--
extra : moz-landing-system : lando
2019-02-19 16:04:30 +00:00
yulia
aed02d496b Bug 1485664 - adjust events to front events; r=ochameau
this patch introduces events for the webconsoleFront -- not all of them are being listened
to by their subscribers yet, but this is the bulk of the effort to move events to Protocol.js

Differential Revision: https://phabricator.services.mozilla.com/D18832

--HG--
extra : moz-landing-system : lando
2019-02-20 10:49:09 +00:00
yulia
e3b15c8fe4 Bug 1485664 - remove echoed events and unused events; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18830

--HG--
extra : moz-landing-system : lando
2019-02-20 10:49:03 +00:00
Brian Hackett
f59a4bacc3 Bug 1526832 Part 2 - Use onConsoleAPICall when sending log point messages to the client, r=lsmyth.
--HG--
extra : rebase_source : 130a120fee300d6bcdd62e3b3f0f0115cb7ae3cd
2019-02-10 14:52:20 -10:00
Julian Descottes
60c1290864 Bug 1525654 - Move version compatibility check to dedicated module and add unit-tests;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18934

--HG--
extra : moz-landing-system : lando
2019-02-12 18:20:40 +00:00
Brian Hackett
56d2836638 Bug 1524374 - Remove breakpoint actors, r=jlast.
--HG--
extra : rebase_source : 066264dbc1f73f3afb403a9c04f5b5dbd7d53613
2019-02-06 09:18:33 -10:00
Brian Hackett
2f2cc2e383 Bug 1525685 - Remove server side breakpoint sliding code, r=jlast.
--HG--
extra : histedit_source : 926bce1cf87ccce1d586743b4f538a783dd67def%2C949bf19df412fa09cb750ec9c6ee1253616f75cd
2019-02-08 11:50:55 -10:00
Brindusan Cristian
b35a76a700 Backed out changeset 95bfbc0f513d (bug 1525685) for xpcshell failures at test_setBreakpoint-on-line-with-no-offsets.js. 2019-02-08 20:56:34 +02:00