Commit Graph
128 Commits
Author SHA1 Message Date
Nicolas Chevobbe d17702b388 Bug 1401972 - Release: Update reps bundle to 0.14.0; r=nchevobbe.
MozReview-Commit-ID: Jm4UDwdqrjE
2017-09-21 18:08:58 +02:00
Nicolas Chevobbe fe40f258e0 Bug 1399460 - Release: Update reps bundle to 0.13.0. r=nchevobbe
All the changes here were already reviewed in Github.

MozReview-Commit-ID: GmQ3BOFIXPh
2017-09-12 10:52:28 +02:00
Nicolas Chevobbe 3b590a4bd7 Bug 1307931 - devtools reps: update bundle to v0.12.1. r=bgrins
This required some changes in the ConsoleTable component. Since
it uses GripMessageBody, we need to pass it props that it might
need.

MozReview-Commit-ID: DNeBsmJqCFI
2017-08-10 19:02:56 +02:00
Nicolas Chevobbe 029d17c74f Bug 1386525 - devtools reps: update bundle to v0.12.0. r=bgrins
A test needed to be fixed since we changed some things
in bucketing (proper ellipsis and bucket label fix).

MozReview-Commit-ID: HhfJcKOGO2H
2017-08-08 14:43:27 +02:00
Nicolas Chevobbe 644adfb2fb Bug 1380709 - reps v0.11.0: update reps bundle from GitHub; r=bgrins
MozReview-Commit-ID: 4s5c1wyABS7
2017-08-01 14:45:32 +02:00
Sebastian Hengst 3253010f70 Backed out changeset f85fbccf2c1f (bug 1380709) for failing devtools' browser_dynamic_tool_enabling.js on Windows 8 x64 debug with e10s. r=backout 2017-08-02 18:06:31 +02:00
Nicolas Chevobbe 331aeef538 Bug 1380709 - reps v0.11.0: update reps bundle from GitHub; r=bgrins
MozReview-Commit-ID: 4s5c1wyABS7
2017-08-01 14:45:32 +02:00
Nicolas Chevobbe 97c62ce736 Bug 1380790 - devtools reps: update bundle to v0.10.0; r=bgrins
This also fixes a few tests that were failing due to changes
in how we now render arrays and objects in tiny mode.

MozReview-Commit-ID: 9JRjDQQ46FA
2017-07-25 17:52:38 +02:00
Nicolas Chevobbe 5a693f6770 Bug 1308566 - Remove reps mochitests. r=bgrins
Remove tests since they were all migrated to jest in Github and will only
lives there now.

MozReview-Commit-ID: 7N8Wuq6sD2I
2017-07-07 13:51:24 +02:00
Nicolas Chevobbe ef36916cc7 Bug 1308566 - Fix Reps README. r=bgrins
Change the URL of the repository to the devtools-core one.

