Commit Graph

44 Commits

Author SHA1 Message Date
Nicolas Chevobbe
d808bc13f0 Bug 1450944 - Throw in actor methods instead of returning an error packet; r=ochameau.
Since protocol.js catches exceptions and returns an appropriate
packet as a result, we can use this instead of returning manually
an error packet.

MozReview-Commit-ID: 6lREam5sEVs

--HG--
extra : rebase_source : dcc87d659281b909fe973da33b13b9a655d9d300
2018-05-17 15:04:24 +02:00
J. Ryan Stinnett
eaa4969e77 Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o

--HG--
rename : devtools/server/actors/tab.js => devtools/server/actors/targets/browsing-context.js
rename : devtools/shared/specs/tab.js => devtools/shared/specs/targets/browsing-context.js
extra : rebase_source : e62720693ad492cdfb68ab21af1f54d78e85123a
2018-05-25 18:20:28 -05:00
Julian Descottes
640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Alexandre Poirot
191bf836a1 Bug 1458731 - Print actor's typeName and name of the throwing method when an exception is thrown by a protocol.js's actor. r=jlast,jryans
MozReview-Commit-ID: 5poQ0F1dJVu

--HG--
extra : rebase_source : dcf0cb83559fec2e3f92fe777a3bb630e098f7d4
2018-05-09 03:44:54 -07:00
Alexandre Poirot
eb823e257d Bug 1460229 - Throw an explicit error message when a method specified in a spec is missing in the actor. r=jryans
MozReview-Commit-ID: JdsCMh93xZE

--HG--
extra : rebase_source : 5b7185ce8527edb9880fb619706ab323c5a172f7
2018-03-28 01:08:06 -07:00
Alexandre Poirot
93856a5ce8 Bug 1459205 - Speed up dict type by preventing duplicated calls to getType from its write method. r=jryans
MozReview-Commit-ID: Dn37LGEpB6q

--HG--
extra : rebase_source : 11cf83fdc1dba6d8b13c9440adf1e6d1d2b6d554
2018-05-03 12:47:27 -07:00
Alexandre Poirot
f44b62f9b3 Bug 1454899 - Prevent request arguments duplication on each request call. r=jryans
MozReview-Commit-ID: GaLM6LsCoWp

--HG--
extra : rebase_source : cd2d5a9cf756ebf29050490145851f1b9afc8aa1
2018-04-05 10:00:02 -07:00
yulia
bb64c024ae Bug 1450948 - collect actorSpecs in a weakmap. r=ochameau
MozReview-Commit-ID: 7O4edWRb7cF

--HG--
extra : rebase_source : 80421fa98d9f988cf0b73508a811b41568012465
2018-04-25 14:46:44 +02:00
yulia
318a381a6e Bug 1450948 - Convert ChromeActor to protocol.js r=ochameau
MozReview-Commit-ID: 1pwYUXGiEdT
* fix types in tab.js

MozReview-Commit-ID: 2PAU8IeEKDV

--HG--
extra : rebase_source : 4003f1c84108aed4f37bca2d3c8cfb32d5ac40e9
2018-04-24 15:30:38 +02:00
Alexandre Poirot
c3e6358671 Bug 1455437 - Prevent multiple Map query by simplifying _sendEvent method. r=jryans
MozReview-Commit-ID: H5ora5qsunx

--HG--
extra : rebase_source : 0d5f044a9af96940762ba838aa4dade95ce9344b
2018-04-18 15:42:37 -07:00
Alexandre Poirot
c0429f7ad9 Bug 1455437 - Inline isIterator helper in protocol.js. r=jryans
MozReview-Commit-ID: DLoXENvbKOe

--HG--
extra : rebase_source : f4b9c4b0401da2f287645d592794c2be748bbb7e
2018-04-18 15:31:30 -07:00
Alexandre Poirot
db050d4da5 Bug 1454792 - Prevent duplicating arrays in Array type's read/write methods. r=jryans
MozReview-Commit-ID: 82GYGZUs6TH

