Commit Graph
67 Commits
Author SHA1 Message Date
Alexandre Poirot 0ce86f8b2c Bug 1566457 - Remove unused provider logic from Loader.jsm. r=jdescottes
We used to have another provider which would load module via file:// URI,
directly from the disk. But the progress on artifact builds and ./mach build faster
made this obsolete and has been removed a long time ago.
We still have a lot of abstraction to support this non-existent feature.

Differential Revision: https://phabricator.services.mozilla.com/D38284
2019-07-18 12:25:05 +00:00
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
Daisuke Akatsuka 86d3bc4d84 Bug 1525533: Stop supporting inspection of addon in Browser Toolbox. r=jdescottes,rpl
Depends on D20786

Differential Revision: https://phabricator.services.mozilla.com/D20971
2019-02-27 01:57:19 +00:00
Kris Maglione 856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Julian Descottes eeec044773 Bug 1497264 - Remove references to AddonTargetActor setAddonOptions;r=ochameau,yulia
Depends on D15383

Differential Revision: https://phabricator.services.mozilla.com/D15384
2019-01-08 18:42:44 +00:00
Daisuke Akatsuka 1a0e92e8c8 Bug 1497448: Use SocketListener directly. r=ochameau,jdescottes
Depends on D10865

Differential Revision: https://phabricator.services.mozilla.com/D10867
2018-11-08 00:41:18 +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
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
Jan Odvarko ed19be3b3c Bug 1488915 - Migrate toolbox-process-window.xul to HTML; r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D5255
2018-09-10 17:14:57 +00:00
J. Ryan Stinnett 035161b7df Bug 1172897 - Rename BrowserAddonActor to AddonTargetActor. r=ochameau
MozReview-Commit-ID: 4iI6BQaleJS
2018-06-04 18:37:02 -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 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02: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
Julian Descottes 0a049a8375 Bug 1447154 - Use AppConstants.jsm instead of devtools/shared/system to get constants;r=jryans,nchevobbe
devtools/shared/system is a complex module retrieving details device/platform
information. Modules that only need to get AppConstants should not pull down
such a complex dependency.

MozReview-Commit-ID: 2FmCO8nBSpP
2018-03-19 22:18:20 +01:00
Nicolas Chevobbe f50726549e Bug 1382581 - Remove old-event-emitter usage from devtools/client/framework; r=bgrins.
MozReview-Commit-ID: 4oQJ3391H9S
2018-03-14 17:31:12 +01:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Luca Greco f237100d39 Bug 1435959 - Fix missing network requests in netmonitor panel for oop extensions. r=ochameau
MozReview-Commit-ID: F8jzwBveACm
2018-02-19 18:00:35 +01:00
Nicolas Chevobbe 0493daea28 Bug 1382609 - Remove old-event-emitter usage from devtools/server; r=pbro.
MozReview-Commit-ID: 3B3slS3EPYn
2018-02-27 09:06:56 +01:00
Brian Grinstead c116f51a86 Bug 1440094 - Remove imports to Console.jsm that only access the 'console' object;r=mossop
Importing this object is unnecessary after the updates to the WebIDL console from Bug 1425574
and the follow-ups blocking Bug 1430810. There are still callers that access Console.jsm
to create custom ConsoleAPI objects, but those will be handled separately.

MozReview-Commit-ID: 9ojFxtkpPId
2018-02-27 11:29:59 -08:00
Brian Grinstead 4a8db086aa Bug 1438487 - Restore the Browser Toolbox using session store;r=jryans
MozReview-Commit-ID: JUbafbthojm
2018-02-21 15:47:36 -08:00
Alexandre Poirot 13e5d4f0f5 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs
2018-02-07 01:37:36 -08:00
Andrew McCreight 272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Kris Maglione 0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian 483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione 683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Julian Descottes 21b6d9f77b Bug 1416711 - Add registerAllActors API;r=ochameau
Most of the codebase that needs to create a debugger server
can use a server with all actors registered.

Define an additional method registerAllActors to do that.

By previous implementations, all the call sites that were
using browser: true were indirectly using tab & root: true
as well. So all the call sites using browser: true have been
migrated to registerAllActors and the specific behavior of
the browser: true case has been removed. Passing browser:true
to registerActors now only registers browser specific actors.

MozReview-Commit-ID: F3sx71eGrdG
2017-11-13 21:22:15 +01:00
Brian Grinstead 18b368cf83 Bug 1397295 - Use environment variables instead of query string for params to Browser Toolbox;r=jryans
This allows data like screen position to be persisted in the xul store for the document

