Commit Graph
837 Commits
Author SHA1 Message Date
Nicolas Chevobbe e2e3764c39 Bug 1601559 - Put Window default properties accessor under <default properties> node. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D55927
2019-12-10 18:07:02 +00:00
Nicolas Chevobbe 745ad360ab Bug 1370826 - Render parameter names in function rep. r=Honza.
For some reason the parameterNames was expected as
a prop, but it's available on the function grip
itself.
The rep is fixed, and tests are modified to reflect
this change.

Differential Revision: https://phabricator.services.mozilla.com/D55926
2019-12-10 18:04:40 +00:00
jaril 033f4938a3 Bug 1582298 - Fix set/get watchpoint markers in RTL orientation r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D56463
2019-12-09 21:34:45 +00:00
Dorel Luca 5081adf6d2 Backed out 2 changesets (bug 1370826, bug 1601559) for Devtools failures in devtools/client/debugger/test/mochitest/browser_dbg-sourcemapped-scopes.js. CLOSED TREE
Backed out changeset 37142aec03d7 (bug 1601559)
Backed out changeset 5fe8330c1912 (bug 1370826)
2019-12-10 18:17:29 +02:00
Nicolas Chevobbe dc94c00294 Bug 1601559 - Put Window default properties accessor under <default properties> node. r=Honza.
Depends on D55926

Differential Revision: https://phabricator.services.mozilla.com/D55927
2019-12-10 14:42:07 +00:00
Nicolas Chevobbe a1f6aaa656 Bug 1370826 - Render parameter names in function rep. r=Honza.
For some reason the parameterNames was expected as
a prop, but it's available on the function grip
itself.
The rep is fixed, and tests are modified to reflect
this change.

Differential Revision: https://phabricator.services.mozilla.com/D55926
2019-12-09 12:46:23 +00:00
Nicolas Chevobbe 12cedd0d2a Bug 1579090 - Make ObjectInspector and Reps work with object fronts. r=Honza,jlast.
This patch make it so ObjectInspector can handle both simple grips and fronts.
The main idea is that we can now pass a `front` property to ObjectInspector nodes,
that will then be used to retrieve properties on the object.

Differential Revision: https://phabricator.services.mozilla.com/D54508
2019-12-04 09:03:20 +00:00
Nicolas Chevobbe b8fe80ec27 Bug 1599135 - Expose all Reps file. r=jlast.
This allows consumers to directly require a single Rep file
if needed (e.g. the inspector only needs elementNode or textNode).
In order to make this work, the requires for react-dom-factories
and prop-types needed to be changed to the in-tree modules.
We also needed to modified the reps jest config, as well as the
babel config so we can run tests and still generate the reps bundle.
Finally, the dom-node-constants is modified to not use define as
it's not used as an AMD module.

Differential Revision: https://phabricator.services.mozilla.com/D54680
2019-11-27 07:07:30 +00:00
Jason Laster 62279d8585 Bug 1597946 - Browser debugger goes blank. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D54001
2019-11-26 17:42:14 +00:00
Nicolas Chevobbe 4d14f5d829 Bug 1375752 - Render empty strings as <empty string> in console. r=yzen.
This only affects console api calls where one of the
argument is an empty string. Since we don't quote
string arguments for those, it was difficult to spot
an empty string there.
Jest test are added, as well as a mochitest for the
console to make sure that we don't have unwanted
side effects (for evaluation results, object with
empty string properties, ...)

Differential Revision: https://phabricator.services.mozilla.com/D54687
2019-11-26 15:09:00 +00:00
jaril c2c0d5e15b Bug 1597775 - Only render watchpoints in the Scopes pane
Differential Revision: https://phabricator.services.mozilla.com/D54353
2019-11-25 16:57:40 +00:00
Nicolas Chevobbe d0b73a8217 Bug 1592969 - Show async separator in Frame component. r=davidwalsh.
Differential Revision: https://phabricator.services.mozilla.com/D52133
2019-11-07 17:28:45 +00:00
Julian Descottes 03cdcd7b0a Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro
Using next-line is less error prone for refactorings than wrapping methods with enable/disable blocks.

