Commit Graph
145 Commits
Author SHA1 Message Date
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
Ricky Chien ccd39b8726 Bug 1333364 - Introduce id props to tab r=Honza
MozReview-Commit-ID: 1nbK6mlRSIr
2017-01-25 00:25:11 +08: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 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
Nicolas Chevobbe 55a490a50b Bug 1318796 - Open the appropriate tool when clicking on a location in the new console; r=jdescottes
We were always opening the debugger when clicking on the location link,
which could be wrong since we can have CSS warnings, or logs coming from Scratchpad.
So we add the function to open in StyleEditor and Scratchpad, and copy some mochitests
that where testing the interaction with those links.


MozReview-Commit-ID: 73mQNfy199m
2016-12-01 08:29:43 +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
Sebastian Hengst 3115bb8104 Backed out changeset 70b75b80fb80 (bug 1316265) 2016-12-20 19:35:18 +01:00
Tim Nguyen 596d1a8840 Bug 1316265 - Remove unnecessary Task.async() and yield from test. r=nchevobbe
MozReview-Commit-ID: 7fi7Pj7eJjd
2016-12-20 15:37:30 +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
Jarda Snajdr 4a78d971a9 Bug 1312236 - Fix Tree component tests after upgrade to React 15 r=fitzgen
MozReview-Commit-ID: 1hHF3JLg4W
2016-11-28 14:38:00 +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
Tim Nguyen f2c4416df2 Bug 1316723 - Fix more eslint errors in devtools/client/shared/. r=tromey
MozReview-Commit-ID: IzXyqkQECKb
2016-11-11 09:09:50 +00:00
Carsten "Tomcat" Book cabaa5540f Merge mozilla-central to mozilla-inbound 2016-11-11 16:43:07 +01:00
Tooru Fujisawa 6b08c64b79 Bug 1315242 - Part 6: Update test_frame_01.html to follow new behavior of location. r=bgrins 2016-11-11 06:34:14 +09: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 5a5088156b Bug 1314590 - Add Mozilla license header in devtools/client/shared/components/test/mochitest/ files. r=Honza;
MozReview-Commit-ID: FayTCRXuAWN
2016-11-03 22:41:18 +01: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
Nicolas Chevobbe e13905c730 Bug 1311426 - Handle Grip with wrapped value in Reps. r=Honza;
Handle object created from a constructor function, like `new Boolean(true)`,
`new Number(42)` or `new String("foo")`.
It displays the wrapped value using Rep so the primitives are displayed like
expected.

MozReview-Commit-ID: JrJVeV0C0wO
2016-10-24 07:32:32 +02:00
Nicolas Chevobbe 6e5189afd0 Bug 1310608 - Add a Rep for Promises. r=Honza;
MozReview-Commit-ID: BkeHonHQ28M
2016-10-24 19:24:10 +02:00
J. Ryan Stinnett cd2e2f271f Bug 1311178 - Expose some DevTools CSS as resource:// only. r=ntim
For CSS files which were used via both chrome:// and resource://, I converted
all usages to resource:// and removed the chrome:// copy to reduce file
duplication.

I believe most DevTools CSS could be using resource:// throughout, but that's
left as follow up work for now.

MozReview-Commit-ID: G7oxZqjodwv
2016-10-19 16:19:29 -05:00
Nicolas Chevobbe e24b7b822e Bug 1311266 - Preserve line breaks for comment node rep in short mode. r=Honza;
Use `cropString` instead of `cropMultipleLines` to keep line breaks.
Edit tests accordingly.

MozReview-Commit-ID: 1fBVqtH0lb
2016-10-19 13:57:47 +02:00
Nicolas Chevobbe 067ec7855c Bug 1311266 - Add a rep for comment node. r=Honza;
MozReview-Commit-ID: B5ofNavxQIX
2016-10-19 07:51:37 +02:00
Jan Odvarko 176e5a0176 Bug 1281051 - Fix text-node rep. r=linclark 2016-09-28 17:43:34 +02:00
Nicolas Chevobbe e48d859fcb Bug 1309749 - Add reps for NaN and Infinity. r=Honza;
Add reps and test for it.
Edit Number rep's `supportsObject` function because there was
an error for `-0` object, due to some change in the function which
detect which rep to use.

