Commit Graph

122 Commits

Author SHA1 Message Date
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
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
2c3648012a Bug 1353897 - Only destroy preference front if used. r=ochameau
The toolbox can get a preference front for toggling various prefs on the server.
The toolbox destruction code path was written in such a way that it would
request a preference front during toolbox destroy, only to immediately destroy
the front right after.  This is extra painful, since we send a `listTabs`
request and other fun things as part of this.

With this change, we cache the preference front when it is first used, and we
only attempt to destroy it if it was previously used.

MozReview-Commit-ID: 9repQSXjdRj
2017-04-05 16:17:47 -05:00
Ricky Chien
82e8981d8d Bug 1350215 - Move top level source files to src folder r=gasolin,Honza
MozReview-Commit-ID: 6iJr5BNlnbd
2017-03-26 20:35:38 +08:00
Wes Kocher
2baab983e8 Backed out 7 changesets (bug 1350215) for OSX failures in browser_all_files_referenced.js a=backout
Backed out changeset 435557f30204 (bug 1350215)
Backed out changeset b8358b21928c (bug 1350215)
Backed out changeset 59d2a3f98f6d (bug 1350215)
Backed out changeset e219f3f6e8e7 (bug 1350215)
Backed out changeset f812f7a98a9c (bug 1350215)
Backed out changeset e676e004d08e (bug 1350215)
Backed out changeset e6d27888cb6f (bug 1350215)
2017-03-28 23:25:01 -07:00
Ricky Chien
e89142cfa8 Bug 1350215 - Move top level source files to src folder r=gasolin,Honza
MozReview-Commit-ID: 6iJr5BNlnbd
2017-03-26 20:35:38 +08:00
J. Ryan Stinnett
582e30f4bc Bug 1349360 - Expose client-side source map service on toolbox. r=ochameau
This makes the new client-side mapping service available from the toolbox.  Note
that it's not actually _used_ from here yet, as that will happen in separately.

MozReview-Commit-ID: 5Bq774CANfC
2017-03-21 17:11:17 -05:00
J. Ryan Stinnett
b1e4f726f1 Bug 1349360 - Mark experimental SourceMapService as deprecated. r=ochameau
The existing `SourceMapService` uses server-side source maps, which we are
replacing with client-side source maps.  It will be removed later in bug
1349354, but for now mark it as deprecated so we don't use it with any other
tools.

MozReview-Commit-ID: ABmWGC5asZd
2017-03-21 16:44:09 -05:00
Matteo Ferretti
1fc638443d Bug 1342928 - Keep the commands / buttons state in sync; r=jwalker
This was a regression given by bug 1320149; in order to keep the performance
gain I created a lightweight object (`CommandState`) that is required from both
gcli's command and toolbox so that the last one doesn't need to be strong
coupled with the first one.

MozReview-Commit-ID: 3NcTt6i4ezx
2017-03-20 14:54:03 +01:00
Florian Quèze
c7eae86054 Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
Julian Descottes
34e800bbfa Bug 1335608 - add a button to select hidden tools when toolbox toolbar overflows;r=gregtatum
MozReview-Commit-ID: HgfSteV6WXy
2017-03-01 17:32:55 +01:00
J. Ryan Stinnett
12ff527244 Bug 1339992 - Use common spelling for all source map prefs. r=jdescottes
MozReview-Commit-ID: K0MmghEuRa7
2017-02-15 17:44:42 -06:00
Alexandre Poirot
2b8fa69a0d Bug 1337510 - Remove dead code related to gcli command buttons. r=jryans
MozReview-Commit-ID: 8mF3u2hvjnu
2017-02-07 22:21:54 +01:00
Alexandre Poirot
469a33b758 Bug 1320149 - Prevent loading gcli when opening a toolbox. r=jwalker,miker
MozReview-Commit-ID: KE209SRA15u
2017-01-05 10:27:31 -08:00
Florian Quèze
c32c931bc9 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Nicholas Nethercote
cb4cbc3719 Bug 1333296 (part 5) - Remove SPS references in devtools/ and dom/. r=mstange. 2017-01-25 09:08:15 +11:00
Yura Zenevich
c2b89b117f Bug 1327972 - make sure alt/cmd+lefr/right navigate history even if devtools toolbar is focused. r=jryans
MozReview-Commit-ID: 86Qhmtz4ODG
2017-01-19 12:21:12 -05:00
Florian Quèze
63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Sebastian Hengst
c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Alexandre Poirot
9e7856d7a9 Bug 1323466 - Lazy load optional deps from toolbox.js. r=jryans
MozReview-Commit-ID: 1E8fm9dfCwj
2016-12-14 08:33:54 -08:00
Greg Tatum
4cfa5992a4 Bug 1245921 - Turn toolbox toolbar into a React component r+miker r=miker
MozReview-Commit-ID: 4UZbcfw2YI9
2016-11-18 15:02:21 -06:00
Gabriel Luong
a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Jaideep Bhoosreddy
b53e50167d Bug 1257913 - Add copy screenshot to clipboard feature; r=jryans
MozReview-Commit-ID: 6pMNR8hCR7d
2016-09-09 12:17:08 -04:00
Tom Tromey
8a93d4e955 Bug 1316630 - don't emit pref-changed event on gDevTools; r=jdescottes
MozReview-Commit-ID: CCqAf8dBFSY
2016-11-21 08:47:10 -07:00
Luca Greco
0b6c034bdf Bug 1308912 - Add support for addon tools registered to a specific DevTools toolbox. r=ochameau
MozReview-Commit-ID: 7DzyXLGOs5w
2016-11-03 18:41:26 +01:00
Luca Greco
772fc334f1 Bug 1308912 - Simplify tool-unregistered by only accepting a string toolId. r=ochameau
MozReview-Commit-ID: 3QjWIAwol6A
2016-10-14 17:54:56 +02:00
Tom Tromey
1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher
20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey
d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Alexandre Poirot
8ec70e165f Bug 1311737 - Prevent toolbox.selectTool from racing when calling multiple times. r=pbro
MozReview-Commit-ID: lZZGviAFl3
2016-10-25 06:57:28 -07:00
Alexandre Poirot
142db3bce0 Bug 1266134 - Pull host management out of toolbox.xul. r=jryans
MozReview-Commit-ID: 71GNAFuVFgl
2016-08-25 05:51:11 -07:00
Greg Tatum
c3ca469ef1 Bug 1224304 - Handle canceling the element picker better r=gl
This changes the behavior of the element picker so that when it is
cancelled the previously selected DOM node is re-scrolled into view.
Additionally the existing behavior of the keyboard shortcuts for the
element picker was broken when the devtools toolbox was docked. The main
content area was not being focused, so the keyboard shortcuts for the
element picker were not being used. When the toolbox is detached, the
focus event is still not fired, as it's not desirable to have the
content pop into view over the devtools.