Differential Revision: https://phabricator.services.mozilla.com/D51782
2019-11-05 14:29:04 +00:00
Nicolas Chevobbe ace2463ffd Bug 1594379 - Update devtools-launchpad to 0.0.160. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D51987
2019-11-06 17:48:48 +00:00
wartmanm e4a2c6bdd0 Bug 1590824 - Don't pass sourceId in jumpToDefinitionButton event listener. r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D50867
2019-11-05 13:13:16 +00:00
Richard O. Gregory 755b26fa0e Bug 1589333 - Enable ESLint for all of devtools/client/shared/ (manual changes). r=Standard8,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D50637
2019-11-04 18:05:14 +00:00
Richard O. Gregory c7f197e3c7 Bug 1589333 - Enable ESLint for all of devtools/client/shared/ (automatic changes). r=Standard8,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D50636
2019-11-04 18:03:21 +00:00
Florens Verschelde e0bef9d3d5 Bug 1525939 - Use shared Accordion component in Inspector; r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D43640
2019-11-01 16:11:13 +00:00
Anshul 27c37f1be7 Bug 1591975 - Summary: Do not render Watchpoint button in console r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D50984
2019-10-31 05:02:32 +00:00
Nicolas Chevobbe 4bd90386e4 Bug 1590093 - Lazy load console components. r=Honza.
We try to lazy load all the things we know we might
not need directly when opening the console.

Differential Revision: https://phabricator.services.mozilla.com/D50800
2019-10-29 10:46:51 +00:00
Anshul dccbda7777 Bug 1590811 - Better align the breakpoint icon and change hover effects.
Differential Revision: https://phabricator.services.mozilla.com/D50157
2019-10-28 22:24:26 +00:00
Nicolas Chevobbe f0ac5d9860 Bug 1591330 - Remove LongStringClient. r=jdescottes.
The LongStringClient is removed and we replace its
usage with LongStringFront instead.
This require a few variable/function renaming, as
well as updating the mocks we use in node tests.

Switch usage to LongStringFront instead.

Differential Revision: https://phabricator.services.mozilla.com/D50579
2019-10-28 16:22:06 +00:00
Ciure Andrei e1f7e6e59b Backed out changeset 0a516296693b (bug 1590093) for causing browser_jsterm_selfxss.js to permafail CLOSED TREE 2019-10-28 17:15:50 +02:00
Nicolas Chevobbe 7d2ac33079 Bug 1590093 - Lazy load console components. r=Honza.
We try to lazy load all the things we know we might
not need directly when opening the console.

Differential Revision: https://phabricator.services.mozilla.com/D50800
2019-10-28 13:23:15 +00:00
Nicolas Chevobbe ce25c3f455 Bug 1519103 - Remove Scratchpad panel. r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D50583
2019-10-27 09:05:58 +00:00
Nicolas Chevobbe 95fe5fa94a Bug 1589346 - Fix navigation to debugger from console on prettified sources. r=loganfsmyth.
This revert the changes made in Bug 1587839, except the added test.
The safer fix to be uplifted is to only fix the original issue
in the SmartTrace component, where we remove any sourceId we might
have when creating the new mapped frame.

We also modify the browser_dbg-pretty-print-console test to ensure
clicking on a prettified location in the console does open the
debugger with the expected location.

Differential Revision: https://phabricator.services.mozilla.com/D50173
2019-10-25 12:16:52 +00:00
Daniel Varga 468535502e Backed out changeset fac6219649be (bug 1587839) on request by nchevobbe DONTBUILD 2019-10-25 14:56:44 +03:00
Nicolas Chevobbe d5e92c7863 Bug 1587839 - Fix navigation to debugger from console on prettified sources. r=loganfsmyth.
This revert the changes made in Bug 1587839, except the added test.
The safer fix to be uplifted is to only fix the original issue
in the SmartTrace component, where we remove any sourceId we might
have when creating the new mapped frame.

We also modify the browser_dbg-pretty-print-console test to ensure
clicking on a prettified location in the console does open the
debugger with the expected location.

Differential Revision: https://phabricator.services.mozilla.com/D50173
2019-10-25 06:21:18 +00:00
Nicolas Chevobbe a56fb5fef6 Bug 1585923 - Rename MenuButton doc prop to toolboxDoc. r=jdescottes.
This should make it more obvious what kind of document
the component is expecting.

