Commit Graph
1232 Commits
Author SHA1 Message Date
Cosmin Sabou 438ab15b79 Merge mozilla-central to mozilla-inbound. 2018-11-28 06:12:39 +02:00
Jason Laster 2902ccf38e Bug 1510048 - Player UI Updates. r=dwalsh
Tags:

Bug #: 1510048

Differential Revision: https://phabricator.services.mozilla.com/D13017
2018-11-27 21:46:20 -05:00
Alexandre Poirot 0205bcb97a Bug 1509315 - Use TargetFactory.forTab for creating targets in tests. r=yulia
There is 4 patterns here:
* Tests using attachThreadActorForUrl like event-listeners ones. I augmented this helper method to call TargetFactory.
* Tests using attachTargetActorForUrl like debugger-statement, dbg-navigation and target-scoped-actor. Uses TargetFactory directly.
* Tests using connectDebuggerClient like navigateEvents and spaw_actor_in_parent. Uses TargetFactory directly.
* All the others, where creating DebuggerClient on their own, and calling listTabs+attachTarget. They now use TargetFactory directly.

A note about webconsole-helpers, only consoleClient attribute was used from tests using this helper.
Also, in various tests I remove the call to client.destroy, that's because shared-head will
close all the tabs/toolboxes and it should lead to target/client destruction.
Finally, debugger-statement now request the thread actor via the client instead of manual request,
it should help the refactoring to a front!

MozReview-Commit-ID: 2ah4UmSjuoi

Depends on D12730

Differential Revision: https://phabricator.services.mozilla.com/D12731
2018-11-27 21:47:59 +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 6d6a725f9b Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 19:17:48 +00:00
Alexandre Poirot f2cc564831 Bug 1506546 - Implement RootFront.getAddon and use it to retrieve a single AddonTargetFront. r=yulia
MozReview-Commit-ID: nWTkfbF9qb

Depends on D12574

Differential Revision: https://phabricator.services.mozilla.com/D12575
2018-11-27 19:18:06 +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 215fe5609a Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 11:23:22 +00:00
Alexandre Poirot caf7aef5cd Bug 1506546 - Implement RootFront.getAddon and use it to retrieve a single AddonTargetFront. r=yulia
MozReview-Commit-ID: nWTkfbF9qb

Depends on D12574

Differential Revision: https://phabricator.services.mozilla.com/D12575
2018-11-27 11:23:20 +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
Julian Descottes b84b89e88e Bug 1497457 - Remove transportDetails from runtimeDetails;r=daisuke,ladybenko
Depends on D12095. Now that we pass a remoteId to open about:devtools-toolbox, we actually don't need transportDetails

Differential Revision: https://phabricator.services.mozilla.com/D12097
2018-11-27 10:23:24 +00:00
Julian Descottes 6398bfec53 Bug 1497457 - Reuse clients from remote client manager in about:devtools-toolbox;r=daisuke,ladybenko
Depends on D12039

Differential Revision: https://phabricator.services.mozilla.com/D12040
2018-11-27 10:22:31 +00:00
Daniel Varga 2338233c05 Backed out 7 changesets (bug 1497457) for devtools failure at devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_sidebar_usb_runtime_refresh.js on a CLOSED TREE
Backed out changeset d3b46f3a0306 (bug 1497457)
Backed out changeset bd490139b395 (bug 1497457)
Backed out changeset b2830500918c (bug 1497457)
Backed out changeset 9923755ee205 (bug 1497457)
Backed out changeset f2a39a18f2f6 (bug 1497457)
Backed out changeset 95365a2d7470 (bug 1497457)
Backed out changeset 0e93acc09952 (bug 1497457)
2018-11-27 00:59:34 +02:00
Julian Descottes 1c27d85b74 Bug 1497457 - Remove transportDetails from runtimeDetails;r=daisuke,ladybenko
Depends on D12095. Now that we pass a remoteId to open about:devtools-toolbox, we actually don't need transportDetails

