Commit Graph
1259 Commits
Author SHA1 Message Date
Michael Ratcliffe 26e575bbdc Bug 1322873 - Bug 1322873 - Add React event bubbles to the Markup View r=tromey
DevRel have made it clear that one of the number one complaints they hear is that we are not supporting React in our tools.

So how about we have our event bubbles include React events and allow people to go to the event listener source in the debugger?

I don't believe that any other tool does this so it is totally worth doing... and in time for Christmas as well ;)

Works just fine in development and production versions of React.

It also works in the browser toolbox so it can be used to debug events in our own tools e.g. The Debugger.

The files under devtools/client/inspector/markup/test/ are either test or React library files so they only really need a cursory glance.

This means that you should focus on the following files when reviewing:
 - devtools/client/locales/en-US/inspector.properties
 - devtools/client/shared/widgets/tooltip/EventTooltipHelper.js
 - devtools/server/actors/inspector.js
 - devtools/server/event-parsers.js

Now allowed the use of JSX in mochitests and fixed all eslint errors.

MozReview-Commit-ID: AtxhainieQe
2016-12-19 11:23:49 +00:00
JerryShih 10e0b98b50 Bug 1310681 - update devtool color function test for colorUtils.colorToRGBA default argument changing. r=tromey
MozReview-Commit-ID: Aa2wW4rEDs
2016-10-21 15:29:01 -04:00
JerryShih 28fdaf5354 Bug 1310681 - pass css-color-4 color function supporting info to devtool css OutputParser and SwatchColorPickerTooltip. r=tromey
Pass css-color-4 supporting status from css-property db to OutputParser and SwatchColorPickerTooltip.

MozReview-Commit-ID: N1ffWOlf9f
2016-10-21 14:59:07 -04:00
Carsten "Tomcat" Book bb42ee701b Merge mozilla-central to autoland 2017-01-19 17:00:25 +01:00
Gijs Kruitbosch 46a6ae6bea Bug 1332269 - fix permafailure on aurora in browser_theme.js by not implicitly depending on the default value of devtools.theme, r=ochameau
MozReview-Commit-ID: 3n4bfqeM5IK
2017-01-19 13:58:45 +00:00
J. Ryan Stinnett c14aa5df39 Bug 1282863 - Remove DEVTOOLS_SCRATCHPAD_WINDOW_TIME_ACTIVE_SECONDS probe. r=jryans
MozReview-Commit-ID: HRLKfY0kDIJ
2016-08-26 20:19:47 -05:00
Florian Quèze 361ec85a2e Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +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
Julian Descottes ab7e4905e9 Bug 1323638 - fix devtools services shim for child preferences;r=jlast
MozReview-Commit-ID: HlzAeHOuG2a
2016-12-15 07:19:44 +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
Gabriel Luong a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Ricky Chien 1e14a5a377 Bug 1309188 - Implement Security Panel r=Honza
MozReview-Commit-ID: LgYB97ByYdR
2016-11-24 21:50:49 +08:00
Jarda Snajdr c4c0838df8 Bug 1309866 - Add option for loading common libraries to BrowserLoader r=Honza,jlongster
MozReview-Commit-ID: HGS3T6QcOvF
2016-11-23 16:43:41 +01:00
Carsten "Tomcat" Book 3e675293a3 Backed out changeset ec1ebd2666c7 (bug 1309866) 2016-12-09 15:45:49 +01:00
Jarda Snajdr bda2088142 Bug 1309866 - Add option for loading common libraries to BrowserLoader r=Honza,jlongster
MozReview-Commit-ID: HGS3T6QcOvF
2016-11-23 16:43:41 +01:00
Julian Descottes 3a4cf68bbf Bug 1321509 - use devtools-local-toolbox to load the inspector in content;r=bgrins,tromey
Add package.json to devtools/client/inspector
Integration with devtools-local-toolbox:
- provides development server
- default webpack config
- landing page to select a tab