Differential Revision: https://phabricator.services.mozilla.com/D50240
2019-10-24 05:56:10 +00:00
Nicolas Chevobbe e3359be848 Bug 1588999 - Rename ObjectClient to ObjectFront. r=ochameau.
The object-client.js file is now a proper protocol.js front,
but is still named after a client.
This is confusing, so we rename and move the file next to other
fronts, and update all consumers to the new terminology.

Differential Revision: https://phabricator.services.mozilla.com/D49878
2019-10-21 12:07:10 +00:00
Nicolas Chevobbe a3abf6d5a1 Bug 1589592 - Fix GridElementWidthResizer in RTL languages. r=Honza.
When starting to resize, we store the direction of the
controlled element in the state.
When resizing, we check the current element direction
to set the appropriate width to the controlled element.
A test is added to ensure the resizer works as expected
in RTL languages elements.

Differential Revision: https://phabricator.services.mozilla.com/D49719
2019-10-18 13:05:51 +00:00
Nicolas Chevobbe 7a54cdfae8 Bug 1577896 - Fix GridElementResizer on overflowing container. r=fvsch.
We remove the pseudo elements we were using to draw the borders and
put them on the grid elements instead.
We make the GridElementResizer 6px and translate it so there's
handle on "both sides" of the splitter.

Differential Revision: https://phabricator.services.mozilla.com/D45302
2019-10-18 10:17:48 +00:00
jaril d0be8e4c8f Bug 1588997 - Convert ObjectClient to protocol.js front. r=nchevobbe.
- Converted the ObjectClient into an protocoljs Front
- Converted the SymbolIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the PropertyIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the EnvironmentClient into a protocoljs Front and moved it to devtools/shared/fronts
- Modified calls to `DebuggerClient.release()` so that it tries to call the ObjectFront's release method first, and falls back on `DebuggerClient.release()` if there's no object front
- Changed reps so that it instantiates only one ObjectClient per grip
- Changed tests so that they expect what the Front's request method resolves to where applicable (i.e. ObjectFront.allocationStack resolves to allocationStack, not a packet object with an allocationStack property)
- Changed callbacks provided to ObjectClient methods to be chained to the ObjectFront methods (e.g. ObjectClient.getScope(callback) changed to ObjectFront.getScope().callback())
- Changed tests to use async/await (test_framebindings-x.js, test_functiongrips-x.js, test_objectgrips-x.js)
- Changed tests to expect protocoljs to throw an error string instead of an error object (test_objectgrips-fn-apply-03.js, test_threadlifetime-02.js, test_pauselifetime-03.js)

Differential Revision: https://phabricator.services.mozilla.com/D48182
2019-10-17 16:06:25 +00:00
Michael Ratcliffe 72c460463c Bug 1472200 - Only the Rules panel is displayed if enabling 3-Pane Inspector while the right Inspector section is at minimum width r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D49270
2019-10-16 19:08:46 +00:00
Bogdan Tara 799d210151 Backed out changeset 29bc3ebe8b4e (bug 1588997) for browser_ext_devtools_panels_elements_sidebar.js && browser_ext_find.js failures CLOSED TREE 2019-10-17 10:51:19 +03:00
jaril 7c26e8f76b Bug 1588997 - Convert ObjectClient to protocol.js front. r=nchevobbe.
- Converted the ObjectClient into an protocoljs Front
- Converted the SymbolIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the PropertyIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the EnvironmentClient into a protocoljs Front and moved it to devtools/shared/fronts
- Modified calls to `DebuggerClient.release()` so that it tries to call the ObjectFront's release method first, and falls back on `DebuggerClient.release()` if there's no object front
- Changed reps so that it instantiates only one ObjectClient per grip
- Changed tests so that they expect what the Front's request method resolves to where applicable (i.e. ObjectFront.allocationStack resolves to allocationStack, not a packet object with an allocationStack property)
- Changed callbacks provided to ObjectClient methods to be chained to the ObjectFront methods (e.g. ObjectClient.getScope(callback) changed to ObjectFront.getScope().callback())
- Changed tests to use async/await (test_framebindings-x.js, test_functiongrips-x.js, test_objectgrips-x.js)
- Changed tests to expect protocoljs to throw an error string instead of an error object (test_objectgrips-fn-apply-03.js, test_threadlifetime-02.js, test_pauselifetime-03.js)