MozReview-Commit-ID: 8Dz40E7LBb0
2016-10-15 10:58:29 +02:00
Phil Ringnalda 5359f7fbb2 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FA9OZyjP59N
2016-10-18 19:36:18 -07:00
Mark Banner 233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Jan Odvarko 00b7cac513 Bug 1308742 - Preserve line breaks in String rep; r=linclark 2016-10-17 15:58:49 +02:00
Andrea Marchesini ae47ca23c2 Bug 1308956 - Get rid of MessagePortList - part 1 - MessagePortList removed from events, r=smaug 2016-10-13 15:19:24 +02: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 2e3b2c65d2 Bug 1305981 - Fix grip truncation on object with non-enumerable properties. r=Honza;
The problem is that we are checking the computed props against `object.ownPropertyLength` to see if there's more to show.
But, if an object has a non-enumerable property (like `prototype`), `ownPropertyLength` counts it,
but it does not appear `object.preview`.
To fix that, we do a simple check : if there is more item in the preview object than `max`, then we show the "more..." label.
Adds a test to ensure the problem is fixed.

In the same time, I did a little refactor on how we deal with the last object delimiter when we get the props, so we don't have
to go back to the last object and remove the comma.

MozReview-Commit-ID: 1drpuUOsLNI
2016-10-06 08:07:15 +02:00
Jan Odvarko 506cbafcc3 Bug 1276206 - Avoid caption clobber if more prop exists. r=linclark 2016-09-27 16:30:01 +02:00
Nicolas Chevobbe 06c79823e1 Bug 1304352 - Add a Rep for Map and WeakMap. r=Honza;
Add a GripMap rep which handles both map and weakmap objects.
Make it possible to pass an object as the `name` property to PropRep,
in order to handle WeakMap keys.
Add a mochitest to make sure everything is displayed correctly.

MozReview-Commit-ID: ABBy2FT4rmE
2016-09-27 19:41:03 +02:00
Brian Grinstead ef7e7f9d9a Bug 1304804 - Don't set a default cropLimit for reps;r=Honza
MozReview-Commit-ID: HVHqkomVrLW
2016-09-26 11:49:54 -07:00
Alexandre Poirot e689948770 Bug 1303288 - Pass the window object instead of current scope to prevent wrapper issues when using the devtools reload addon. r=jlongster
If we happen to pass the current scope (`this`), the browser-loader codebase fails
when passing it as sandboxPrototype. It only works when passing an xray wrapper.
The document scope happen to not be an xray when using the addon, whereas `window`
always is no matter if we are using the addon or not.

MozReview-Commit-ID: GjYHkaCGBDd
2016-09-21 08:07:02 -07:00
Carsten "Tomcat" Book c9ac004310 Merge mozilla-central to fx-team 2016-09-21 12:08:57 +02:00
Carsten "Tomcat" Book 4ffad31ef1 merge fx-team to mozilla-central a=merge 2016-09-21 12:02:19 +02:00
Lin Clark 2d3224b92f Bug 1302873 - New console frontend: Remove quotes around strings. r=nchevobbe
MozReview-Commit-ID: JKw5URD5nkV
2016-09-20 11:37:03 -07:00
Jan Odvarko 2bb4561fdc Bug 1260552 - Replace xul:spliter by html:splitter; r=pbro 2016-09-21 08:26:02 +02:00
Sebastian Hengst fbf24f5ca1 Backed out changeset e8de82ab570d (bug 1260552)
MozReview-Commit-ID: B8xetPlNaN2
2016-09-17 20:07:57 +02:00