--HG--
extra : rebase_source : ba3b473ef5211cc0fa9901db5d193ef147035dcc
2018-04-05 09:23:09 -07:00
Alexandre Poirot
f54b783d68 Bug 1454792 - Use arrow functions instead of bind in protocol.js. r=jryans
MozReview-Commit-ID: 8pOL86G3ff5

--HG--
extra : rebase_source : 433d9a1fad24e46e8fca00037f206a5954d535e1
2018-04-16 09:30:43 -07:00
Alexandre Poirot
5a17a2dae8 Bug 1454792 - Stop duplicating arrays in protocol.js's identifyWrite function. r=jryans
MozReview-Commit-ID: LTgw12JInh9

--HG--
extra : rebase_source : 6b6b3a5b9a161280ea4c3d6e0a5949068127ce15
2018-04-05 09:14:09 -07:00
Alexandre Poirot
7abf7f83b4 Bug 1454373 - Switch protocol.js to native promises. r=jryans
MozReview-Commit-ID: ALifNayHJJG

--HG--
extra : rebase_source : 4f1a2ee628785850e1b4ca406d5f4c10d3ce6262
2018-04-13 14:34:12 -07:00
Narcis Beleuzu
e270752f86 Backed out 2 changesets (bug 1454373) for mochitest devtools failures on devtools/client/shadereditor/test/browser_se_*. CLOSED TREE
Backed out changeset 4ec712f0aa13 (bug 1454373)
Backed out changeset b2ada4fddfa0 (bug 1454373)
2018-04-17 17:30:28 +03:00
Alexandre Poirot
ed18236e36 Bug 1454373 - Switch protocol.js to native promises. r=jryans
MozReview-Commit-ID: ALifNayHJJG

--HG--
extra : rebase_source : a2150371f2109c96b6d84bd885a269d47f11e9dd
2018-04-13 14:34:12 -07:00
Alexandre Poirot
23fc8b9e3c Bug 1453385 - Make protocol.js throw if a spec implements a nested response object. r=jryans
MozReview-Commit-ID: 7TXQMvYzGDG

--HG--
extra : rebase_source : bbba7982bef0b0843fd5e2406126e644294a4265
2018-04-12 16:06:10 -07:00
Alexandre Poirot
b76a7cf225 Bug 1453385 - Prevent protocol.js from copying all response objects. r=jryans
MozReview-Commit-ID: 5suOD9UmIr

--HG--
extra : rebase_source : 549937e54581d9c5b69e05351b88805e244cb622
2018-04-09 12:45:17 -07:00
J. Ryan Stinnett
23ff4cc75d Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
J. Ryan Stinnett
d5abe62be4 Bug 1432496 - Clean up protocol.js deprecations. r=jdescottes
`ActorClass` and `FrontClass` are depercated protocol.js APIs that were left in
place to support add-ons that might have used them.  Now that we're in an
WebExtensions only mode, it seems safe to remove these.

MozReview-Commit-ID: HRKMPTIktrZ

--HG--
extra : rebase_source : 8118b7f87dae92688a0ace0f4cf05a2a0d609d6f
2018-01-23 09:15:49 -06:00
Alexandre Poirot
6f86767a47 Bug 1397330 - Lazy load inspector spec and front modules. r=jdescottes,jryans
MozReview-Commit-ID: BbF40tQrzoF

--HG--
extra : rebase_source : 3eda0201cb363fad41fd428f8d4ddfc180f915b2
2017-09-13 00:55:00 +02:00
Tom Tromey
dffd9ec2a9 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7

--HG--
extra : rebase_source : bd5f46a0bdff992cc0334250a16557eb710af5de
2017-08-30 12:05:41 -06:00
Julian Descottes
3e2d929cd8 Bug 1378862 - remove usage of sdk heritage in devtools protocol.js;r=zer0
MozReview-Commit-ID: 8hyEroQwnNL

--HG--
extra : rebase_source : 9e5d09ab497b9b2ad102b45d33328f109f63cbeb
2017-08-21 20:21:48 +02:00
Julian Descottes
23efb92efc Bug 1391563 - stop exporting event-emitter emit method from devtools protocol.js;r=ochameau
MozReview-Commit-ID: Eeh55k6DDCd

