Commit Graph
132 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
Boris Zbarsky 95de682140 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196
2019-06-11 15:51:51 +00:00
Julian Descottes de1ad121ae Bug 1505289 - Move unknown runtime logic to aboutdebugging r=Ola,ladybenko
The notion of unknown runtime is only relevant to aboutdebugging
As we will complexify this to handle unplugged devices, moving it to aboutdebugging seems reasonable.

Differential Revision: https://phabricator.services.mozilla.com/D25779
2019-04-15 22:23:01 +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 e9c0994e1c Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

Differential Revision: https://phabricator.services.mozilla.com/D16874
2019-02-02 11:24:24 +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 47a8a0d0bd Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

Differential Revision: https://phabricator.services.mozilla.com/D16874
2019-01-30 13:28:25 +00:00
Julian Descottes 617ab903f6 Bug 1516408 - Remove deprecated backward compatibility code in webide;r=ochameau
Depends on D15303

Differential Revision: https://phabricator.services.mozilla.com/D15304
2019-01-03 10:18:00 +00:00
Julian Descottes ab5a752718 Bug 1516250 - Stop using form to call Target.forRemoteTab in WebIDE;r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D15303
2018-12-25 07:59:27 +00:00
Julian Descottes f953c364ec Bug 1508956 - Add unknown runtime entries for devices with no runtime detected;r=daisuke
Depends on D14307. Introduce a placeholder UnknownAdbRuntime extending AdbRuntime.
AdbRuntime implements isUnknown(). This method is used to filter out the unknown runtimes in
webide and about:debugging. (filter will be removed in about:debugging in a patch in the same
queue)

Differential Revision: https://phabricator.services.mozilla.com/D14309
2018-12-19 18:07:37 +00:00
Alexandre Poirot 662d5ebb84 Bug 1508285 - Refactor RootFront.listTabs to return BrowsingContextTargetFront instead of JSON form. r=yulia,jdescottes
MozReview-Commit-ID: 4CMHJ3tV7Rc

Depends on D14174

Differential Revision: https://phabricator.services.mozilla.com/D14175
2018-12-17 11:56:30 +00:00
Alexandre Poirot a69cf9b2e7 Bug 1508285 - Use RootFront.rootForm instead of listTabs to fetch global actors. r=yulia
MozReview-Commit-ID: Ed5SyZbB0kq

Depends on D14173

Differential Revision: https://phabricator.services.mozilla.com/D14174
2018-12-17 11:56:28 +00:00
Julian Descottes 295192bca0 Bug 1492700 - Introduce adb singleton to register adb consumers;r=daisuke
Depends on D13476

Differential Revision: https://phabricator.services.mozilla.com/D13477
2018-12-06 14:57:03 +00:00
Julian Descottes 366719d337 Bug 1492700 - Stop sending adb-addon updates from Devices.jsm;r=daisuke
Depends on D12758

Differential Revision: https://phabricator.services.mozilla.com/D12759
2018-11-27 12:49:11 +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
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 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
Alexandre Poirot d00372a05e Bug 1485661 - Adapt tabListChanged to new front. r=yulia
MozReview-Commit-ID: 8LcTfats8c8

Depends on D8824

Differential Revision: https://phabricator.services.mozilla.com/D8825
2018-10-30 08:08:40 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Alexandre Poirot 73e6f4f534 Bug 1485660 - Switch from listening from DebuggerClient to TargetFront. r=jdescottes
* debugger-controller and events.js are special and require to support two cases because this is
the only production codepath that can have a TabTarget or a WorkerTarget.
Thus, leading to either TargetFront or WorkerClient on target.activeTab.
* webide.js doesn't need to listen for tabNavigated, this is redundant with tabListChanged.
* application's initializer. In case you are wondering this code can't be spawn against a WorkerTarget.
The application panel doesn't work in worker toolboxes.
* The code modified in target is in TabTarget, so we don't have to support the WorkerClient case, we always have a TargetFront here.
* I tried to update the doc file the best I can but this all feel outdated.

MozReview-Commit-ID: 2hGchebfIub

Depends on D7458

