Commit Graph

48 Commits

Author SHA1 Message Date
Sami Jaktholm
89de85fde8 Bug 1170864 - Refactor DevToolsUtils.fetch to use NetUtil more extensively and make it fall back to OS.File if a local file cannot be read. r=past
The method was using NetUtil or IOService based on the scheme of the given
URL. Due to changes in NetUtil since the code was originally written these two
code paths are doing the same thing now. These changes unify the two cases into
a single one which
* creates a channel for the given URL and works around some problems in
  xpcshell-tests
* sets loading options on the channel and
* leaves the fetching, stream reading and charset conversion to NetUtil.

It also adds code to work around bug 982654 which causes the stream to
throw if the file is empty. If a file cannot be read by the file:// handler, it
will try to use OS.File.read which handles empty files properly. This is only
used as a fallback as OS.File doesn't provide the content type for the file
required by the method.
2015-06-18 21:17:33 +03:00
Eddy Bruël
2ecb55970f Bug 1168853 - Implement (Worker)SourceActor.source;r=jlong 2015-06-17 17:22:18 +02: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
Tom Tromey
64eb38d330 Bug 1168088 - Remove SpiderMonkey-specific syntax from toolkit/devtools. r=pbrosset 2015-05-28 11:54:00 -04:00
Eddy Bruël
c542f2d3bc Bug 1164564 - Clean up the worker loader;r=jlong 2015-05-26 11:00:49 +02:00
Ryan VanderMeulen
d29552d114 Merge m-c to inbound. a=merge
CLOSED TREE

