Commit Graph
39 Commits
Author SHA1 Message Date
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
Alexandre Poirot 82c5dde6ef Bug 1261055 - Fix Browser Toolbox leak of its parameters. r=jryans 2016-04-12 13:05:36 -07:00
Alexandre Poirot 43f3bed9be Bug 1261055 - Use env variable instead of BrowserToolboxProcess contructor option. r=jryans 2016-04-12 13:05:36 -07:00
Alexandre Poirot bb787b541e Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00
Lin Clark 93a502a1d1 Bug 1245667 - Use standard license boilerplate in framework js files. r=bgrins
MozReview-Commit-ID: 31xbv6rirPg
2016-02-16 16:14:53 -08:00
Alexandre Poirot 95b572b3e3 Bug 1246692 - Test that the browser toolbox has a working console. r=jryans 2016-02-16 07:23:56 -08:00
J. Ryan Stinnett 687866dde2 Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
J. Ryan Stinnett 2df2dd8be3 Bug 912121 - Package DevTools client content in devtools.jar. rs=devtools
Break DevTools content files out of browser.jar and move to a new DevTools
specific jar.  Update all paths of the form:

chrome://browser/content/devtools/<X>

to

chrome://devtools/content/<Y>

where <Y> is the source tree path that comes after /devtools/client.
2015-09-21 12:02:37 -05:00
J. Ryan Stinnett a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00