MozReview-Commit-ID: J0WStbVAZ5Z
2017-07-07 13:48:55 +02:00
Nicolas Chevobbe b82fe58931 Bug 1308566 - Update reps bundle to v0.9. r=bgrins,Honza
MozReview-Commit-ID: EzmGxg2gMxO
2017-07-11 16:51:22 +02:00
nchevobbe a616f4fb8e Bug 1362037 - update bundle to v0.8.0. r=Honza
MozReview-Commit-ID: Z4sANLFH3R
2017-05-05 17:19:47 +02:00
nchevobbe b44f8faa3a Bug 1359338 - Update reps bundle to 0.7.0. r=Honza
MozReview-Commit-ID: IomllBwp21b
2017-04-28 14:04:36 +02:00
nchevobbe 8ccd3ab017 Bug 1357341 - Reps 0.6.0: update reps bundle from Github; r=jdescottes
MozReview-Commit-ID: BW0DPLf8dXf
2017-04-20 10:43:32 +02:00
Julian Descottes 4a3182a76c Bug 1351565 - update reps to v0.5.0;r=nchevobbe
MozReview-Commit-ID: 2Q7isM1jF2P
2017-03-29 10:05:14 +02:00
Julian Descottes 57bf65122e Bug 1344156 - reps v0.4.0: update reps bundle from GitHub;r=tromey
MozReview-Commit-ID: 4vQozULRsrP
2017-03-03 10:28:32 +01:00
Masatoshi Kimura 4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00
Julian Descottes 55211de333 Bug 1341635 - reps v0.3.0: update reps bundle from GitHub;r=nchevobbe
MozReview-Commit-ID: B1HPjgbVyJq
2017-02-23 18:47:03 +01:00
Julian Descottes 093d1b4fc8 Bug 1340475 - reps v0.2.1: update reps bundle from GitHub;r=nchevobbe
MozReview-Commit-ID: 1lCdEeDK36K
2017-02-17 18:30:45 +01:00
Julian Descottes fa72da957d Bug 1330779 - reps 0.1.0: add a README file in devtools reps folder;r=nchevobbe
MozReview-Commit-ID: 5zLp6vyaGHR
2017-02-09 19:52:42 +01:00
Julian Descottes 55a0050863 Bug 1330779 - reps 0.1.0: remove reps files from mc;r=nchevobbe
MozReview-Commit-ID: KVt5mQc6Wlx
2017-01-30 11:53:02 +01:00
Julian Descottes 260c676a31 Bug 1330779 - reps 0.1.0: update reps bundle, files and tests from github;r=nchevobbe
MozReview-Commit-ID: EriUKATp7EU
2017-02-09 18:31:06 +01:00
Julian Descottes ff43ea95b9 Bug 1330779 - Update reps tests to use load-reps;r=nchevobbe
MozReview-Commit-ID: DnZMP8vTWMR
2017-02-01 01:57:34 +01:00
Yura Zenevich 58e16138aa Bug 1335050 - Allow customization of object rep's title generation. r=Honza
MozReview-Commit-ID: G3SLHv8Kvyb
2017-02-08 10:49:14 -05:00
Julian Descottes 7bdf7ab63b Bug 1315922 - reps: avoid using props as variable name in react classes;r=nchevobbe
MozReview-Commit-ID: 33QUPfoJRpV
2017-01-10 14:52:14 +01:00
Julian Descottes 842ebf8a63 Bug 1325401 - extract reps chrome mochitests to a dedicated folder;r=jlast
MozReview-Commit-ID: 1fqARH9N4sd
2017-01-17 16:07:48 +01:00
Julian Descottes f79f7d5fef Bug 1325401 - Add a reps bundle, disabled by default;r=jlast
MozReview-Commit-ID: IJL8wevR0wo
2017-01-18 14:38:10 +01:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Taylor Alexander Brown 8731c833c3 Bug 1315925 - Make devtools/client/shared/components pass ESLint's "react/prop-types" rule;r=jdescottes
MozReview-Commit-ID: GBY9wX3eLys
2017-01-05 17:22:36 +01:00
Julian Descottes b4ef60032f Bug 1313119 - wrap all rep render() methods with try/catch;r=nchevobbe
MozReview-Commit-ID: 5nXcv3in4WT
2016-12-30 18:12:38 +01: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
Nicolas Chevobbe 0e0a4bfee5 Bug 1322083 - Fix Reps with safeGetterValues; r=ntim
Sometimes (e.g. for window.applicationCache), Reps was shown with a negative number
before the "more..." label. This was due to displaying the children of safeGeterValues
property but not taking them into account for the total number of properties in the object
when displaying the "more..." label.
We fix this and add a test case to make sure we won't have this bug later

MozReview-Commit-ID: 1qBCvehV0Jc
2016-12-17 20:07:29 +01:00
Nicolas Chevobbe 8f385a3a96 Bug 1320359 - Make EventRep displays like events were displayed in old console; r=Honza
Add a target property and show the event name (and modifiers if any) in the title.
Minor edit in GripRep to allow to pass a title as a prop.
Edit tests accordingly, and add some to test node highlighting.

MozReview-Commit-ID: JmMidejKS6m
2016-11-25 23:52:06 +01:00
Nicolas Chevobbe 577cda8a81 Bug 1320399 - Fix error in Grip Rep; r=nchevobbe
Check that the `preview` property is not null before using it.
The bug was harmless because we catch it and return an
empty array as the properties of the grip, which is the same
when we don't have anything in the preview prop.

MozReview-Commit-ID: COU8XLATw7x
2016-11-26 20:47:09 +01:00
Nicolas Chevobbe cad0ed1f22 Bug 1320161 - Fix objectLink in Attribute Rep; r=Honza
MozReview-Commit-ID: IaHGVZbxHhR
2016-11-24 19:19:28 +01:00
Nicolas Chevobbe 3f9b359e8f Bug 1312178 - Make Reps modes constants; r=Honza
Edit tests and component creation accordingly.