--HG--
rename : browser/devtools/performance/test/browser_perf-aaa-run-first-leaktest.js => browser/devtools/performance/test/browser_aaa-run-first-leaktest.js
extra : rebase_source : bf83892460e8f9a98a8e08220593f9815cfecffb
2015-05-22 14:18:25 -04:00
Panos Astithas
54b8b55aa4 Bug 1163024 - Part 1: Stylesheet actors should use the common DevToolsUtils.fetch(). r=bgrins 2015-05-22 09:09:43 +03:00
Christoph Kerschbaumer
3a846e95d6 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update asyncFetch2 (r=sicking,paolo) 2015-05-21 19:51:40 -07:00
Christoph Kerschbaumer
c4009158f9 Bug 1138650 - Update remaining callsites to use newChannel2 in toolkit/devtools (r=jryans) 2015-03-09 20:05:49 -07:00
J. Ryan Stinnett
925318d2b4 Bug 1126350 - Settle all toolbox destruction before final cleanup. r=pbrosset 2015-02-10 12:37:21 -06:00
Christoph Kerschbaumer
86f44c7f9e Bug 1124951: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/devtools (r=jryans) 2015-01-26 19:54:52 -08:00
Alexandre Poirot
79e8a36cc5 Bug 1098391 - Best effort to load debugger server dependencies lazily. r=jryans 2014-12-22 10:48:00 -05:00
Nick Fitzgerald
6a965e3c8c Bug 1106695 - Part 1: Add toolkit/devtools/server/actors/utils/ScriptStore.js. r=jlongster 2014-12-19 14:40:55 -08:00
James Long
76f45fdfdb 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
Jan Odvarko
37b8fd9b2f Bug 977443 - Implement an actor that defines new actors. r=ochameau 2014-10-03 12:49:00 +01:00
James Long
82f9a31e52 Bug 1094965 - Move 'fetch' from the script actor to DevToolsUtils. r=fitzgen 2014-11-06 10:31:00 -05: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
Eddy Bruel
08fc0aebce Bug 1003095 - Clean up how we provide several APIs;r=past 2014-06-17 21:51:43 +02:00
Eddy Bruel
925f0d8289 Bug 1003905 - Refactor DevToolsUtils.js to be worker friendly; r=past 2014-06-10 20:35:51 +02:00
Eddy Bruel
e8808b8b53 Bug 1003095 - Copy the lazy getter functions from XPCOMUtils.jsm to DevToolsUtils.js;r=past 2014-05-21 15:08:24 +02:00
J. Ryan Stinnett
9d35a2f5ed Bug 797639 - Part 1: Bulk data support in the transport layer. r=jimb
--HG--
rename : toolkit/devtools/moz.build => toolkit/devtools/transport/moz.build
rename : toolkit/devtools/moz.build => toolkit/devtools/transport/tests/moz.build
rename : toolkit/devtools/server/tests/unit/test_dbgsocket.js => toolkit/devtools/transport/tests/unit/test_dbgsocket.js
rename : toolkit/devtools/server/tests/unit/test_dbgsocket_connection_drop.js => toolkit/devtools/transport/tests/unit/test_dbgsocket_connection_drop.js
rename : toolkit/devtools/server/transport.js => toolkit/devtools/transport/transport.js
2014-05-14 14:30:02 -05: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
Eddy Bruel
f7288f5b86 Bug 859372 - Make Timer a built-in module; r=past 2014-04-24 13:15:58 +02:00
Bobby Holley
88cc67dc3b Bug 998083 - Introduce Cu.getObjectPrincipal and kill nsIScriptSecurityManager::GetObjectPrincipal. r=gabor 2014-04-19 10:39:59 -07:00
Eddy Bruel
655b943dd2 Bug 859372 - Refactor DevToolsUtils.js;r=past 2014-04-17 20:47:28 +02:00
Eddy Bruel
d6d29dd028 Bug 859372 - Refactor DevToolsUtils.js;r=past 2014-04-10 20:44:54 +02:00
Victor Porof
b566dac1b0 Bug 917226 - Build a canvas inspection tool, r=rcampbell, jryans 2014-03-29 13:01:37 -04:00
Ed Morley
88eeed4244 Backed out changeset 894e40121370 (bug 917226) for browser-chrome failures; DONTBUILD since fixing commit message
CLOSED TREE
2014-03-27 19:09:29 +00:00
Ed Morley
67a3d8e2c9 Backed out changeset 7b9fab28c591 (bug 917226) for incorrect commit message generated by qbackout; DONTBUILD 2014-03-27 19:07:31 +00:00
Victor Porof
8b52569db7 Bug 917226 - Build a canvas inspection tool, r=rcampbell
--HG--
extra : rebase_source : 466745d61633e1e56f7fd1f2e680952c52cdf0a4
2014-03-27 18:57:16 +00:00
Victor Porof
73b28f4ab2 Backed out changeset 882b91ce5a9f, as a relanding of Bug 917226, r=me 2014-03-27 12:24:00 -04:00
Ed Morley
216776abce Backed out changeset 894e40121370 (bug 917226) for mochitest-chrome failures 2014-03-27 16:11:59 +00:00
Victor Porof
4fd4807937 Bug 917226 - Build a canvas inspection tool, r=rcampbell 2014-03-27 10:21:37 -04:00
Panos Astithas
bbf844f8bd Bug 986481 - Expose Promise.jsm promises as a devtools loader global. r=dcamp 2014-03-14 11:33:09 +02:00
Eddy Bruel
477b2d2f33 Bug 859372 - Refactor DevToolsUtils.js;r=past 2014-03-04 15:38:05 +01:00
Mihai Sucan
077abafc2f Bug 952190 - Pretty output for native objects from chrome windows; r=past 2014-02-19 14:33:56 +02:00
Victor Porof
552c900cba Bug 964700 - Make the errors logged by Parser.jsm also contain the problematic source url, r=past 2014-01-28 12:31:51 +02:00
Carsten "Tomcat" Book
86d650be8c Backed out changeset a76a4f921987 (bug 964700) for XPC Bustage on a CLOSED TREE 2014-01-28 14:03:38 +01:00
Victor Porof
beb6aa8b37 Bug 964700 - Make the errors logged by Parser.jsm also contain the problematic source url, r=past 2014-01-28 13:24:45 +02:00
Alexey Novak
2db2ce3e20 Bug 956804 - Use DevToolsUtils.reportException in Parser.jsm; r=fitzgen 2014-01-23 09:55:16 -08:00
Mihai Sucan
e8dea1b10a Bug 843004 - Part 2: ObjectActor grip changes to allow pretty output; r=benvie,past 2013-12-19 15:04:59 +02:00
Nick Fitzgerald
d1c69daf69 Bug 929349 - Integrate a tracing debugger into our existing debugger; r=vporof,past 2013-12-18 14:17:27 -08:00
Mihai Sucan
5c9a9143a9 Bug 943496 - Autocomplete should execute native getters; r=past 2013-12-03 15:32:41 +02: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
afd341c3a7 Bug 918802 - Move the debugger's pretty printing into a worker; r=past 2013-10-01 14:25:19 -07:00
Nick Fitzgerald
c31973a6ca Bug 906795 - safeErrorString should include a stack; r=vporof 2013-08-20 11:15:11 -07:00
Jonathan Griffin
7e83d0b580 Bug 797529 - Make DevToolsUtils.js compatible with B2G compartment sharing, r=past 2013-06-06 20:00:11 -07:00
Jim Blandy
59f3d0d730 Bug 878319: Move makeInfallible into its own JSM. r=dcamp 2013-06-05 09:30:54 -07:00