Commit Graph

39 Commits

Author SHA1 Message Date
J. Ryan Stinnett
1fe6338d4c Bug 1346854 - Delay network listening until toolbox open. r=ochameau
Once upon a time (bug 862341), we decided to enable network listening by
default in DevTools.

In a general sense, that's fine.  When you open a toolbox, we listen to that
tab and stop listening when the toolbox closes.

GCLI / Developer Toolbar is quite different, though.  It connects to the whole
browser.  This meant that enabling GCLI would start listening to network
activity in *every* tab (even though it doesn't have any way to even use that
data).  This of course will slow down performance with all the extra tracking
and eat up memory with the tracked request data.

In this change, we move the step to enable network listening into the toolbox,
which seems more like what we intended anyway.

MozReview-Commit-ID: 2UYoQtWCAE1
2017-03-23 14:34:37 -05:00
J. Ryan Stinnett
0ec08eee8e Bug 1352157 - Avoid listTabs for global actors. r=ochameau
Adds a new `getRoot` request to the root actor which lists the global actors
only (leaving out the tabs).  This is a much better fit for callers who want to
access some global actor only, since it avoids visiting every tab, which could
be a very expensive operation.

MozReview-Commit-ID: 1lIAuaV7zoF
2017-04-06 23:00:22 -05: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
Luca Greco
ae5eba4028 Bug 1291737 - Export TabTarget from 'devtools/client/framework/target' module. r=ochameau
MozReview-Commit-ID: D2CeRH74Vg8
2016-09-05 14:19:50 +02:00
Carsten "Tomcat" Book
88743960b8 Backed out changeset 235ba91834d5 (bug 1291737) 2017-01-19 16:59:20 +01:00
Luca Greco
295264723f Bug 1291737 - Export TabTarget from 'devtools/client/framework/target' module. r=ochameau
MozReview-Commit-ID: D2CeRH74Vg8
2016-09-05 14:19:50 +02: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
J. Ryan Stinnett
16edeff0d2 Bug 1316736 - Clean up RDM typos. r=ochameau
MozReview-Commit-ID: 4waiXuzrQDE
2016-11-09 18:38:28 -06:00
Alexandre Poirot
0d77c0893d Bug 1068400 - Restore toolbox when switching from in-parent-process to OOP tab. r=jryans
MozReview-Commit-ID: K51gp7PavC7
2016-10-24 07:37:23 -07:00
Alexandre Poirot
86da11cb16 Bug 1302148 - Nullify attributes on destroy to prevent leaking the toolbox. r=bgrins
MozReview-Commit-ID: AUsgbyi9KNQ
2016-09-12 03:21:40 -07:00
Alexandre Poirot
b38e2f3feb Bug 1243452 - Make DebuggerClient.close return a Promise. r=jryans
MozReview-Commit-ID: 26PNAS431Hc
2016-08-31 09:39:42 -07:00
2d7d4468a6 Bug 1281040 - Make sure we detach from worker client when target is destroyed. r=jlongster 2016-08-08 07:53:37 +02:00
Luca Greco
537d059f73 Bug 1285557 - Create a WebExtensionAddonActor based on ChromeActor and TabActor. r=jryans
MozReview-Commit-ID: 70sLUzqHHsl
2016-07-25 16:28:49 +02:00
J. Ryan Stinnett
7b666ebded Bug 1240900 - Use outerWindowID directly from browser. r=ochameau
MozReview-Commit-ID: JuJNSScaJEs
2016-06-25 11:35:02 -05:00
Tom Tromey
474aade274 Bug 1273941 - replace uses of promise.defer in devtools/client/framework; r=jryans
MozReview-Commit-ID: GwgbcXOmvtK
2016-06-09 09:04:58 -06: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
J. Ryan Stinnett
4d2441094d Bug 1090380 - Set a basic target name for workers. r=bgrins
MozReview-Commit-ID: 6QN7kekZdWJ
2016-05-06 11:33:43 -05:00
James Long
ece81a7a77 Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
Julian Descottes
64e10657e7 Bug 1261687 - Don't update devtools title if tabNavigated.isFrameSwitching;r=jryans
Check the "isFrameSwitching" property of the tabNavigated event before
updating the devtools title. If frameSwitching is true, the event is a
fake event generated by the webbrowser actor when switching the frame
context in the devtools.

Added another mochitest to verify this.

