Commit Graph
171 Commits
Author SHA1 Message Date
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Alexandre Poirot 9a0c58afa5 Bug 1520774 - Remove TargetFactory.forWorker. r=yulia
Depends on D18539

Differential Revision: https://phabricator.services.mozilla.com/D18540
2019-02-06 12:45:31 +00:00
Alexandre Poirot 698742a690 Bug 1520774 - Remove TargetFactory.forRemoteTab. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D18539
2019-02-06 16:17:15 +00:00
Alexandre Poirot 90833a0490 Bug 1465635 - Merge all target fronts with Target class. r=yulia,jdescottes
This patch makes it so that all target fronts inherits from a Target class mixin.
We are using a mixin as fronts should inherit from a custom Front class,
which is augmented with its own RDP request and events defined in its spec.
(This is done via FrontClassWithSpec(spec))

Depends on D15830

Differential Revision: https://phabricator.services.mozilla.com/D15831
2019-02-02 11:24:32 +00:00
Alexandre Poirot e3a9c52892 Bug 1465635 - Use Target.title to fetch target's title instead of using its form. r=yulia
Depends on D15828

Differential Revision: https://phabricator.services.mozilla.com/D15830
2019-02-02 11:24:39 +00:00
Alexandre Poirot 2d78128454 Bug 1465635 - Always consider that Target.activeTab is set. r=yulia
Depends on D15826

Differential Revision: https://phabricator.services.mozilla.com/D15828
2019-02-02 11:24:41 +00:00
Bogdan Tara c0cfac2f78 Backed out 8 changesets (bug 1465635) for failures on browser_canvas-actor-test-10.js, browser_target_server_compartment.js CLOSED TREE
Backed out changeset e8e363f98525 (bug 1465635)
Backed out changeset 9ec017a91e78 (bug 1465635)
Backed out changeset 11413ebfbcaf (bug 1465635)
Backed out changeset 52728b761d5d (bug 1465635)
Backed out changeset 734646bf9829 (bug 1465635)
Backed out changeset d9ae7cd34c1a (bug 1465635)
Backed out changeset 00d325ab677a (bug 1465635)
Backed out changeset a9b181f32189 (bug 1465635)
2019-01-30 18:54:05 +02:00
Alexandre Poirot 9fef388534 Bug 1465635 - Merge all target fronts with Target class. r=yulia,jdescottes
This patch makes it so that all target fronts inherits from a Target class mixin.
We are using a mixin as fronts should inherit from a custom Front class,
which is augmented with its own RDP request and events defined in its spec.
(This is done via FrontClassWithSpec(spec))

Depends on D15830

Differential Revision: https://phabricator.services.mozilla.com/D15831
2019-01-30 13:28:23 +00:00
Alexandre Poirot cc033ec58b Bug 1465635 - Use Target.title to fetch target's title instead of using its form. r=yulia
Depends on D15828

Differential Revision: https://phabricator.services.mozilla.com/D15830
2019-01-30 13:28:15 +00:00
Alexandre Poirot 71dc9a4739 Bug 1465635 - Always consider that Target.activeTab is set. r=yulia
Depends on D15826

Differential Revision: https://phabricator.services.mozilla.com/D15828
2019-01-30 13:28:13 +00:00
yulia 927e0ac6a2 Bug 1518777 - ensure that netmonitor and console tests wait for initialization and open requests tofinish before shutting down; r=nchevobbe
Several of our tests relied on the timing of the shutdown of the webconsole. I updated one
test that fired off an extra rdp request so that it is waiting until it resolves before shutting down.
For the rest, I started tracking the async behavior of initialization of the web-console-proxy, and
waiting for initialization to finish before destroying.

Differential Revision: https://phabricator.services.mozilla.com/D16177
2019-01-24 11:47:39 +00:00
Alexandre Poirot 8d5975f5fb Bug 1520771 - Remove navPayload from will-navigate/navigate events. r=nchevobbe
It looks like a relic of the ancient times, probably specific to non-e10s codepath
which degraded over time and there is still a couple of leftover here and there.