MozReview-Commit-ID: 4vdbkneckXh
2017-09-18 15:52:11 -07:00
Brian Grinstead 8f4bce22cd Bug 1374837 - Pipe stderr to stdout to fix the Browser Toolbox in certain Windows builds;r=kmag
This is working around an issue with Subprocess that affects some developers
using a 32 bit build on a 64 bit Windows

MozReview-Commit-ID: COsKOkBVjSZ
2017-09-11 11:34:21 -07:00
Brian Grinstead 64309d1bbe Bug 1374837 - Add some additional logging in case the Browser Toolbox fails to open;r=jryans
MozReview-Commit-ID: 8EYnjOcZFAU
2017-06-21 11:13:35 -07:00
Julian Descottes 6e285e3e8a Bug 1395990 - use constant MOZILLA_OFFICIAL to check for local build in ToolboxProcess.jsm;r=bgrins
MozReview-Commit-ID: mzBOBwruL9
2017-09-01 18:28:08 +02:00
Brian Grinstead 6ea03fa837 Bug 1392744 - Pass the port along to the browser toolbox chrome uri;r=jryans
This allows multiple browser toolboxes to be opened at once, assuming the host
profiles have different values for devtools.debugger.chrome-debugging-port

MozReview-Commit-ID: 1bzsZFww4Zv
2017-08-24 10:03:47 -07:00
ZER0 d78f1c54ef Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 03:47:30 +02:00
Wes Kocher aa1caed330 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc
2017-08-10 18:23:14 -07:00
ZER0 c91b128704 Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 02:43:47 +02:00
J. Ryan Stinnett 13aa5364d7 Bug 1386830 - Test profile dirs in Browser Toolbox. r=jdescottes
Before trying to migrate Browser Toolbox profile dirs, ensure the old and new
dirs are actually different.  This avoids an issue where we were constantly
"migrating" the profile to the same place, effectively deleting it on every run.

MozReview-Commit-ID: FUAb2G21nbV
2017-08-02 16:34:40 -05:00
Sebastian Hengst a95badd051 Backed out changeset 0462e7a66185 (bug 1369801)
MozReview-Commit-ID: Hc6hLI0Ywxj
2017-07-27 18:14:08 +02:00
Julian Descottes 72ca589618 Bug 1369801 - dt-addon: clear extensions.lastAppVersion when creating browser toolbox profile;r=ochameau
This is needed to:
1. force the devtools system addon installation when starting the BT instance of FF
2. avoid the addon update prompt

Another approach is to create a separate user.js pref file to fix 1. However with this
approach there is currently no way to fix 2.

MozReview-Commit-ID: palK2hION0
2017-07-06 02:48:41 +02:00
J. Ryan Stinnett ef4570eae6 Bug 1378480 - Dump Browser Toolbox stdout to terminal. r=kmag
MozReview-Commit-ID: BSnvDzisCB3
2017-07-05 15:01:16 -05:00
Julian Descottes 46d114a202 Bug 1375809 - use events to communicate between XPIProvider.jsm and ToolboxProcess.jsm;r=aswan,jryans
As DevTools are moving to be an addon and out of mozilla-central, we should remove the
coupling between the mozilla-central code and the DevTools code.

Instead of directly loading and calling the ToolboxProcess, XPIProvider.jsm now uses
events to interact with BrowserToolboxProcess.

MozReview-Commit-ID: HpnMLCILkea
2017-06-23 17:44:05 +02:00
Kris Maglione cf895c3c1d Bug 1370027: Part 2 - Use Subprocess.jsm rather than nsIProcess to create the Browser Toolbox process. r=bgrins
Using nsIProcess has the side-effect of spawning a NSPR process wait loop
thread, which makes it impossible for other IPC code to waitpid on its own
processes, and check their exit status. There are other instances that need to
be changed as well, but this is the one that developers are most likely to run
into.

MozReview-Commit-ID: L0WyOxlXbkk
2017-06-06 16:15:38 -07:00
Florian Queze 451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
J. Ryan Stinnett 7732fe5d15 Bug 1342588 - Use ProfD for Browser Toolbox profile. r=ochameau
Originally, the profile was placed in `ProfLD` instead of `ProfD`.  On some
systems, such as macOS, `ProfLD` is in the user's Caches directory, which is not
an appropriate place to store supposedly persistent profile data.

MozReview-Commit-ID: IWudqEg3kbI
2017-03-01 15:17:59 -06:00
J. Ryan Stinnett f60efe3dc8 Bug 1275078 - Fix ESLint issues in toolbox and target files. r=ochameau
MozReview-Commit-ID: 8SoQ2JnTib3
2017-02-22 12:33:20 -06:00