Differential Revision: https://phabricator.services.mozilla.com/D7459
2018-10-15 08:36:10 +00:00
Brindusan Cristian dac48fe630 Backed out 8 changesets (bug 1485660) for damp failures on front.hasRequests. CLOSED TREE
Backed out changeset 7a2f29bbe2a8 (bug 1485660)
Backed out changeset 26e82fa62444 (bug 1485660)
Backed out changeset 9bb2f56f219d (bug 1485660)
Backed out changeset 40a3c2dd1b38 (bug 1485660)
Backed out changeset cfb160882db9 (bug 1485660)
Backed out changeset 3642f2d66777 (bug 1485660)
Backed out changeset 9026679753b2 (bug 1485660)
Backed out changeset dccca441b980 (bug 1485660)
2018-10-11 22:33:35 +03:00
Alexandre Poirot d46ecb70dc Bug 1497644 - Always call Root actor's getProcess request via RootClient.getProcess r=yulia
I also made its argument mandatory, so that later in root spec we can use a non-nullable number.

MozReview-Commit-ID: BUPgI1ww1gC

Differential Revision: https://phabricator.services.mozilla.com/D8141
2018-10-11 16:26:45 +00:00
Alexandre Poirot db250517f9 Bug 1485660 - Switch from listening from DebuggerClient to TargetFront. r=jdescottes
* debugger-controller and events.js are special and require to support two cases because this is
the only production codepath that can have a TabTarget or a WorkerTarget.
Thus, leading to either TargetFront or WorkerClient on target.activeTab.
* webide.js doesn't need to listen for tabNavigated, this is redundant with tabListChanged.
* application's initializer. In case you are wondering this code can't be spawn against a WorkerTarget.
The application panel doesn't work in worker toolboxes.
* The code modified in target is in TabTarget, so we don't have to support the WorkerClient case, we always have a TargetFront here.
* I tried to update the doc file the best I can but this all feel outdated.

MozReview-Commit-ID: 2hGchebfIub

Depends on D7458

Differential Revision: https://phabricator.services.mozilla.com/D7459
2018-10-11 15:46:28 +00:00
Julian Descottes 57995f8c50 Bug 1493104 - Add ADBScanner decorator to listen to addon status udpates;r=ladybenko,daisuke 2018-10-05 13:51:18 +02:00
Julian Descottes d680a11370 Bug 1494615 - Move ADBAddon module to devtools/shared/adb;r=ladybenko
Depends on D7402. Moving the module to a shared older. Following
patches will cleanup the implementation to remove WebIDE couplings.

Differential Revision: https://phabricator.services.mozilla.com/D7403
2018-10-03 13:34:40 +00:00
Julian Descottes e5b5086bb5 Bug 1494615 - Remove concept of availableAddons in WebIDE;r=ladybenko
There is only one addon to manage in WebIDe, removing the concept
of available addons will make it easier to move the ADBAddon module to a
shared folder.

Differential Revision: https://phabricator.services.mozilla.com/D7402
2018-10-04 16:09:44 +00:00
Alexandre Poirot 600169f1e8 Bug 1492434 - Computes isBrowsingContext from TabTarget out of actor's form r=jdescottes
Instead of requiring all TargetFactory.forRemoteTab to compute isBrowsingContext flag,
we can compute it out of the actor's form as we know which types are browsing context
inherited or not.

MozReview-Commit-ID: H5zLo5nZSm6