Differential Revision: https://phabricator.services.mozilla.com/D48182
2019-10-16 17:09:35 +00:00
Miriam 32009dda67 Bug 1582304: Ensure you can add a watchpoint to property within a bucket, prototype, or default properties.
Differential Revision: https://phabricator.services.mozilla.com/D49496
2019-10-17 00:45:31 +00:00
Nicolas Chevobbe f9ea075d15 Bug 1587839 - Pass the sourceId to sourcemap service subscribe callback. r=loganfsmyth.
The sourceId is then used in the various places where we call the sourcemap service.
A test is added in the console to make sure that we do navigate to the mapped
location in the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D49103
2019-10-16 00:16:55 +00:00
David Walsh d5047c6323 Bug 1584988 - Only allow files to be dropped onto HAR overlay r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D48982
2019-10-15 15:29:51 +00:00
lloan 7e3f443dc5 Bug 1587419 - Search keyword does not appear in the input text box field after reopening network panel search. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D48739
2019-10-11 07:59:42 +00:00
Nicolas Chevobbe dcd129b069 Bug 1586658 - Update debugger bundle files.r=jlast.
Those files are generated with bin/bundle.js, and were
out of sync.
We take this as an opportunity to include the license
at the top of the files, using the Webpack Banner plugin.

Differential Revision: https://phabricator.services.mozilla.com/D48297
2019-10-08 21:28:18 +00:00
wartmanm eb01792710 Bug 1433373 - Use source mapping for console jump to definition button r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38096
2019-10-07 08:40:04 +00:00
Nicolas Chevobbe 511b29efce Bug 1585529 - Fix invoke getter button for properties with quotes. r=Honza.
Bug 1584244 fixed some of the issue for getters,
but not all of them.
Instead of trying to unescape the node name, we
put the actual property name into the node, so
we can reuse it later.

Differential Revision: https://phabricator.services.mozilla.com/D47876
2019-10-04 13:40:33 +00:00
Narcis Beleuzu 2351436cda Backed out changeset 4fc14159ba69 (bug 1585529) for debugger failures. CLOSED TREE 2019-10-04 15:55:49 +03:00
Nicolas Chevobbe dd16bc3c1e Bug 1585529 - Fix invoke getter button for properties with quotes. r=Honza.
Bug 1584244 fixed some of the issue for getters,
but not all of them.
Instead of trying to unescape the node name, we
put the actual property name into the node, so
we can reuse it later.

Differential Revision: https://phabricator.services.mozilla.com/D47876
2019-10-04 12:08:28 +00:00
Jason Laster 3934a4c8a5 Bug 1582870 - Reduxify console actions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D46674
2019-10-02 22:50:25 +00:00
Nicolas Chevobbe a65a35fdeb Bug 1585012 - Don't dispatch RELEASED_ACTORS action when no actors were released. r=davidwalsh.
Differential Revision: https://phabricator.services.mozilla.com/D47738
2019-10-01 14:52:20 +00:00
Nicolas Chevobbe b56a390f9f Bug 1584244 - Fix invoke getter action on quoted property. r=Honza.
When clicking the invoke button on a property that
needs to be quoted, e.g. hello-world, the result
was undefined.
That's because we were sending the property name to
the server with the surrounding quotes.
This patch fixes the issue and adds a couple of test
case to make sure we don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D47399
2019-10-01 13:17:22 +00:00
Nicolas Chevobbe f6ca51a948 Bug 1582865 - Remove actors from ObjectInspector state once they're released. r=rpl.
The actors weren't ever removed from the state,
which could lead to increased memory consumption
as well as attempt to release the actors a
second time in some cases.
We fix this by dispatching a new actions once
the actors are released, so we can remove them
from the state.

Depends on D47271

Differential Revision: https://phabricator.services.mozilla.com/D47411
2019-09-27 12:06:20 +00:00
Nicolas Chevobbe 75e9d7d732 Bug 1582865 - Don't use document/window in tree component. r=yzen.
When using the ObjectInspector in an inspector extension sidebar,
document is not an HTMLDocument but a Sandbox, which means we
don't have access to the same properties than in a document.
Since the Tree and the ObjectInspector components do use `document`
and `window`, this means some interaction would lead to the sidebar
crashing.
To prevent this, we retrieve the document and/or the window from
a node reference instead.

Differential Revision: https://phabricator.services.mozilla.com/D47271
2019-09-27 12:06:20 +00:00