Commit Graph

231 Commits

Author SHA1 Message Date
Boris Zbarsky
25dee35220 Bug 1107443 part 1. Stop defining non-configurable properties on the window in devtools. r=jimb 2015-01-23 09:54:14 -05:00
Jim Blandy
cc14b80dc2 Bug 967234: Don't block self-hosted code in the devtool client code; Debugger takes care of this. r=ejpbruel 2014-12-23 16:47:52 -08:00
James Long
edda82574b Bug 905700 - use Debugger.Source in the debugger backend and reference source actors instead of URLs in the frontend r=fitzgen 2014-11-25 15:02:39 -08:00
Alexandre Poirot
9c99f9824d Bug 1094203 - Enable tools if related actor is available. r=jryans 2014-11-12 04:57:00 +01:00
James Long
46f58d16b2 Bug 1093349 - Add prettyPrinting and blackBoxing traits and hide buttons in debugger conditionally. r=past, a=me 2014-11-05 10:16:00 -05:00
Jakub Jurovych
497f5add2e Bug 1052220 - Show traces' hit counts. r=fitzgen 2014-08-26 18:25:00 +02:00
Jakub Jurovych
9e2b7582f4 Bug 949762 - Tracer should respect black boxing. r=fitzgen 2014-08-14 18:02:00 -04:00
Panos Astithas
94067e1295 Properly handle bound functions in event listeners and objects with 'handleEvent' methods (bug 746622). r=vporof,mratcliffe 2014-06-12 17:18:09 +03:00
Panos Astithas
c19aa67f07 Properly handle terminated scripts in the debugger (bug 814683). r=fitzgen 2014-07-15 19:20:38 +03:00
Panos Astithas
ce567f98b9 Black box sources before deciding whether to stage them for later addition (bug 1038117). r=fitzgen 2014-07-14 18:30:28 +03:00
Panos Astithas
25b8256a4d Wait a turn of the event loop if CodeMirror isn't settled by the time breakpoints are being set (bug 1016310). r=vporof 2014-07-09 18:49:34 +03:00
Nick Fitzgerald
49a3e83568 Bug 1032379 - Automatically black box sources whose URL ends with '.min.js'. r=past 2014-07-03 09:44:00 -04:00
Panos Astithas
dce2293573 Avoid a race in CodeMirror initialization when setting breakpoints and don't let ESC stop navigation if the debugger is paused (bug 957174). r=vporof 2014-06-19 10:15:14 +03:00
Victor Porof
6a063b3e34 Bug 1034129 (relanded) - Event listeners should be clustered together by type in the events pane, r=past 2014-07-04 14:54:49 -04:00
Carsten "Tomcat" Book
6604a8f8ee Backed out changeset 0685c59d2e94 (bug 1034129) for dt test failures 2014-07-04 15:57:55 +02:00
Victor Porof
d410029a0b Bug 1034129 - Event listeners should be clustered together by type in the events pane, r=past 2014-07-04 08:19:38 -04:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Brian Grinstead
027c1f0249 Bug 1018955: Get rid of pause/resume button flicker when setting breakpoint;r=fitzgen 2014-06-09 08:04:18 -05:00
Brian Grinstead
09c487b66e Bug 1018955 - Fix pause/resume button flicker when debugger first loads. r=fitzgen 2014-06-05 17:03:00 +02:00
Carsten "Tomcat" Book
8b846dba4e merge fx-team to mozilla-central 2014-05-21 13:57:43 +02:00
Wes Kocher
a6bd65cf07 Bug 991797 - convert most of the debugger frontend to use Task.jsm and fix discovered async errors r=victorporof 2014-05-20 15:55:39 -07:00
James Long
203bdc87e1 Bug 799077 - slide the breakpoint with a CSS transition when the server moves it r=past 2014-05-08 14:57:00 +02:00
Victor Porof
ffaaf21a54 Bug 1006589 - (relanded) Hovering an identifier will sometimes remove the highlighting of the line where the debugger is paused, r=rcampbell 2014-05-08 22:14:42 -04:00
James Long
4bc24b26eb Bug 995252 - Always remove a breakpoint and create a new one when setting the condition. r=past 2014-05-07 11:41:00 -04:00
Carsten "Tomcat" Book
ea64f8f5ef Backed out changeset df8bf3b71adb (bug 1006589) for frequent dt1 test failures 2014-05-08 09:26:29 +02:00
Victor Porof
b42dc70b17 Bug 1006589 - Hovering an identifier will sometimes remove the highlighting of the line where the debugger is paused, r=rcampbell 2014-05-07 09:38:17 -04:00
Victor Porof
e35550187d Bug 1006489 - Scopes in the debugger don't always reexpand after stepping, r=rcampbell 2014-05-07 09:38:16 -04:00
Shu-yu Guo
b869c9a73e Bug 717749 - Part 2: Hook up the debugger to the slow script debug service. (r=past) 2014-05-20 18:27:25 -07:00
Paolo Amadini
6d99e32a9f Bug 995184 - Copy the legacy "promise.js" implementation from the Add-on SDK to devtools. r=past 2014-04-22 20:55:01 +01:00
James Long
e04fcf02a9 Bug 812172 - Add conditional breakpoint handling to the debugger client. r=vp 2014-04-04 08:27:57 -04:00
Panos Astithas
3d6ccc60f1 Fix a typo in error reporting when attaching to the tracer (bug 989627). r=vporof 2014-04-03 16:59:46 +03:00
Dave Townsend
fb04fd3a86 Bug 986838: Add-on SDK modules should be listed after the add-on's own modules. r=fitzgen 2014-03-27 11:35:14 -07:00
Jordan Santell
13e58e7f00 Bug 911098 - Implement Addon Debugger UI, r=fitzgen,harthur,mossop
From 8af4148dc10f18bf67e39442ee93169cb66382d5 Mon Sep 17 00:00:00 2001
---
 browser/devtools/debugger/debugger-controller.js   |  36 ++++++-
 browser/devtools/debugger/debugger-panes.js        |  17 +++-
 browser/devtools/debugger/test/browser.ini         |   1 +
 .../debugger/test/browser_dbg_addon-sources.js     | 108 ++++++++++++++++++++
 browser/devtools/debugger/test/head.js             |  29 ++++++
 browser/devtools/framework/ToolboxProcess.jsm      |  31 ++++--
 .../devtools/framework/toolbox-process-window.js   |  18 +++-
 modules/libpref/src/init/all.js                    |   3 +
 .../en-US/chrome/mozapps/extensions/extensions.dtd |   1 +
 toolkit/mozapps/extensions/content/extensions.js   |  55 +++++++---
 toolkit/mozapps/extensions/content/extensions.xml  |  31 +++++-
 toolkit/mozapps/extensions/content/extensions.xul  |   6 ++
 .../mozapps/extensions/internal/XPIProvider.jsm    |   4 +
 .../extensions/internal/XPIProviderUtils.js        |   2 +-
 .../test/addons/test_jetpack/bootstrap.js          |  17 ++++
 .../test/addons/test_jetpack/harness-options.json  |   1 +
 .../test/addons/test_jetpack/install.rdf           |  28 ++++++
 .../extensions/test/browser/browser-common.ini     |   1 +
 .../test/browser/browser_debug_button.js           | 112 +++++++++++++++++++++
 toolkit/mozapps/extensions/test/browser/head.js    |   3 +
 .../extensions/test/xpcshell/test_isDebuggable.js  |  36 +++++++
 .../extensions/test/xpcshell/xpcshell-shared.ini   |   1 +
 22 files changed, 508 insertions(+), 33 deletions(-)
 create mode 100644 browser/devtools/debugger/test/browser_dbg_addon-sources.js
 create mode 100644 toolkit/mozapps/extensions/test/addons/test_jetpack/bootstrap.js
 create mode 100644 toolkit/mozapps/extensions/test/addons/test_jetpack/harness-options.json
 create mode 100644 toolkit/mozapps/extensions/test/addons/test_jetpack/install.rdf
 create mode 100644 toolkit/mozapps/extensions/test/browser/browser_debug_button.js
 create mode 100644 toolkit/mozapps/extensions/test/xpcshell/test_isDebuggable.js