MozReview-Commit-ID: LDycPcf0tLv
2016-04-03 18:49:40 +02:00
Julian Descottes
3f106e85aa Bug 1260359 - fix devtools detached toolbox title update in e10s;r=jryans
The devtools host window updates its title when its target navigates.
This was done using a contentDocument CPOW, and thus failing on e10s.

The url and title are now stored in TabTarget and updated on tab navigation.
Updated existing test to cover the case of pages with a title.

MozReview-Commit-ID: 4G1keOA7yB6
2016-03-29 12:01:46 +02:00
Jordan Santell
91eae2ce6e Bug 1177279 - Create a SourceLocationController to manage the state of updating sources for source mapping. r=jlong,jryans 2016-03-14 18:49:07 -07:00
J. Ryan Stinnett
4ee1c905e1 Bug 1252346 - Some DevTools files missing Services. r=ochameau
MozReview-Commit-ID: F1SjhiXNZSj
2016-03-01 14:00:28 -06: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
10e241e049 Bug 1214352 - Enable scratchpad in tab toolboxes. r=jryans 2016-02-04 02:20:55 -08:00
Alexandre Poirot
2403bcf8e5 Bug 1239276 - Convert DebuggerClient.connect to promise. r=jryans 2016-01-28 10:11:31 -08:00
Alexandre Poirot
e54f63a8f7 Bug 950936 - Add disable autohide button in browser toolbox to help debug panel/popups. r=bgrins 2016-01-28 10:11:31 -08:00
James Long
a72194673b Bug 1132501 - attach the thread on toolbox open instead of waiting for the debugger to initialize r=bgrins 2016-01-06 14:47:24 -05:00
Brian Grinstead
0e4c66726b Bug 1215117 - Make console input field work inside a worker toolbox;r=ejpbruel 2015-10-26 09:13:11 -07:00
Eddy Bruel
93dd701490 Bug 1178726 - Simplify how we deal with freezing/thawing workers;r=jlongster,khuey 2015-10-16 18:48:26 +02:00
J. Ryan Stinnett
c5bbb48d61 Bug 1209634 - Reformat target.js to match ESLint rules. r=past 2015-10-01 18:13:24 -05:00
J. Ryan Stinnett
b540204019 Bug 1209634 - Remove unused target.version. r=past 2015-10-01 18:13:24 -05:00
J. Ryan Stinnett
f29022bbdb Bug 1209634 - Remove unused WindowTarget. r=past 2015-10-01 18:13:24 -05:00
Brian Grinstead
226440f850 Bug 1211017 - Show URL as the title in worker toolboxes;r=ejpbruel 2015-10-06 08:04:36 -07:00
Nick Fitzgerald
5b9dd76f87 Bug 1207645 - Create HeapSnapshotFileActor; r=jryans
This commit creates the HeapSnapshotFileActor and moves the transferHeapSnapshot
method from MemoryActor to HeapSnapshotFileActor. This is necessary because
child processes in e10s are sandboxed and do not have access to the file system,
and because MemoryActor is in the sandboxed child process it cannot open the
file and send it over the RDP.

This complexity is hidden at the MemoryFront layer. Users of MemoryFront will
still simply call its saveHeapSnapshot method, and do not need to worry about
the inner workings of how heap snapshot files are transferred over the RDP. This
required adding a third parameter to MemoryFront's initialize method: the
listTabs response.
2015-09-25 15:35:02 -07:00
Carsten "Tomcat" Book
c2da61610f Backed out 1 changesets (bug 1207645) for Mulet Gaia JS Integration Test Gij 21 and 4 perma test failures
Backed out changeset a23053342d5b (bug 1207645)
2015-09-25 16:54:34 +02:00
Nick Fitzgerald
1607d9bba1 Bug 1207645 - Create HeapSnapshotFileActor; r=jryans
This commit creates the HeapSnapshotFileActor and moves the transferHeapSnapshot
method from MemoryActor to HeapSnapshotFileActor. This is necessary because
child processes in e10s are sandboxed and do not have access to the file system,
and because MemoryActor is in the sandboxed child process it cannot open the
file and send it over the RDP.

This complexity is hidden at the MemoryFront layer. Users of MemoryFront will
still simply call its saveHeapSnapshot method, and do not need to worry about
the inner workings of how heap snapshot files are transferred over the RDP. This
required adding a third parameter to MemoryFront's initialize method: the
listTabs response.
2015-09-24 17:19:03 -07: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
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