Commit Graph
41 Commits
Author SHA1 Message Date
Nicolas Chevobbe ab5c268940 Bug 1403065 - Fix enumObjectProperties for exotic objects; r=bgrins,Oriol.
In the `enumProperties` function , we can pass some options to only retrieve
indexed or non indexed properties. The problem when doing this is that we were relying
on the value of a `length` property to get what's before (indexed) or after (non-indexed).
But if you have a plain object with a length property like `{length: 789}`,
and try to retrieve non-indexed properties, the function would return an empty ownProperties
object.

In this patch we make extra checks in the function to make sure we do return the expected
data to the client. A unit-test is added to ensure we don't regress.

MozReview-Commit-ID: FMCh9qnzeTT
2017-09-26 12:02:20 +02:00
Oriol Brufau 5fd6c1effb Bug 1391274 - Add a Symbol object previewer to the console. r=nchevobbe
MozReview-Commit-ID: EDMep3IePZ3
2017-09-20 12:32:03 +02:00
Tom Tromey ade62668e4 Bug 970469 - ignore breakpoints on the current line when stepping out; r=ystartsev+600802
MozReview-Commit-ID: KTzygRac2D7
2017-08-31 14:21:57 -06:00
Julian Descottes 09c0897077 Bug 1391228 - remove unused devtools profiler actor, specs and front;r=gregtatum,mstange
MozReview-Commit-ID: 82R4C3NFolu
2017-08-18 17:27:56 +02:00
Nicolas Chevobbe 15554f90b2 Bug 1392614 - Add an onEnumSymbols function on the object actor. r=ochameau
This will enable lazy loading symbols for a grip if needed.
This patch introduce a new SymbolIteratorActor, which is similar
to PropertyIteratorActor but with a data structure that better
fits symbols, and how we already handle them, i.e. an `ownSymbols`
array property (and not an `ownProperties` object like PropertyIteratorActor).

We take this as an opportunity to add a test for enumSymbols, but also
for enumProperties that did not have server unit tests (it is only tested
in the frontend with the variable view, which might be deprecated at some
point).

MozReview-Commit-ID: IEIKA8zwH90
2017-08-22 12:07:48 +02:00
Oriol df8d7fffed Bug 1380506 - Prevent the console from searching safe getters in proxy objects. r=bgrins 2017-08-15 08:29:00 -04:00
Sebastian Hengst 32ea619857 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Julian Descottes 8c0c562ada Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t
2017-07-11 12:30:22 +02:00
Nicolas Chevobbe ce80692f37 Bug 881480 - Add ownSymbols to onPrototypeAndProperties; r=ochameau
MozReview-Commit-ID: 7Mzg1UPOYcY
2017-07-21 17:17:44 +01:00
Yury Delendik 5605c95363 Bug 1364535 - Modifies Debug Protocol to access WebAssembly binary source. r=jlast
MozReview-Commit-ID: K4lR5qz4DWG
2017-05-19 12:19:54 -05:00
Ryan VanderMeulen 8c01333062 Merge inbound to m-c. a=merge 2017-05-26 15:43:59 -04:00
Jason Laster fe75e33ac5 Bug 1367052 - Debugger Server prematurely removes out of scope variables. r=fitzgen 2017-05-25 12:33:00 -04:00
Mike Park 97248148b0 Bug 1282716 - Add static highlighter for polygon and circle shapes. r=pbro
MozReview-Commit-ID: 37v4L7qKKWa
2017-05-15 13:56:04 -04:00
Alexandre Poirot e1aaaf6e78 Bug 1363533 - Move nsIJSInspector from devtools/server/ to devtools/platform/. r=gps,jryans
MozReview-Commit-ID: 3ry7pRiqNWv
2017-05-15 18:53:19 +02:00
Markus Stange 7d509b0623 Bug 1329111 - Update devtools users of nsIProfiler.getSharedLibraryInformation. r=gregtatum
This actor message is not used by the devtools themselves, it's only exposed so that
the add-on can use it. See bug 1131397.

MozReview-Commit-ID: F1dm0U4rkEd
2017-03-14 19:20:21 -04:00
Sebastian Hengst 3315b242b8 Backed out changeset c823541813c2 (bug 1329111) 2017-03-16 19:59:29 +01:00
Markus Stange 72a9a387b6 Bug 1329111 - Update devtools users of nsIProfiler.getSharedLibraryInformation. r=gregtatum
This actor message is not used by the devtools themselves, it's only exposed so that
the add-on can use it. See bug 1131397.