Differential Revision: https://phabricator.services.mozilla.com/D7413
2018-10-03 09:07:18 +00:00
Julian Descottes c084cc13f1 Bug 1492374 - Uninstall ADB Helper when starting WebIDE addons module;r=ladybenko
Depends on D7058. To test this you should first install ADB helper
(xpis at https://ftp.mozilla.org/pub/labs/fxos-simulator/adb-helper/mac64/)
and then start webIDE. Normally ADB Helper should be removed.

Differential Revision: https://phabricator.services.mozilla.com/D7059
2018-10-01 15:42:23 +00:00
Julian Descottes e3c5cd4da6 Bug 1492374 - Remove unused webide Addon abstract class;r=ladybenko
The addons module will be further simplified and transformed into a shared module
in coming bgs. Here since we introduce more ADBAddon-specific logic and we have no other
implementation for the Addon class, I prefer to remove it. (note that it was already doing
some adb-only processing in the current version anyway)

Differential Revision: https://phabricator.services.mozilla.com/D7058
2018-10-01 12:05:12 +00:00
Julian Descottes ee1b88b900 Bug 1492374 - Move all ADB related preferences out of webide;r=ladybenko
While this is not strictly related for uninstalling ADB helper this
small cleanup avoids duplicating the declaration of the adb extension
in two different preferences.

The URL preference also moves to a devtools-shared preference as there
is not much sense to keep it webide only.

Differential Revision: https://phabricator.services.mozilla.com/D7057
2018-10-01 11:40:23 +00:00
Julien Wajsberg 19d78e5b17 Bug 1459720 - Move the performance panel out of the toolbox to the WebIDE's top level window r=jdescottes
This effectively removes the devtools overhead while profiling... as
long as the toolbox isn't opened as well of course.

This also removes the performance panel from the Browser Toolbox and the
Browser Content Toolbox where it shouldn't have been in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D6904
2018-09-28 12:48:05 +00:00
Alexandre Poirot 5a6097b126 Bug 1492856 - Remove compatiblity code to guard against miss of RootActor.getRoot r=jdescottes
MozReview-Commit-ID: L5kkG9r7Rtv

Differential Revision: https://phabricator.services.mozilla.com/D6755
2018-09-26 21:12:16 +00:00
Hiroyuki Ikezoe f9bbbde376 Bug 1492724 - Add ADBScanner once after the extension is installed or is ready. r=jdescottes
And remove the ADBScanner once the extension is uninstalled.

When RuntimeScanners.add is called for ADBScanner, RuntimeScanner calls
ADBScanner.enable(), thus ADB.start() is called.  Meanwhile WebIDE installs the
devtools adb extension if the extension hasn't installed yet.  So if the
ADB.start() is called before the installation finishes, ADB.start() fails.

Differential Revision: https://phabricator.services.mozilla.com/D6466
2018-09-21 08:17:15 +00:00
Julian Descottes c45cf570f0 Bug 1492049 - Fix localization for ADB Extension strings in WebIDE;r=flod
Differential Revision: https://phabricator.services.mozilla.com/D6122
2018-09-18 07:26:31 +00:00
Julian Descottes 9b52b6a735 Bug 1491315 - Rename all references to ADB Helper to ADB Extension;r=daisuke 2018-09-14 17:57:13 +02:00
Julian Descottes 354f9cb8f4 Bug 1491315 - Use new ADB extension in WebIDE;r=hiro 2018-09-14 15:59:24 +02:00
Luca Greco dfef5d66ac Bug 1486762 - Add installTelemetryInfo to addon installed from WebIDE. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D5550
2018-09-12 10:05:03 +00:00
Alexandre Poirot 453be37998 Bug 1222047 - Manage device and preference fronts via client.mainRoot.getFront. r=yulia
Summary: Depends On D3317

Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: 3jaFZbXVLuw
2018-08-23 03:51:40 -07:00
Hiroyuki Ikezoe 5c5594b96b Bug 1469054 - Split Runtime.RuntimeTypes into a new file to import the RuntimeTypes in a file which is importing runtimes.js. r=jdescottes
MozReview-Commit-ID: LVfyW3aaSxU
2018-08-09 14:27:56 +09:00
Kris Maglione 9ba14892f2 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG
2018-05-20 18:10:16 -07:00
Narcis Beleuzu 749f83cc65 Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione 86fbdd6653 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG
2018-05-20 18:10:16 -07:00
J. Ryan Stinnett d609a92077 Bug 1172897 - Rename ChromeActor to ParentProcessTargetActor. r=ochameau
MozReview-Commit-ID: JM17h5ArYub
2018-06-01 17:31:48 -05:00
J. Ryan Stinnett c6fd8c950e Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o
2018-05-25 18:20:28 -05:00
Julian Descottes 9456167901 Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks
2018-06-01 12:19:35 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Kris Maglione c6695e70cf Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods. r=aswan
MozReview-Commit-ID: Gj2iCsBIdnq
2018-05-12 16:49:35 -07:00
Michael Ratcliffe 84b2422f95 Bug 1458206 - telemetry.js: Cleanup toolOpened/toolClosed r=jdescottes
The methods have been improved and now live in telemetry.js again.

We use these methods for tools that at least require timing.

MozReview-Commit-ID: 2CqBCA9j3XU
2018-05-04 18:00:04 +01:00
Michael Ratcliffe f565609f7f Bug 1458205 - telemetry.js: Remove actionOccurred r=jdescottes
MozReview-Commit-ID: 7mBtbV5inso
2018-05-04 14:30:40 +01:00