--HG--
extra : rebase_source : 4a0c5d3704baf673aaac51ba7702546532bd6056
2017-08-18 17:16:12 +02:00
Julian Descottes
a483c4620c Bug 1137935 - remove usage of sdk event-target in devtools;r=ochameau
MozReview-Commit-ID: 2lPCVNq7wN0

--HG--
extra : rebase_source : f18375b8b6d4138897d1707c489b5bce4f68f906
2017-08-16 15:17:24 +02:00
Julian Descottes
19c4c8493a Bug 1137935 - remove all usage of sdk/event/core/ in devtools;r=ochameau
MozReview-Commit-ID: 2ab0Ol4Mq64

--HG--
extra : rebase_source : 22d0003b40e0fc49e309187ea3c943a6f5048db5
2017-08-16 15:11:21 +02:00
Julian Descottes
8f7083a841 Bug 1361332 - replace sdk/util/object by Object.assign in devtools;r=zer0
MozReview-Commit-ID: 3IREzyuAjAF

--HG--
extra : rebase_source : 758d431d809f0ac7bf70a1a39c2f38c83361e8f6
2017-07-31 19:53:37 +02:00
Paolo Amadini
10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Sebastian Hengst
cb76f56d60 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
d7ea1c1605 Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Tom Tromey
16809923e0 Bug 1321839 - make devtools/shared eslint-clean; r=jryans
MozReview-Commit-ID: AGSdhrT4Z3D

--HG--
extra : rebase_source : b053c5a54d39e6669598714e5f572c0d3dc0ebb4
2016-12-02 10:32:04 -07:00
J. Ryan Stinnett
1c2f705d96 Bug 1291815 - Wait for requests to settle between DAMP subtests. r=ochameau
MozReview-Commit-ID: 2WH1QquOclP

--HG--
extra : rebase_source : 4f889bcb4978e97ac67ce0b0be8e006024d8f03f
2016-09-29 16:51:15 -05:00
Eddy Bruel
f389d7ede3 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
Towkir Ahmed
63867da04a Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske
a=release to get around a hook that's catching these comment-only idl changes

--HG--
extra : rebase_source : a7353680777fd2eeea24c9993f9937bbbcfb9e4f
2016-08-15 17:28:05 -07:00
Tom Tromey
39f7f2c862 Bug 1287910 - move devtools stack-related APIs to per-platform require; r=jryans
MozReview-Commit-ID: CgT1VGJnJqB

--HG--
extra : rebase_source : 14c52fe412675d9442d8d723cc3e8da55b169079
2016-08-05 13:17:17 -06:00
Eddy Bruel
2bdbd75fa0 Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Eddy Bruel
4946e9577a Bug 1288423 - Remove the old Actor/FrontClass constructors. r=fitzgen 2016-08-10 17:35:50 +02:00
James Long
0b2677dddc Bug 1267365 - move various flags out of DevToolsUtils and don't depend on that module so much r=tromey 2016-08-05 17:41:01 -04:00
J. Ryan Stinnett
0521eafa74 Bug 1282900 - Remove RDP telemetry probes and surrounding machinery. r=fitzgen
MozReview-Commit-ID: 58WNVGWTyKJ
2016-06-29 11:37:09 -05:00
Tom Tromey
2e37ad3b29 Bug 1273941 - replace uses of promise.defer in devtools/shared; r=jryans
MozReview-Commit-ID: 2n3uJ5QKsKL

--HG--
extra : transplant_source : %E5%29%E0%BA%26%23%7F%CF%B6%2B4%7E%D4%02%21%9B%D8%D51%5C
2016-06-09 09:03:47 -06:00
Nick Fitzgerald
e0776670f7 Bug 1278345 - Decouple the LongStringFront from the LongStringActor; r=ejpbruel 2016-06-07 07:53:21 -07:00
J. Ryan Stinnett
30b2b7ce44 Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Jennifer Fong
2f312892d5 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02:00