Commit Graph
234 Commits
Author SHA1 Message Date
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
Nazım Can Altınova eb059f7d89 Bug 1476775 - Part 2: Change the profiler usage in devtools after API change r=julienw,gregtatum
Depends on D6267

Differential Revision: https://phabricator.services.mozilla.com/D6268
2018-11-23 16:10:08 +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
Julian Descottes 2848b0a6f8 Bug 1507071 - Explicitly uninstall valence and adbhelper when starting aboutdebugging and webide;r=ochameau
Depends on D11862

Differential Revision: https://phabricator.services.mozilla.com/D11890
2018-11-14 15:33:01 +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
Paolo Amadini c695388eef Bug 1471403 - Part 4 - Convert "notificationbox" to a custom class. r=bgrins
As part of the conversion, support for notificationsHidden and children that are not notifications is also removed.

Differential Revision: https://phabricator.services.mozilla.com/D10894
2018-11-09 14:58:18 +00:00
Alexandre Poirot c6cd6525b6 Bug 1505172 - Remove references to devtools.debugger.forbid-certified-apps preference. r=jdescottes,jryans
MozReview-Commit-ID: JV8MXvIuXaa

Differential Revision: https://phabricator.services.mozilla.com/D11152
2018-11-08 16:46:58 +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
Julian Descottes 9a9bae2772 Bug 1499096 - Update tests using ok() to is(), with minor fixes;r=Standard8
Depends on D8741
This changeset updates some calls to ok() that should actually be calls to is()
and that needed tiny fixes to match the expected value.

Differential Revision: https://phabricator.services.mozilla.com/D8742
2018-10-23 07:21:18 +00:00
Julian Descottes 07720a1de0 Bug 1499096 - Use ok() with 2 arguments instead of 3 when possible;r=Standard8
Depends on D8740.
This changeset replaces calls to ok with 3 arguments to calls with 2 arguments
in situations where the switch does not have a significant impact on the assert.

Differential Revision: https://phabricator.services.mozilla.com/D8741
2018-10-23 07:13:35 +00:00
fvsch c85b6a1bf4 Bug 1490491 - Part 4: replace 2 png icons, remove 2 unused; r=pbro
Depends on D5954

Differential Revision: https://phabricator.services.mozilla.com/D5955
2018-10-22 14:47:28 +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
Paolo Amadini 58c9dca284 Bug 1428869 - Use html:progress in front-end code. r=bgrins,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9009
2018-10-18 15:41:21 +01: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 0d2e607da6 Bug 1493104 - Add adbScanner to WebIDE scanners if status is already installed;r=ladybenko,daisuke
This fixes the following scenario:
- install ADB
- connect a Device
- start about:debugging
=> device shows up in sidebar
- start WebIDE
=> device should show up in WebIDE
2018-10-05 11:21:04 +02:00
Julian Descottes b025701fad Bug 1493104 - Listen to ADB extension updates in about:debugging usb-runtime helper;r=ladybenko,daisuke 2018-10-05 11:45:32 +02:00
Julian Descottes 7f30313e4d Bug 1493104 - Convert ADBScanner from a singleton to a class;r=ladybenko,daisuke 2018-10-05 11:17:22 +02:00
Julian Descottes 07d7b56300 Bug 1496741 - Cleanup adb-addon.js module;r=ladybenko 2018-10-02 11:25:03 +02:00
Julian Descottes 3d62057beb Bug 1494615 - Accept source parameter in adb-addon install();r=ladybenko
Depends on D7404. The install method should not hardcode "webide"
for the addon manager telemetry info

Differential Revision: https://phabricator.services.mozilla.com/D7405
2018-10-04 18:43:29 +00:00
Julian Descottes fd905a6b37 Bug 1494615 - Update adb-addon module to expose a singleton;r=ladybenko
Depends on D7403
The getADBAddon/forgetADBAddon is not removing listeners or doing
anything useful since the next call to getADBADdon will just recreate an
instance of ADBAddon. We can expose a singleton and use lazy requires to
achieve the same effect

Differential Revision: https://phabricator.services.mozilla.com/D7404
2018-10-04 18:40:38 +00: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 50c1f2c6fc Bug 1459720 - Add a test that checks that we correctly launch the perf panel when pushing the button in WebIDE r=jdescottes
Depends on D6904

Differential Revision: https://phabricator.services.mozilla.com/D6934
2018-10-01 06:21:54 +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
Michael Ratcliffe 81596860ae Bug 1491879 - Fix telemetry support for multiple tabs / windows r=nchevobbe
- Various telemetry methods now need an object to be passed in in order to keep them seperate e.g. if the inspector is opened in tab 1 a timer is started. If an inspector is opened in tab 2 the same timer is restarted. Closing tab 2 would then erase the timing event invalidating the timer in tab 1.
- We no longer need to preface telemetry calls with category "devtools.main" because this is the only category we will be using.
- There are some changes to `devtools/client/debugger/new/dist/vendors.js` and `devtools/client/debugger/new/src/utils/telemetry.js` that need to be ported to the debugger at the same time as landing this.

Differential Revision: https://phabricator.services.mozilla.com/D6137
2018-09-25 12:57:13 +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 7640afa235 Bug 1491315 - Update webide addons test to use new adb-extension;r=daisuke
This re-enables a test that was disabled for a long time. The code
of the test is not the cleanest, but considering webIDE is going
away I prefer not too spend too much time on this.
2018-09-14 17:31:40 +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
Brian Grinstead ecb216ed5a Bug 1484759 - Update references to browser.xul in tests to use AppConstants.BROWSER_CHROME_URL;r=Gijs
This only includes functions that seem to be using it to reference a window.
There are other instances where it's used as a generic chrome URI, and those
are left unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D3806
2018-08-21 15:33:26 +00:00
Andreea Pavel a61f425b63 Bug 1469054 - edit type in devtools/client/webide/content/runtimedetails.js on a CLOSED TREE 2018-08-09 13:38:07 +03: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
Boris Zbarsky c3b43a0bda Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04: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