MozReview-Commit-ID: F1dm0U4rkEd
2017-03-14 18:54:51 -04:00
Yury Delendik bd203fef56 Bug 1333219 - Allow setBreakpoint on server fail when script is absent. r=jlast
MozReview-Commit-ID: 4CDeTToUPfi
2017-01-30 13:53:42 -06:00
Greg Mierzwinski a9323edf9f Bug 1301197 - Add xpcshell code coverage to linux64-jsdcov and the 'coverage' mozinfo flag. r=jmaher
This patch makes it possible to collect code coverage for xpcshell tests using the linux64-jsdcov build. It also enables the use of a 'coverage' flag to disable tests when they are instrumented with the js debugger for code coverage. Lastly, it uses the 'coverage' flag to disable certain tests.

MozReview-Commit-ID: 97VFkJmlwQn
2016-11-08 15:57:21 -05:00
Yury Delendik 189dc8847c Bug 1333840 - Protect from frame.this access for wasm debugger frame. r=ochameau
MozReview-Commit-ID: eEhoHiXQTr
2017-01-25 12:21:37 -06:00
Mark Banner 55868dde7c Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00
Sebastian Hengst 2fecbac0d0 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: devtools. r=RyanVM
MozReview-Commit-ID: DZit0XSS1yk
2016-11-05 11:29:14 +01:00
James Long a4003fd1d1 Bug 1303866 - don't track sourcemapped sources if sourcemaps are disabled r=fitzgen,ejpbruel 2016-09-21 15:54:17 -04:00
Alexandre Poirot fb9d0991ed Bug 1298113 - Remove devtools xpcshell test asserting for memory consumption. r=jryans
MozReview-Commit-ID: DSfqDRQYSE4
2016-09-07 13:46:57 -07:00
Luca Greco e9239cd320 Bug 1268773 - Test addon wrapper updated in cached addon actor on reload and upgrade. r=ochameau
MozReview-Commit-ID: Fsdptohp22c
2016-07-07 14:55:31 +02:00
James Long 14cb1813db Bug 1238173 - remove ScriptStore in use findScripts in debugger r=fitzgen 2016-07-20 14:57:13 -04:00
Kumar McMillan ccb419f4dd Bug 1277054 - Handle exited add-on actors after reload. r=ochameau
MozReview-Commit-ID: 6WFI51GJ3ea
2016-05-31 15:40:19 -05:00
Kumar McMillan 548f98817f Bug 1273183 - Install a temporary add-on via remote debugging. r=jryans
MozReview-Commit-ID: FoEZxDjldIA
2016-05-20 11:36:04 -05:00
Tom Tromey d49b2914aa Bug 1013219 - set line number of return instruction; r=efaust, r=fitzgen, r=ejpbruel 2016-03-28 12:20:00 +02:00
Tom Tromey 4dffd1885e Bug 1013219 - set the line number of the terminating retrval; r=jimb, r=ejpbruel, r=fitzgen 2016-03-28 12:20:00 +02:00
James Long bda9f04a7a Bug 1177329 - handle unsourcemapped frames in the debugger and fix top-level breakpoint edge case r=ejpbruel 2016-03-18 18:35:03 -04:00
Kris Maglione 9aa0e7d296 Bug 1222087: Part 2 - Ignore NS_ERROR_NO_INTERFACE exceptions when pausing on exceptions. r=fitzgen
MozReview-Commit-ID: Ao5Xpth3Txh
2016-02-22 14:52:27 -08:00
Patrick Brosset 6cf8510222 Bug 1245849 - Remove mochitest browser_animation_name.js and add a xpcshell test instead; r=ochameau 2016-02-08 16:14:11 +01:00
Wes Kocher c1418e8059 Backed out 2 changesets (bug 1013219) for apparently making test_ocsp_stapling_expired.js frequently time out
Backed out changeset a97c7103effe (bug 1013219)
Backed out changeset a877772255f6 (bug 1013219)
2016-01-26 10:51:24 -08:00
Tom Tromey 3fa5b270bd Bug 1013219 - set line number of return instruction; r=efaust,fitzgen,ejpbruel 2016-01-25 12:17:01 -07:00
Tom Tromey e51f6c9224 Bug 1013219 - set the line number of the terminating retrval; r=jimb,ejpbruel,fitzgen 2016-01-25 12:17:01 -07:00
James Long 7b57dd659e Bug 1230345 - kill breakpoint sliding for most scenarios, only do it when we know we have scripts r=fitzgen 2016-01-07 11:53:56 -05:00
Nick Fitzgerald fbfd9b35a0 Bug 1224077 - Scope the boundaries of full runtime heap snapshots taken from the MemoryActor properly; r=jsantell 2015-11-13 11:46:07 -08:00
Alexandre Poirot 883ad6c255 Bug 1216555 - Makes client.close() failsafe by handling correctly closing connections. r=jryans 2015-10-22 08:06:16 -07:00
J. Ryan Stinnett 54fc9e8b77 Bug 1203159 - Clean up various tests after DevTools resource move. r=me 2015-10-21 14:18:29 -05:00
J. Ryan Stinnett a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00