Commit Graph
50 Commits
Author SHA1 Message Date
Alexandre Poirot c27e927f66 Bug 1199201 - Fix devtools loader path for WebIDE from loading it from local sources. r=jryans 2015-09-08 09:48:38 -07:00
Tom Tromey 9f42cfa4c1 Bug 1195349 - Make css-color preserve original text; add classifyColor. r=pbrosset 2015-09-01 07:26:00 -04:00
Alexandre Poirot 3ee514ac09 Bug 1193313 - Cleanup promises. r=jryans 2015-08-13 10:57:15 -07:00
Alexandre Poirot 8c0e5c90ec Bug 1188401 - Expose require out of Loader.jsm and use it. r=jryans 2015-08-06 05:38:10 -07:00
Alexandre Poirot 3abe243350 Bug 1182194 - Use DevToolsUtils module instead of JSM. r=jwalker 2015-07-28 08:03:17 -07:00
Sami Jaktholm f5a6e50b0a Bug 1181345 - Make DevToolsUtils.fetch work with files that are not UTF-8 encoded. r=past
These changes restore the previous behavior in which the data is decoded
according to a locale specific default charset if the UTF-8 conversion fails.
This allows the method to properly decode both UTF-8 data and data that has
been encoded with the locale default charset (ISO-8859-1 in most cases) without
any charset hints from the source.

The conversion is now a two step process:
1. Convert the stream content to a string using the locale specific encoding.
2. Try reinterpret the data according to UTF-8 rules. If it succeeds, return
   the conversion result. If it fails, return the original string.
2015-07-11 13:45:59 +03:00
Geoff Brown e7ae18404c Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Sami Jaktholm 03fec8e250 Bug 1170864 - Add xpcshell-tests for DevToolsUtils.fetch. r=past 2015-06-13 08:50:28 +03:00
Nick Fitzgerald 2e6b4d6998 Bug 1173558 - Give a better last ditch fallback to DevToolsUtils.safeErrorString. r=jlongster 2015-06-10 15:15:00 -04:00
Patrick Brosset b0fc02b334 Bug 1166189 - ESLint configuration files for devtools; r=tromey
Adds a global .eslintrc file for all source files in /browser/devtools.
This file defines a set of global variables that are commonly used in
/browser/devtools code.
The files that import modules with Cu.import will need to define their
own globals as /* globals ... */ comments.
This file also defines the configuration for all the rules we want to
use.

This also adds a set of .eslintrc files, one per test directory in
/browser/devtools. Each of these files extend from one of 2 parent config
files: .eslintrc.xpcshell or .eslintrc.mochitest.
The parent config define the set of globals these types of tests have
access to (test runner functions, assertion functions, etc.).

