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 15477daeff Bug 1394559 - Better handling of inaccessible objects in the console. r=jimb 2017-09-22 11:54:00 -04: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
Jim Blandy 338959a779 Bug 1394992 - Remove workaround for bug 1163520. r=bgrins 2017-08-29 16:41:31 -07: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 Brufau 35554dd61c Bug 1389787 - Let the console unwrap proxy objects to avoid running traps. r=jimb 2017-08-23 15:50:00 -04: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
Brian Grinstead 8548dee1e0 Bug 1382833 - Don't throw when dealing with CPOWs in the Object Actor;r=jimb
MozReview-Commit-ID: CaIS2IpaQme
2017-07-26 11:22:56 -07:00
Nicolas Chevobbe ee4a4c043c Bug 881480 - Add ownSymbols to object preview; r=ochameau
This adds an `ownSymbols` and an `ownSymbolsLength` properties to the
grip `preview` property so we can retrieve them in the frontend.
This also refactors the newly introduced test for symbols and add a
function which test the content of the preview property in the grip.
The console test packet stubs files were updated to take this into account.

MozReview-Commit-ID: 7rPxFcS5uXE
2017-07-24 15:25:46 +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
Andrea Marchesini b813058b9d Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau 2017-05-11 07:26:08 +02:00
Iris Hsiao 68dd07eb3d Backed out changeset c56bd0d1e7c9 (bug 1363429) for build bustage, using-declaration causes a multiple declaration of 'nsIDocument::GetLocation' 2017-05-11 13:55:40 +08:00
Andrea Marchesini c913bd427b Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau 2017-05-11 07:26:08 +02:00
Fabien Casters 8ca3b6f116 Bug 1331802 - Fix remaining ESLint issues in devtools/server/actors/ r=tromey
MozReview-Commit-ID: 3dqvmCywg3s
2017-05-03 23:26:19 +02:00
Alexandre Poirot bbcad33b7a Bug 1348761 - Fix object inspection performances against objects with large Typed Arrays. r=bgrins
MozReview-Commit-ID: 8QGo2b3pYoL
2017-04-20 19:32:13 +02:00
nchevobbe f7d5e045ac Bug 1347490 - Return isConnected in node grip to indicate if a node is in the DOM tree. r=ochameau
node.isConnected (see https://dom.spec.whatwg.org/#dom-node-isconnected) returns true if the node is
in the DOM tree (including in a shadowDOM tree), which can be used in the frontend to display additional
tools and information.

MozReview-Commit-ID: LjUbkc7VPcB
2017-04-04 12:08:54 +02:00
Sebastian Hengst 098c830dc0 Backed out changeset 6b0e836a33a9 (bug 1316265) for leaks in Linux x64 devtools tests. r=backout 2016-12-20 19:35:54 +01:00
Tim Nguyen a5667774eb Bug 1316265 - Reps: display when a function is a generator or an async function. r=nchevobbe
MozReview-Commit-ID: C79EAU4vN1u
2016-12-20 15:34:50 +01:00
Julian Descottes b5c83936fd Bug 1319049 - fix RegExp previewer for worker debugging;r=ochameau
MozReview-Commit-ID: D8hRGV0MWoZ
2016-12-19 10:58:08 +01:00
Julian Descottes 263dbe54ff Bug 1319049 - fix Date previewer for worker debugging;r=ochameau
MozReview-Commit-ID: Fy1Rp4dNv09
2016-11-24 16:12:16 +01:00
Tom Schuster 353ac4d497 Bug 1192038 - Handle RegExp correctly in devtools. r=fitzgen 2016-11-26 19:02:30 +01:00
J. Ryan Stinnett ca28966f00 Bug 1315391 - Rename all disconnect methods to destroy in actors. r=ochameau
Ever since protocol.js was added as a way to create DevTools actors, we've had
lots of confusion about the correct way to implement actor destruction.  If your
actor's _parent_ was the legacy kind, you had to use `disconnect`.  If it was
protocol.js, you had to use `destroy`.

There is no reason for this madness, which makes reasoning about destruction
quite hard.  Here we rename `disconnect` to `destroy` so there is only one name
for every destruction path.

MozReview-Commit-ID: C1Yw9NfUUR2
2016-11-11 18:24:58 -06:00
Oriol c470593a6c Bug 1301999 - Stop hiding array indices of generic objects in console. r=fitzgen 2016-09-11 17:57:00 -04:00
Oriol 2f2c0566d7 Bug 1301794 - Allow sparse pseudo-arrays in console r=fitzgen 2016-09-12 13:03:50 -07:00
Oriol 211c45514c Bug 1300336 - Allow pseudo-arrays to have a length property. r=fitzgen 2016-09-03 12:46:00 -04:00
d860674999 Bug 1278562 - Split promiseState into promiseState/Value/Reason. r=jimb 2016-08-30 20:25:44 +02:00
Sebastian Hengst 287d4b9e2a Backed out changeset 115f3bbe634f (bug 1278562) for asserting in bug1091757.js of spidermonkey root analysis. r=backout 2016-08-29 19:44:34 +02:00
1610ff7f5a Bug 1278562 - Split promiseState into promiseState/Value/Reason. r=jimb 2016-08-29 14:00:32 +02:00
Oriol 9397545915 Bug 1295729 - Ensure that properties are array indices when the console checks if an object is a pseudo-array. r=fitzgen 2016-08-16 14:59:00 -04:00
Oriol cd445ceebc Bug 1274657 - When inspecting a proxy, show the [[ProxyHandler]] and [[ProxyTarget]] instead of executing traps. r=jlong 2016-07-23 17:39:00 +02:00
Alexandre Poirot 54c5d8e3da Bug 1270179 - Improve performances when inspecting big typed arrays in the console. r=jsnajdr,ejpbruel 2016-05-26 09:12:17 -07:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Jarda Snajdr 8faf50394c Bug 1172920: DevTools: Map/Set entries should be visible in the Variables view r=vporof,tromey a=kwierso
MozReview-Commit-ID: HzwnqO1uQ4o
2016-03-31 16:12:38 -07:00
Till Schneidereit a73c66740b Bug 911216 - Part 6: Shim new promise-related Debugger.Object accessors using PromiseDebugging. r=shu 2016-03-22 15:54:44 +01:00
Brian Grinstead 62e55b95ff Bug 1237428 - Don't cap number of attributes on DOM nodes in console;r=jryans 2016-01-07 14:30:23 -08:00
Tom Tromey e5375b5665 Bug 1035545 - show wrapped primitives specially in console and variable view; r=vporof,fitzgen 2015-12-03 13:09:48 -07:00
Tom Tromey f80a26c683 Bug 1165807 - display WeakSet and WeakMap contents in console; r=bz,fitzgen 2015-11-16 06:50:00 -08:00
Alexandre Poirot d5e749cdc0 Bug 1113865 - Replace all calls to dbg_assert with DevToolsUtils.assert. r=fitzgen 2015-11-16 07:22:49 -08:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -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