Commit Graph

51 Commits

Author SHA1 Message Date
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Alexandre Poirot
66737ae3b1 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
559fcbd643 Bug 1195349 - Make css-color preserve original text; add classifyColor. r=pbrosset 2015-09-01 07:26:00 -04:00
Alexandre Poirot
c1a7a7d35d Bug 1193313 - Cleanup promises. r=jryans 2015-08-13 10:57:15 -07:00
Alexandre Poirot
b9fc38483f Bug 1188401 - Expose require out of Loader.jsm and use it. r=jryans 2015-08-06 05:38:10 -07:00
Alexandre Poirot
f64f5de77d Bug 1182194 - Use DevToolsUtils module instead of JSM. r=jwalker 2015-07-28 08:03:17 -07:00
Sami Jaktholm
1a069905a5 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.

--HG--
extra : histedit_source : df0406180eb6a9581c08e09b102f9eb523659c52
2015-07-11 13:45:59 +03:00
Geoff Brown
52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Sami Jaktholm
fd3dcf4f0e Bug 1170864 - Add xpcshell-tests for DevToolsUtils.fetch. r=past 2015-06-13 08:50:28 +03:00
Nick Fitzgerald
f4bb63d6c0 Bug 1173558 - Give a better last ditch fallback to DevToolsUtils.safeErrorString. r=jlongster 2015-06-10 15:15:00 -04:00
Patrick Brosset
8c2aaa42cf 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.

--HG--
extra : rebase_source : d7b6f639634b64dc084d0835a5fb36c9720a87e7
2015-05-28 09:30:03 +02:00
Tom Tromey
bfb816b32a Bug 1154809 - rewrite prettifyCSS to use CSSLexer; r=pbrosset 2015-05-19 08:56:01 -07:00
Ryan VanderMeulen
33aa7cc49f 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
4a110448f0 Bug 1154809 - Rewrite prettifyCSS to use CSSLexer. r=pbrosset
--HG--
extra : rebase_source : afa69805be07b9f3918333ea8edcb8a7b2115c4a
extra : histedit_source : cdb808df2d2d01a2817c3675ace9a3a4f85a0c1f
2015-05-14 05:35:00 -04:00
ziyunfei
e1db0f779e 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
e4b9084401 Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Jonathan Griffin
d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Tom Tromey
8d77d6ea8a Bug 1140569 - Show async stacks attached to timeline markers. r=vporof 2015-03-11 07:44:00 -04:00
Tom Tromey
3b98a60ae5 Bug 1126987 - Fix _lastEventSize initialization in stack.js. r=vporof 2015-03-09 13:00:00 -04:00
abdelrhman
3990efb3f1 Bug 1111276 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao
--HG--
extra : rebase_source : d7ef16a16f884458d99dff05efb370694d2ea5e3
2014-12-15 22:05:46 +01:00
Alexandre Poirot
e0a219e05b Bug 1091706 - Ensure spawning only one devtools loader instances. r=jryans 2014-11-17 12:47:35 -08:00
J. Ryan Stinnett
d18c4eff35 Bug 1097181 - lazyRequireGetter shouldn't bind to the main loader. r=fitzgen
--HG--
extra : transplant_source : %C1%9CG%94%95%F0U%A6%EF%AA%C9%B9%BB%1C%D4%FC%D0%CDX%CE
2014-11-11 13:20:35 -06:00
Andrew Halberstadt
d292ee73f1 Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Tom Tromey
f1e8d5a785 Bug 1072932 - Hoist "let"s to avoid the TDZ. r=past 2014-09-25 06:54:00 -04:00
Wes Kocher
6e187f49f8 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo
59ccd2fecb Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Paul Rouget
bfba482515 Backed out changeset a6d02cff43d3 (bug 1037235) for breaking WebIDE (bug 1067331)
--HG--
extra : amend_source : a7bfb1e931122663e7c14a7362a849520388e495
2014-09-15 16:23:04 +02:00
Erik Vold
d3d9b5a320 Bug 1037235 - toolkit/loader doesn't check module compatibility r=Mossop 2014-09-09 18:33:55 -07:00
Alexandre Poirot
f2b703b3b6 Bug 1013997 - Use only one compartment for all devtools modules. r=mossop, r=past 2014-07-07 06:07:00 -04:00
Jim Blandy
7e20285e70 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
f8fd30abd5 Bug 1003095 - Convert DevToolsExtensions.jsm into an SDK module;r=past;r=ZER0 2014-05-22 16:20:41 +02:00
Dave Townsend
7f17ca3889 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
54975d6a6d Bug 991904 - Create a way to load devtools modules lazily. r=dcamp 2014-04-25 11:23:00 -04:00
Ryan VanderMeulen
83e8056756 Backed out changeset 7f3e428b4a5d (bug 991904) for xpcshell failures.
CLOSED TREE
2014-04-25 14:08:12 -04:00
Nick Fitzgerald
f936072cda Bug 991904 - Create a way to load devtools modules lazily. r=dcamp 2014-04-24 13:47:00 -04:00
Paolo Amadini
5824bdf058 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
08797f46df Bug 988122 - Followup: fix bogus constification code. r=bz 2014-03-31 23:54:00 +09:00
Masatoshi Kimura
0102f14c73 Bug 988122 - Expose Promise on non-window non-worker globals. r=bholley sr=bz 2014-03-29 15:55:53 +09:00
Erik Vold
34c7599e4e Bug 964545 Add-on SDK page-mods are now debuggable r=dcamp 2014-01-27 23:21:31 -08:00
J. Ryan Stinnett
8b18eca111 Bug 976679 - Move event-emitter to toolkit. r=paul
--HG--
rename : browser/devtools/shared/event-emitter.js => toolkit/devtools/event-emitter.js
rename : browser/devtools/shared/test/browser_eventemitter_basic.js => toolkit/devtools/tests/mochitest/test_eventemitter_basic.html
2014-02-25 22:22:05 -06:00
Brandon Benvie
0832fc67bd Bug 974065 - Add test file missing from previous push. r=me 2014-02-19 14:15:06 -08:00
Brandon Benvie
46579fa9d1 Bug 974065 - Add async function helpers to devtools. r=fitzgen, r=robcee 2014-02-19 14:08:36 -08:00
Gregory Szorc
afdb724edf 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.

--HG--
extra : rebase_source : 0cfdf2697d10532e5b03cd27fbaadb41f42b837c
extra : amend_source : 0119d4e4881217f105e0e4ba1dfa9c8f7295f3e9
extra : histedit_source : eb49e62c67af2005fdc08d9c9a07f56bee98d558%2C50951e960e450f9b0e48fc7e8ec369d8666a63b0
2014-02-06 13:00:20 -08:00
Victor Porof
39e2c94ff7 Bug 964700 - Fix test_safeErrorString.js xpcshell test, r=me 2014-01-28 18:25:25 +02:00
Alexey Novak
2db2ce3e20 Bug 956804 - Use DevToolsUtils.reportException in Parser.jsm; r=fitzgen 2014-01-23 09:55:16 -08:00
J. Ryan Stinnett
dde6631507 Bug 946813 - Part 3: Use independent loaders, mark them invisible. r=past 2014-01-10 23:37:09 -06:00
Mike Hommey
e80e877ab7 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
J. Ryan Stinnett
adbbbe5d87 Bug 929159 - Add output-parser to SrcdirProvider and test mapping. r=jwalker 2013-10-21 16:17:12 -05:00
Brandon Benvie
3770e14b51 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
e34a5efb0e Bug 908913 - integrate escodegen with devtools; r=robcee,gps,dcamp 2013-09-01 15:46:16 -07:00