In this patch:
- bin/dev-server-js contains the inspector specific routes
- webpack/*-sham.js : inspector dependencies that had to be mocked
  ideally, decoupling work should continue and the inspector client
  should only ever require files that require no chrome priviledged
  APIs.
- toolbox.js contains the interface with devtools-local-toolbox bootstrap
  and the inspector panel initialization
- configs/development.json is the inspector config for the devtools-local-toolbox

MozReview-Commit-ID: 7YQLUlgSyDX
2016-12-07 18:24:51 +01:00
Towkir Ahmed 169bd57406 Bug 1313486 - Fix unicode-bidi for DOM label and value in RTL locales. r=Honza 2016-11-25 10:16:00 -05:00
Wes Kocher 6c8553ccb2 Backed out 3 changesets (bug 1309866) for too many intermittent test failures after landing a=backout
Backed out changeset 30baf39ed89f (bug 1309866)
Backed out changeset e0e09f7f22a3 (bug 1309866)
Backed out changeset 75d37553b7cd (bug 1309866)
2016-12-02 11:14:57 -08:00
Wes Kocher 32fabff059 Merge m-c to autoland, a=merge 2016-12-01 15:46:49 -08:00
Ruturaj K. Vartak 431be25821 Bug 1320304 - Firebug theme - Wrong height of Inspector, Network side panel tabs. r=Honza 2016-11-29 22:53:00 -05:00
Brian Grinstead d3c7b73f76 Bug 1259603 - Use ConsoleEvents for cached messages and observing messages when webconsole actor is running;r=ejpbruel
MozReview-Commit-ID: E3oG451qPe9
2016-11-30 10:32:48 -08:00
Nicolas Chevobbe 848a544869 Bug 1321518 - Fix requireHelper for enzyme. r=bgrins
Bug 1312236 updated React to v15.3.2 which was making webconsole's mocha test fail.
An error was thrown because the path and export we do in requireHelper to make enzyme
able to call React functions was changed.
We fix the require to ReactDOM by using the react-dom.js file, and we add the similar
react-dom-server.js for ReactDOMServer functions.

Tests now run like they used to.

MozReview-Commit-ID: GXIQJPlqp4A
2016-12-01 19:47:36 +01:00
Tom Tromey 8a93d4e955 Bug 1316630 - don't emit pref-changed event on gDevTools; r=jdescottes
MozReview-Commit-ID: CCqAf8dBFSY
2016-11-21 08:47:10 -07:00
Tom Tromey c5e4df9459 Bug 1316630 - move PrefObserver to devtools/shared/prefs.js; r=jdescottes
MozReview-Commit-ID: C4KxFxv2LVT
2016-11-14 15:46:19 -07: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 b6f0c8ff0a Bug 1309866 - Add option for loading common libraries to BrowserLoader r=Honza,jlongster
MozReview-Commit-ID: HGS3T6QcOvF
2016-11-23 16:43:41 +01:00
Michael Ratcliffe 2556b92d84 Bug 1320362 - Move indexedDb storage type in the storage inspector into a new column r=jdescottes
Ideally we would have used the GUID to join fields to build the compound key but because we show the uniqueId in the tree that would lead to an ugly user experience. As an
alternative we simply use e.g. db1 (default) as the uniqueId. This works as a unique key, is informative for the user and means minimal changes to tests.

MozReview-Commit-ID: I0XxTIoV33p
2016-11-29 10:57:18 +00:00
Carsten "Tomcat" Book b2e94c45fc Merge mozilla-central to mozilla-inbound 2016-11-29 16:49:35 +01:00
Carsten "Tomcat" Book e23b4a4227 merge mozilla-inbound to mozilla-central a=merge 2016-11-29 16:47:18 +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
Lin Clark de63d573ef Bug 1312236 - Update React to 15.3.2 r=jsnajdr
MozReview-Commit-ID: LLIjkUt5AUU
2016-11-28 14:38:00 +01:00
Michael Ratcliffe 8929f73c5a Bug 1315639 - Event listener popup needs rewriting r=gerv,pbro
Changes:
  - Removed 5 lines from toolkit/content/license.html as requested by gerv.

MozReview-Commit-ID: COFNoCDVyp6
2016-11-04 17:16:50 +00: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
djmdev dbf6ace6ce Bug 1316613 - Disables eyedropper icon if the eyedropper highlighter is unavailable.r=jdescottes
MozReview-Commit-ID: 3HhqqGqnoHo
2016-11-24 03:08:28 +05:30
Astley Chen 2fbfda6ee9 Bug 1270406 - Unprefix pseudo-class dir in DevTool resources. r=pbro
MozReview-Commit-ID: Dw5DhErHkY8
2016-11-22 23:05:18 +08:00
Michael Ratcliffe 95697409bc Bug 1146194 - Multiple cookies with the same name not shown r=gl
Stubborn debugger statement.

MozReview-Commit-ID: F2qgWofemHG
2016-11-11 15:57:51 +00:00
Carsten "Tomcat" Book 4b5d9e5f0b Merge mozilla-central to autoland 2016-11-22 16:29:49 +01:00
Carsten "Tomcat" Book 98e701bcdb merge mozilla-inbound to mozilla-central a=merge 2016-11-22 15:53:05 +01:00
Tom Tromey 66336ab416 Bug 1319150 - allow function-style observers in Services shim; r=jdescottes
MozReview-Commit-ID: Zq687zNvyI
2016-11-21 11:51:06 -07: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
Gabriel Luong 8b915944e0 Bug 1308260 - Part 3: Dispatch the new grid data and update the store with the new grid state. r=jryans 2016-11-22 02:07:09 +08:00
Carsten "Tomcat" Book 143122a9ea Merge mozilla-central to autoland 2016-11-18 16:57:20 +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
Dalimil Hajek fc7dc4a6d6 Bug 1314539 - Unify license files and Mozilla license headers in vendor directory. r=odvarko 2016-11-15 08:12:00 -05:00
Gabriel Luong 71ed99ef7e Bug 1302536 - Adds a toggleable button next to the 'display: grid' declaration to toggle the grid highlighter r=pbro 2016-11-16 22:35:20 +09:00