For now the output wrapper was passing over the will-navigate event and make it so
that it looked like a "cached" packet. Which it isn't.
So instead, flag a meaningful "type" attribute and handle this packet directly in
transformPacket.

Differential Revision: https://phabricator.services.mozilla.com/D16871
2019-01-21 15:19:32 +00:00
Alexandre Poirot afcd1d2b4a Bug 1520772 - Construct the WebExtension target front before instantiating the Target object. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D15829
2019-01-21 11:04:31 +00:00
Alexandre Poirot fd4c5ee792 Bug 1514817 - Convert Target to ES Class. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D14842
2019-01-07 11:57:51 +00:00
Julian Descottes 25bf336188 Bug 1516408 - Remove remaining references to form;r=ochameau
Depends on D15306

Differential Revision: https://phabricator.services.mozilla.com/D15386
2019-01-03 10:21:48 +00:00
Julian Descottes a498693a8a Bug 1516408 - Throw explicit error when calling Target.forRemoteTab without activeTab;r=ochameau
Depends on D15305

Differential Revision: https://phabricator.services.mozilla.com/D15306
2019-01-03 10:19:21 +00:00
Alexandre Poirot cb730a6fb4 Bug 1513565 - Remove now-unused form argument from Target. r=yulia
Depends on D14280

Differential Revision: https://phabricator.services.mozilla.com/D14765
2018-12-18 23:36:06 +00:00
yulia 335b1acd0f Bug 1508660 - introduce getCachedFront; r=ochameau
Depends on D12439

Differential Revision: https://phabricator.services.mozilla.com/D13110
2018-12-18 08:32:33 +00:00
Ciure Andrei 3e1f01f806 Backed out 14 changesets (bug 1508660, bug 1508656, bug 1504185) for browser_target_cached-front.js perma failures CLOSED TREE
Backed out changeset 08e5ae4312b3 (bug 1508660)
Backed out changeset 01b687bb0b75 (bug 1504185)
Backed out changeset 140374b098aa (bug 1504185)
Backed out changeset caafdc0ea4c7 (bug 1508656)
Backed out changeset 8b98b777aec2 (bug 1508656)
Backed out changeset f1905a2f9b6c (bug 1508656)
Backed out changeset 8b01632f9e3d (bug 1508656)
Backed out changeset eb4c893d451e (bug 1508656)
Backed out changeset 70db61618160 (bug 1508656)
Backed out changeset dff79b73c7fe (bug 1508660)
Backed out changeset b3518d5285be (bug 1508660)
Backed out changeset 94a957b9ba90 (bug 1508660)
Backed out changeset 773938f18269 (bug 1508660)
Backed out changeset 4eca8fce0a47 (bug 1508660)
2018-12-17 17:15:23 +02:00
Yulia Startsev 07853fb514 Bug 1508660 - Fix eslint issue from rebase r=ochameau CLOSED TREE 2018-12-17 05:55:00 +02:00
yulia 1a3a638149 Bug 1508660 - introduce getCachedFront; r=ochameau
Depends on D12439

Differential Revision: https://phabricator.services.mozilla.com/D13110
2018-12-17 13:23:29 +00:00
Alexandre Poirot c2c92214da Bug 1508285 - Refactor RootFront.getTab to return BrowsingContextTargetFront instead of JSON form. r=yulia
MozReview-Commit-ID: 6TOInM5BmYe

Differential Revision: https://phabricator.services.mozilla.com/D14173
2018-12-17 11:56:26 +00:00
yulia 274b4394e3 Bug 1495389 - add test for expected async behavior in the performance front; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D10562
2018-12-17 11:54:53 +00:00
yulia 5f73ddf5db Bug 1512086 - fix console highlighting and update test to fail if it doesnt; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D13826
2018-12-05 22:02:36 +00:00
Jason Laster 371cea5118 Bug 1510408 - Closing devtools should stop recording. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D13145
2018-11-30 01:28:14 +00:00
Alexandre Poirot 2c7d0fee4e Bug 1509315 - Pass the full target form to all BrowsingContextTargetFront instances. r=yulia
For now, we only pass { actor } for all tab target fronts created via DebuggerClient.attachTarget,
whereas parent process target fronts were passing the full form from RootFront.getProcess.