MozReview-Commit-ID: Gsj6QwNTjL0
2016-11-20 19:53:16 +01:00
Nicolas Chevobbe f71d45c89a Bug 1314573 - Modify textNode Reps modes to match elementNodeRep; r=Honza
On elementNodeRep, we have different outputs for tiny and short modes, and
short and long modes are the same.
Since the current long mode of textNodeRep aren't used anywhere, we can do the
same, i.e. have a really small representation for tiny mode, and then the same
rendering for short and long modes.
Modify tests to adapt them to the new rendering.

MozReview-Commit-ID: BRA7iADkn1C
2016-11-17 18:04:55 +01:00
Nicolas Chevobbe 6baf424327 Bug 1314573 - Make Reps "long" mode displays first 10 items for object & array-like grips; r=Honza
Adapt tests that relied on an other length for long mode.

MozReview-Commit-ID: J00UmOa2AwJ
2016-11-17 08:02:28 +01:00
Nicolas Chevobbe c0445d7013 Bug 1307941 - Add DOM nodes highlighter in new console frontend; r=bgrins
Add in serviceContainer highlight and unhighlight utils function so they can
be accessible in components.
Fix EvaluationResult component to pass the serviceContainer to the MessageBody.
Modify ElementNodeRep and TextNodeRep to allow passing them function properties
`onDOMNodeMouseOver` and `onDOMNodeMouseOut` that will be called respectively
on mouseOver and mouseOut.
Add a mochitest in the webconsole to make sure we indeed highlight and unhighlight
node as expected, and add tests in Reps to make sure the passed functions get called
as expected.

MozReview-Commit-ID: 8o8WM7vBfMM
2016-11-04 23:53:35 +01:00
Nicolas Chevobbe d7115d8df4 Bug 1316225 - Add a Rep for Error objects; r=Honza
Handle the different kind of error objects.
Allow to pass a className to the objectLink component.
Add test to make sure we handle those objects as expected.

MozReview-Commit-ID: IC7ruV9odw1
2016-11-11 01:20:55 +01:00
Nicolas Chevobbe ed7b4968a7 Bug 1316266 - Handle grip safeGetterValues property in Grip Reps; r=Honza
Some object has properties in the safeGetterValues property, like ArrayBuffer
for example.
We now evaluate this property too when building the Rep. A function was created
to retrieve the property value since in safeGetterValues, the value is a wrapper
object with a getterValue property holding the actual value.
We add some tests to make sure we handle those grips as expected.

MozReview-Commit-ID: JqnTXnnAZpd
2016-11-09 13:13:45 +01:00
Nicolas Chevobbe f3047054a0 Bug 1302982 - Add Rep for LongString; r=Honza
Display a longString with what is available on the grip.
Straight from the server, a longString grip has a "initial"
property, which contains the first 10000 chars of the string.
The grip can also contains a "fullText" property that should
be set when the user want to display the full text of the string.
For example, in the DOM Panel, it would be when the user click on
the expand arrow.
The fullText needs to be computed with the result of the
LongStringClient.substring function, but it's not the responsability
of the Reps to do such thing.

In rep-utils, we extract the logic that replace non-printable
characters in its own function and export it, so we can use it outside
the cropString function.

Add some test to make sure LongString are displayed as expected in the
several modes.

MozReview-Commit-ID: 3P9fPBixm2v
2016-11-03 18:08:16 +01:00
Nicolas Chevobbe 5f00a911b7 Bug 1311168 - Handle document fragment in grip array rep; r=Honza
MozReview-Commit-ID: Cq2YyKlMjjQ
2016-10-23 19:31:41 +02:00
Nicolas Chevobbe 3bc62a0860 Bug 1307938 - Add a Rep for DOM nodes. r=Honza,pbro;
Add tests based on existing browser_webconsole_output_dom_elements_*.js tests.

MozReview-Commit-ID: Wmzg0knuuh
2016-10-17 19:29:32 +02:00
Nicolas Chevobbe aa88c7eb94 Bug 1313765 - Make Rep handles Proxy. r=Honza;
In the GripRep, we were using the root property `ownPropertyLength` to
retrieve additionnal uninterresting props on the Grip. For Proxy
objects, we don't have this property, but a `preview.ownPropertiesLength`.
This adds a test case similar to the one for Proxy in browser_webconsole_output_05.js.

MozReview-Commit-ID: 652cfTlW7Sg
2016-10-31 20:02:02 +01:00
Ryan VanderMeulen 112d5746d5 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Jan Odvarko 061357d124 Bug 1310801 - Remove non-printable characters. r=nchevobbe 2016-10-27 13:31:54 +02:00
Lin Clark 4680dc507d Bug 1313050 - Handle invalid dates in reps. r=nchevobbe 2016-10-26 09:42:00 -04:00