Commit Graph
59 Commits
Author SHA1 Message Date
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
Alexandre Poirot 023f7a37d6 Bug 1323466 - Prevent loading webbrowser.js in child process. r=jryans
MozReview-Commit-ID: J1EmwxplNhA

Make actor registration more explicit and documented.
Each codepath depends on various set of actors, and it may be confused
as we often register actors if the DebuggerServer wasn't initialized yet.
But it is often already started by some other callsite...

This changeset also converts childtab to being just a module
and stop using DebuggerServer.addActors magic.
2016-12-19 03:14:12 -08:00
Jarda Snajdr 3ae9260bae Bug 1286281 - Part 7: Add WebSocket transport option to chrome debugger server r=jryans
MozReview-Commit-ID: 3gkcU2Zl8Pq
2016-08-01 08:00:00 -07:00
Jan Keromnes 84d47113b0 Bug 1268073 - Fix a few BrowserToolboxProcess leaks. r=ochameau 2016-06-28 08:39:37 -07:00
Alexandre Poirot 3fb26aa8a9 Bug 1268073 - Free loader created by BrowserToolboxProcess. r=jryans 2016-06-28 08:39:37 -07:00
Alexandre Poirot a70c9beceb Bug 1268073 - Prevent leaking BrowserToolboxProcess instance when debuggerServer leaks. r=jryans 2016-06-28 08:39:36 -07:00
J. Ryan Stinnett 169c44d5f6 Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey
A few miscellaneous linting issues also addressed near the lines involved.

MozReview-Commit-ID: 9t1RwxdSS2X
2016-06-09 14:10:07 -05:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Alexandre Poirot 4302367585 Bug 1261665 - Remove unecessary Loader.jsm main in favor of require(). r=jryans 2016-04-14 01:40:43 -07:00