Finally there is now an additional implementation of the Escape shortcut
when the devtools are focused. The console Escape shortcut is ignored
until the element picker has been disabled making disabling the element
picker consistent irrelevant of the context.

MozReview-Commit-ID: HxENmPBoTcD
2016-10-06 13:40:53 -05:00
J. Ryan Stinnett
d70bb81021 Bug 1212689 - Extract ToolboxButtons to save GCLI from loading toolbox.js. r=ochameau
MozReview-Commit-ID: DZcvEa9v0vS
2016-10-13 11:21:53 -05:00
Helen V. Holmes
e1c13ffaac Bug 1226913 - Don't allow to disable the element picker icon. r=pbro 2016-10-10 05:12:00 -04:00
Gabriel Luong
9dd5c70e0f Bug 1305786 - Add initial react/redux boilerplate for creating a new layout panel r=honza 2016-10-03 10:22:26 -04:00
Julian Descottes
9b3e52fbcf Bug 1305007 - set dir attribute value only if document.hasAttribute("dir");r=bgrins
MozReview-Commit-ID: EnDi7iuoJ5P
2016-09-28 17:35:40 +02:00
Patrick Brosset
ee4a9fbf43 Bug 733880 - Add the missing copy/paste/cut menus on all text boxes in inspector; r=jdescottes
This change makes use of the toolbox's textBox menu in all of the
inspector's text fields.
Previously, right-clicking in a text field in the inspector would give
various results: either the tool's context menu would open, or nothing
would happen, or the usual copy/paste/cut menu would open.

Now, right-clicking in any text field in the inspector always shows the
copy/paste/cut menu.

MozReview-Commit-ID: DwkhBqY7Qzj
2016-09-23 19:21:09 +02:00
Julian Descottes
5ca952ef49 Bug 1305007 - fix jetpack tests;r=bustage
MozReview-Commit-ID: 79lcPX2eshe
2016-09-28 15:55:55 +02:00
Julian Descottes
2e468e5eab Bug 1305007 - RTL: set dir attr. when loading devtools HTML document;r=bgrins
Toolbox sets the dir attribute on a panel document element when loading a panel,
if the panel is using a HTML document.

Using the ForceRTL addon, the dir attribute should be automatically updated whenever
the direction is changed by the addon.

MozReview-Commit-ID: 2r18APw7IBs
2016-09-23 19:50:41 +02:00
Julian Descottes
7c53208c1b Bug 1297113 - Convert useKeysWithSplitConsole to use key-shorcut.js;r=ochameau
MozReview-Commit-ID: 6pbjxNJaTcs
2016-09-16 14:32:26 +02:00
Julian Descottes
37489206d7 Bug 1297113 - Fix eslint errors in toolbox.js;r=ochameau
MozReview-Commit-ID: 3q53J5L1bOk
2016-09-12 16:51:40 +02:00
Alexandre Poirot
4c8d0ff2b8 Bug 1302148 - Fix potential race in toolbox.destroy. r=bgrins
MozReview-Commit-ID: 8qSwjLVrRL6
2016-09-12 02:44:17 -07:00
Alexandre Poirot
9b033dc3df Bug 1302148 - Fix various code leaking devtools toolbox. r=bgrins
MozReview-Commit-ID: 9oqcXeuM9i
2016-09-14 06:33:49 -07:00
Jason Laster
cd58c4f148 Bug 1302202 - Fix splitconsole keypress handler. r=jlongster 2016-09-13 22:55:05 -04:00
Alexandre Poirot
f32b04847e Bug 1298082 - Cleanup toolbox on its document unload. r=jryans
MozReview-Commit-ID: 6tghrnYJiOy
2016-08-30 06:32:00 -07:00
Alexandre Poirot
35acaa9d89 Bug 1298082 - Replace toolbox.frame usages with equivalents around toolbox.win. r=jryans
MozReview-Commit-ID: ClpBWEZbKq1
2016-08-30 06:42:25 -07:00
Alexandre Poirot
5a92c204eb Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM
2016-08-25 05:50:44 -07:00
Alexandre Poirot
49cc9d82d4 Bug 1297288 - Prevent all toolbox key shortcuts from triggering Firefox equivalents. r=jryans 2016-08-31 07:07:44 -07:00
Sunny
a64f0d693b Bug 1205845 - Implement telemetry measure to track toolbox docking setting; r=jryans p=bsmedberg
MozReview-Commit-ID: 7Zl1ggZDbde
2016-08-30 10:19:29 -05:00