MozReview-Commit-ID: 1H2NxFv8glY

Differential Revision: https://phabricator.services.mozilla.com/D12730
2018-11-27 21:47:52 +00:00
Alexandre Poirot 67bb5020f7 Bug 1506546 - Use protocol.js to fetch WebExtension target actor. r=yulia
We were dipatching the "connect" request manually, whereas we should be using
protocol.js specifications. It also help getting rid of another use of "form"
instead of "front"/activeTab in Target class.

MozReview-Commit-ID: IOH4mDprAVL

Depends on D12577

Differential Revision: https://phabricator.services.mozilla.com/D12578
2018-11-27 19:16:51 +00:00
Alexandre Poirot 05559ce854 Bug 1506546 - Change the spec type of listAddons and accomodate using the front rather than the form. r=yulia
MozReview-Commit-ID: 4MAjszUiGUZ

Depends on D12573

Differential Revision: https://phabricator.services.mozilla.com/D12574
2018-11-27 19:18:28 +00:00
Andreea Pavel 2e1438afd5 Backed out 7 changesets (bug 1506546) fo failing devtools at devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js on a CLOSED TREE
Backed out changeset fbe3f2183f32 (bug 1506546)
Backed out changeset 8972a2f14015 (bug 1506546)
Backed out changeset 00fe26234b3d (bug 1506546)
Backed out changeset 7d8e650e25c2 (bug 1506546)
Backed out changeset a293a37483b9 (bug 1506546)
Backed out changeset 7b75250a4f12 (bug 1506546)
Backed out changeset 23ad29cb776e (bug 1506546)
2018-11-27 14:37:14 +02:00
Alexandre Poirot be575263a9 Bug 1506546 - Use protocol.js to fetch WebExtension target actor. r=yulia
We were dipatching the "connect" request manually, whereas we should be using
protocol.js specifications. It also help getting rid of another use of "form"
instead of "front"/activeTab in Target class.

MozReview-Commit-ID: IOH4mDprAVL

Depends on D12577

Differential Revision: https://phabricator.services.mozilla.com/D12578
2018-11-27 11:23:26 +00:00
Alexandre Poirot 8df5a146e5 Bug 1506546 - Change the spec type of listAddons and accomodate using the front rather than the form. r=yulia
MozReview-Commit-ID: 4MAjszUiGUZ

Depends on D12573

Differential Revision: https://phabricator.services.mozilla.com/D12574
2018-11-27 11:23:18 +00:00
yulia eb64aa63ba bug 1507146 - account for async fronts when we destroy; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D11885
2018-11-15 08:50:59 +00:00
Alexandre Poirot e1d0ca7c1b Bug 1506548 - Return WorkerTargetFront from listWorkers instead of form. r=yulia
MozReview-Commit-ID: 4CBQNwC8tKq

Depends on D11762

Differential Revision: https://phabricator.services.mozilla.com/D11763
2018-11-15 10:23:50 +00:00
Alexandre Poirot b30a4a0309 Bug 1506548 - Remove last references to remote targets from target.js. r=yulia
MozReview-Commit-ID: 1viBxZ8hHGk

Differential Revision: https://phabricator.services.mozilla.com/D11761
2018-11-15 10:23:46 +00:00
Alexandre Poirot 781a5ac688 Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-15 10:22:49 +00:00
Alexandre Poirot 46971acb4d Bug 1506549 - Either pass a front or a form to Target constructor. r=yulia
MozReview-Commit-ID: BWsvAcWthnF

Differential Revision: https://phabricator.services.mozilla.com/D11693
2018-11-15 10:22:47 +00:00
Andreea Pavel 9d41a0a2bf Backed out 5 changesets (bug 1506549) for failing devtools at devtools/client/aboutdebugging/test/browser_service_workers_status.js on a CLOSED TREE
Backed out changeset 6be66dea928c (bug 1506549)
Backed out changeset da0d76d0e8fc (bug 1506549)
Backed out changeset 490eeba8f9f7 (bug 1506549)
Backed out changeset 97554f465eca (bug 1506549)
Backed out changeset 4f259de6cce0 (bug 1506549)
2018-11-14 21:46:07 +02:00
Alexandre Poirot 0d5dc1f31e Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-14 15:48:16 +00:00
Alexandre Poirot 8a07616bea Bug 1506549 - Either pass a front or a form to Target constructor. r=yulia
MozReview-Commit-ID: BWsvAcWthnF