Finally, this also adds .eslintrc files in /toolkit/devtools for code and
tests, which just extend from their counterparts in /browser/devtools.
2015-05-28 09:30:03 +02:00
Tom Tromey b3cad09d48 Bug 1154809 - rewrite prettifyCSS to use CSSLexer; r=pbrosset 2015-05-19 08:56:01 -07:00
Ryan VanderMeulen 2aa50456a9 Backed out 7 changesets (bug 1154809) for xpcshell failures.
Backed out changeset 056f69eee8db (bug 1154809)
Backed out changeset 13f93d585e42 (bug 1154809)
Backed out changeset 1e967727087e (bug 1154809)
Backed out changeset 1f3809022d39 (bug 1154809)
Backed out changeset 7e730e9cb6b3 (bug 1154809)
Backed out changeset 139959618516 (bug 1154809)
Backed out changeset ea59187953f6 (bug 1154809)
2015-05-17 19:54:49 -04:00
Tom Tromey d50719d7ab Bug 1154809 - Rewrite prettifyCSS to use CSSLexer. r=pbrosset 2015-05-14 05:35:00 -04:00
ziyunfei 649e7033e4 Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Panos Astithas a936ed870b Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Jonathan Griffin c4f9588ed3 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Tom Tromey 0268fe1067 Bug 1140569 - Show async stacks attached to timeline markers. r=vporof 2015-03-11 07:44:00 -04:00
Tom Tromey 02c2da9e40 Bug 1126987 - Fix _lastEventSize initialization in stack.js. r=vporof 2015-03-09 13:00:00 -04:00
abdelrhman 64233c145f Bug 1111276 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao 2014-12-15 22:05:46 +01:00
Alexandre Poirot 10da8e26c1 Bug 1091706 - Ensure spawning only one devtools loader instances. r=jryans 2014-11-17 12:47:35 -08:00
J. Ryan Stinnett 467861b7e9 Bug 1097181 - lazyRequireGetter shouldn't bind to the main loader. r=fitzgen 2014-11-11 13:20:35 -06:00
Andrew Halberstadt 11b824f09b Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Tom Tromey dfdc384511 Bug 1072932 - Hoist "let"s to avoid the TDZ. r=past 2014-09-25 06:54:00 -04:00
Wes Kocher 877afbd303 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo 40c62f33a5 Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Paul Rouget 7b3c0e4229 Backed out changeset a6d02cff43d3 (bug 1037235) for breaking WebIDE (bug 1067331) 2014-09-15 16:23:04 +02:00
Erik Vold 164a27af2b Bug 1037235 - toolkit/loader doesn't check module compatibility r=Mossop 2014-09-09 18:33:55 -07:00
Alexandre Poirot 1d9e0ffb72 Bug 1013997 - Use only one compartment for all devtools modules. r=mossop, r=past 2014-07-07 06:07:00 -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
Eddy Bruel 67412823f3 Bug 1003095 - Convert DevToolsExtensions.jsm into an SDK module;r=past;r=ZER0 2014-05-22 16:20:41 +02:00
Dave Townsend 8ed3b4fbf7 Bug 993029: Create an add-on console actor that will be displayed in the console tab of the add-on debugger. r=msucan, r=Unfocused, r=past 2014-05-01 08:36:01 -07:00
Nick Fitzgerald 4e0a0a89dc Bug 991904 - Create a way to load devtools modules lazily. r=dcamp 2014-04-25 11:23:00 -04:00
Ryan VanderMeulen bc9dc23d8b Backed out changeset 7f3e428b4a5d (bug 991904) for xpcshell failures.
CLOSED TREE
2014-04-25 14:08:12 -04:00
Nick Fitzgerald 367b1e97f4 Bug 991904 - Create a way to load devtools modules lazily. r=dcamp 2014-04-24 13:47:00 -04: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
Masatoshi Kimura 1a5597dba9 Bug 988122 - Followup: fix bogus constification code. r=bz 2014-03-31 23:54:00 +09:00
Masatoshi Kimura 433e684469 Bug 988122 - Expose Promise on non-window non-worker globals. r=bholley sr=bz 2014-03-29 15:55:53 +09:00
Erik Vold f97a9b2461 Bug 964545 Add-on SDK page-mods are now debuggable r=dcamp 2014-01-27 23:21:31 -08:00
J. Ryan Stinnett 26967f4282 Bug 976679 - Move event-emitter to toolkit. r=paul 2014-02-25 22:22:05 -06:00
Brandon Benvie a9906f4a1d Bug 974065 - Add test file missing from previous push. r=me 2014-02-19 14:15:06 -08:00
Brandon Benvie 12969f3f0d Bug 974065 - Add async function helpers to devtools. r=fitzgen, r=robcee 2014-02-19 14:08:36 -08:00
Gregory Szorc dffb8830ba Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build files; r=ted
Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.
2014-02-06 13:00:20 -08:00
Victor Porof df13a53cf1 Bug 964700 - Fix test_safeErrorString.js xpcshell test, r=me 2014-01-28 18:25:25 +02:00
Alexey Novak d0067989e8 Bug 956804 - Use DevToolsUtils.reportException in Parser.jsm; r=fitzgen 2014-01-23 09:55:16 -08:00
J. Ryan Stinnett 4c33be6157 Bug 946813 - Part 3: Use independent loaders, mark them invisible. r=past 2014-01-10 23:37:09 -06:00
Mike Hommey 7f7e4faac1 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
J. Ryan Stinnett ada8eb1118 Bug 929159 - Add output-parser to SrcdirProvider and test mapping. r=jwalker 2013-10-21 16:17:12 -05:00
Brandon Benvie f83c8046a2 Bug 926725 - Create DevToolsUtils.defineLazyPrototypeGetter and use it in VariablesView Scopes. r=fitzgen, r=vp 2013-10-15 09:49:15 -07:00
Nick Fitzgerald ea1d7427d4 Bug 908913 - integrate escodegen with devtools; r=robcee,gps,dcamp 2013-09-01 15:46:16 -07:00
Nick Fitzgerald c8d2d94d9c Bug 906795 - safeErrorString should include a stack; r=vporof 2013-08-20 11:15:11 -07:00