Differential Revision: https://phabricator.services.mozilla.com/D12097
2018-11-26 19:57:35 +00:00
Julian Descottes 1377a1398b Bug 1497457 - Reuse clients from remote client manager in about:devtools-toolbox;r=daisuke,ladybenko
Depends on D12039

Differential Revision: https://phabricator.services.mozilla.com/D12040
2018-11-26 19:55:33 +00:00
yulia 595fd05e97 Bug 1508655 - BoxModel highlighter move nodeHighlighter to highlighterFront; r=ochameau
Depends on D12319

Differential Revision: https://phabricator.services.mozilla.com/D12320
2018-11-23 10:50:21 +00:00
yulia fb8bc13fdb Bug 1508655 - BoxModel highlighter split domGrip methods to make them more closely related to the walker; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D12319
2018-11-23 10:49:29 +00:00
yulia 9003a64fc0 bug 1507146 - add await to all target.getFront calls in async callsites; r=ochameau
Depends on D11885

Differential Revision: https://phabricator.services.mozilla.com/D11886
2018-11-14 15:11:59 +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
Jason Laster a5f3cddb48 Bug 1507260 - Pretty Print fails with sourceMap error when Source Maps is off. r=lsmyth
Tags:

Bug #: 1507260

Differential Revision: https://phabricator.services.mozilla.com/D11928
2018-11-20 15:07:48 -05:00
Gurzau Raul d8408ebbb6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-16 19:55:39 +02:00
Jason Laster 609c5a77d9 Bug 1504222 - Notify the client when devtools goes from replaying to recording. r=dwalsh
Tags:

Bug #: 1504222

Differential Revision: https://phabricator.services.mozilla.com/D11593
2018-11-16 10:24:27 -05:00
Bogdan Tara b41bc08038 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-16 11:50:21 +02:00
Bogdan Tara 228d1068ee Merge inbound to mozilla-central. a=merge 2018-11-16 11:47:51 +02: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
Andrea Marchesini 02c1924ab1 Bug 1480544 - Allow Console API to log messages on stdout, r=bgrins
This patch introduces 2 new prefs:
- devtools.console.stdout.chrome: if true, console API writes on stdout when
                                  used by chrome code
- devtools.console.stdout.content: console API write on stdout when used by
                                   content code.
2018-11-15 21:47:58 +01:00
Daisuke Akatsuka 2c4279280c Bug 1497449: Localize DebugTargetInfo. r=jdescottes,flod
Depends on D11749

Differential Revision: https://phabricator.services.mozilla.com/D11972
2018-11-16 03:43:33 +00:00
Daisuke Akatsuka 5e85cd99bf Bug 1497449: Show basic information in about:devtools-toolbox. r=jdescottes,ladybenko
Depends on D11748

Differential Revision: https://phabricator.services.mozilla.com/D11749
2018-11-16 05:36:56 +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
Alexandre Poirot 1fc5daee89 Bug 1498280 - Introduce RootClient.getMainProcess to fetch ParentProcessTargetActor. r=yulia
MozReview-Commit-ID: E9OiwqDwNk7

Differential Revision: https://phabricator.services.mozilla.com/D11758
2018-11-13 14:07:36 +00:00
Daniel Varga a108aa9406 Merge mozilla-central to autoland. a=merge 2018-11-09 12:22:53 +02: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
Bogdan Tara 1d9b46aa1a Merge inbound to mozilla-central. a=merge 2018-11-08 20:48:31 +02:00
Jason Laster 4c90ea8f85 Bug 1505434 - The splitter has a couple of bugs in vertical mode. r=dwalsh
Tags:

Differential Revision: https://phabricator.services.mozilla.com/D11178
2018-11-08 09:53:58 -05:00
yulia 67ae68cbed Bug 1495388 - Simplify Inspector Front destruction; r=ochameau
Depends on D8992

Differential Revision: https://phabricator.services.mozilla.com/D9124
2018-11-07 14:35:42 +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