Differential Revision: https://phabricator.services.mozilla.com/D11693
2018-11-14 15:48:14 +00:00
Alexandre Poirot 21259d0507 Bug 1506545 - Instantiate Target for ContentProcessTargetActor via its front. r=yulia
MozReview-Commit-ID: EE4d0YULRBU

Depends on D11614

Differential Revision: https://phabricator.services.mozilla.com/D11615
2018-11-13 20:39:58 +00:00
yulia 5193696e94 Bug 1495386 - emit event when target scoped front is created; r=ochameau
this change only impacts the target front, and emits an event every time a target is
created. No listners yet.

Differential Revision: https://phabricator.services.mozilla.com/D8084
2018-11-09 09:03:54 +00:00
Alexandre Poirot 2b6df33bde Bug 1503628 - Rename TabTarget to Target. r=yulia
MozReview-Commit-ID: BpmiEm05QIF

Depends on D11015

Differential Revision: https://phabricator.services.mozilla.com/D11016
2018-11-08 10:30:59 +00:00
Alexandre Poirot 80025878e3 Bug 1503628 - Remove WorkerTarget. r=yulia
MozReview-Commit-ID: 8oapi6dtQdf

Depends on D11014

Differential Revision: https://phabricator.services.mozilla.com/D11015
2018-11-08 10:09:12 +00:00
Alexandre Poirot fba80ad701 Bug 1503628 - Merge TabTarget and WorkerTarget. r=yulia
MozReview-Commit-ID: 58iL6HyXjM4

Depends on D11013

Differential Revision: https://phabricator.services.mozilla.com/D11014
2018-11-08 10:09:10 +00:00
Alexandre Poirot d4ea06a37b Bug 1503628 - Remove TabTarget checks against non-remote targets. r=yulia
MozReview-Commit-ID: DxTqoIbVle6

Depends on D11010

Differential Revision: https://phabricator.services.mozilla.com/D11011
2018-11-08 10:09:04 +00:00
Alexandre Poirot 0d4c566a8c Bug 1503628 - Stop storing threadActor on TabTarget. r=yulia
MozReview-Commit-ID: 28A1mNQG9P2

Depends on D11009

Differential Revision: https://phabricator.services.mozilla.com/D11010
2018-11-08 10:09:02 +00:00
Alexandre Poirot 90730a9249 Bug 1503628 - Remove Target.isRemote. r=yulia
Now all targets are considered as remote, so isRemote attribute is misleading.
Remote means that we are going through the RDP protocol to debug the target
and we now always do. If some callsite wants to do something special for local tabs
it is better to read target.isLocalTab attribute.

MozReview-Commit-ID: IYlj0wO02PO

Differential Revision: https://phabricator.services.mozilla.com/D11009
2018-11-08 10:08:59 +00:00
Alexandre Poirot 8b98126041 Bug 1497467 - Convert AddonClient to protocol.js front. r=yulia
MozReview-Commit-ID: 78Oqsq4mGqW

Differential Revision: https://phabricator.services.mozilla.com/D10391
2018-11-05 16:16:37 +00:00
Alexandre Poirot 8ec561bf7d Bug 1497470 - Improve error logging when the browser content toolbox fails loading. r=yulia
MozReview-Commit-ID: 2QJfxOMmmOl

Depends on D10387

Differential Revision: https://phabricator.services.mozilla.com/D10190
2018-11-05 15:02:19 +00:00
Alexandre Poirot b5d5986d8a Bug 1497470 - Create a ContentProcessTargetFront front to match ContentProcessTargetActor. r=yulia
MozReview-Commit-ID: LFfG7WRHu3a

Differential Revision: https://phabricator.services.mozilla.com/D10189
2018-11-05 15:02:10 +00:00