* * *
Leak fix
2014-03-25 10:59:14 -07:00
Wes Kocher
d02d099208 Backed out changeset 7d9bbb3ec194 (bug 911098) for debugger leaks on a CLOSED TREE 2014-03-24 18:36:42 -07:00
Jordan Santell
817da65e8e Bug 911098 Implement addon debugger UI, r=mossop,fitzgen,harthur 2014-03-24 15:35:44 -07:00
Stefan Alderson
18ffdf795d Bug 960905 - DevToolsUtils.reportException is misused in Tracer.prototype. r=fitzgen 2014-03-03 10:33:58 -05:00
Tim Taubert
76c5f12234 Bug 978541 - Use delegating yield for debugger-controller.js r=past 2014-03-02 10:34:05 +01:00
J. Ryan Stinnett
88ab23fb47 Bug 965157 - Remove standalone chrome debugger code paths. r=vporof 2014-02-26 22:33:35 -06:00
Hubert B Manilla
a06cffe4f5 Bug 943356 - Prettifing a source while paused will not switch away from it. r=fitzgen 2014-02-27 11:39:56 -05:00
Nick Fitzgerald
0a7ee136e2 Bug 974159 - debugger-controller.js should use ES6 iterators instead of old style iterators; r=past 2014-02-26 19:57:46 -08:00
J. Ryan Stinnett
26967f4282 Bug 976679 - Move event-emitter to toolkit. r=paul 2014-02-25 22:22:05 -06:00
Panos Astithas
416512ec68 The debugger shouldn't try to connect to the tracer actor if it is not present or if tracing is disabled (bug 970536). r=fitzgen 2014-02-13 09:18:36 +02:00
Ryan VanderMeulen
9cb1e54009 Backed out changeset 2b95fec2f1f5 (bug 970536) for mochitest-bc failures.
CLOSED TREE
2014-02-12 08:19:05 -05:00
Panos Astithas
5a09478eeb The debugger shouldn't try to connect to the tracer actor if it is not present or if tracing is disabled (bug 970536). r=fitzgen 2014-02-12 12:40:52 +02:00
J. Ryan Stinnett
f5d6e8ec2a Bug 919819 - Detect JS files from fetched content type. r=fitzgen 2014-02-11 15:35:11 -06:00
Panos Astithas
d65d1ad5e5 Keep populating the Events pane even in the presence of event listeners with no associated Debugger.Script (bug 942899). r=vporof 2014-02-06 18:33:26 +02:00
Hubert B Manilla
5cb9c4fdbb Bug 927673 - Fix forPage has no sources showing when debugger is loading. r=fitzgen 2014-02-06 10:04:13 -05:00
Victor Porof
9a5ec580a2 Bug 965171 - Opening a variables view popup will change the scroll position in the editor if a watch expression is present, r=past 2014-01-30 12:46:09 +02:00
Panos Astithas
8609912471 Make the debugger frontend cope with an already connected target (bug 933212); r=jryans,fitzgen
* Made the DebuggerClient, which is actually the RootActor front, not consider one of the attached child fronts as "active". Since a single DebuggerClient (or RootFront) is kept around for the App Manager's lifetime, it makes sense to move the notion of "active" tab to the toolbox's target. As each toolbox gets destroyed, the fronts should be detaching from their actors (if they are stateful) so that the app is no longer in a debugging state. Debugging a new app (or reconnecting to a previous one) will create new fronts anyway.
* Slightly refactored the TabClient, ThreadClient, SourceClient and TracerClient towards a protocol.js-based architecture, by adding parent-child references and lifecycle management. Now a tab-scoped thread actor for instance has the tab as its parent, while a global-scoped thread actor (chrome debugger) has the DebuggerCLient (RootFront) as its parent. This lets parents reference their children, so that caching in the target object can work. It also allowed me to move some methods from the DebuggerClient to the actual front that should be responsible, like reconfigureTab, reconfigureThread and attachThread. These methods now use DebuggerClient.requester, too.
* Added some error handling in the debugger client requester around "before" and "after" callbacks, which exposed some errors in tests that are now fixed.
* Fixed the state handling in the thread actor so that merely detaching from a thread doesn't put it in the exited state. This is the part that what was necessary for Firebug's use case.
* Properly loading tracer and webgl actors now on b2g.
2014-01-14 17:39:40 +02:00
Victor Porof
58d2e24191 Bug 951795 - Use WidgetMethod's empty text attribute instead of a deck in the tracer, r=fitzgen 2014-01-07 11:57:00 +02:00