Commit Graph
746 Commits
Author SHA1 Message Date
Nicolas Chevobbe 7076d3a083 Bug 1559717 - Fix displaying getter value for getter returning falsy values. r=davidwalsh.
We were displaying result.value.throw if result.value.return
was falsy. But it can happen that a getter does return a
falsy value, and we want to display it.
So now we turn the expression the other way around, we first
check result.value.throw, and then default to result.value.return.
A mochitest is added to ensure we hav expected value for different
getters returning falsy values.

Differential Revision: https://phabricator.services.mozilla.com/D39136
2019-07-25 13:55:14 +00:00
Brian Hackett b7561df60c Bug 1405402 - Re-expand scope entries after resuming and re-pausing in a frame, r=jlast. 2019-07-21 14:50:09 -10:00
Gurzau Raul bdae24fa42 Backed out 3 changesets (bug 1556847, bug 1556858, bug 1405402) for eslint failures at /actors/replay/debugger.js on a CLOSED TREE.
Backed out changeset 03df8624c36c (bug 1405402)
Backed out changeset 099de68d4716 (bug 1556858)
Backed out changeset 1bf0b6a8dd13 (bug 1556847)
2019-07-22 01:13:40 +03:00
Brian Hackett 4c48d27510 Bug 1405402 - Re-expand scope entries after resuming and re-pausing in a frame, r=jlast. 2019-07-17 10:10:17 -10:00
Nicolas Chevobbe 68aacc044c Bug 1565963 - Add props to NotificationBox to render top and bottom borders. r=Honza.
We need this in the console to put the borders on the
right position, depending on the NotificationBox place.

Differential Revision: https://phabricator.services.mozilla.com/D38039
2019-07-18 05:51:24 +00:00
Nicolas Chevobbe 378b27f450 Bug 1565662 - Fix test_HSplitBox_01.html intermittent. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D38161
2019-07-18 08:53:24 +00:00
Armando Ferreira 00945f5389 Bug 1546347 - Message location on CSS Warnings has an erroneous title attribute. r=nchevobbe
Adding a new opcional property to Frame.js, messageSource, which will allows us to know the source of the Message. We will be using this property to display the correct tooltip message.

Differential Revision: https://phabricator.services.mozilla.com/D38139
2019-07-18 06:17:16 +00:00
Nicolas Chevobbe 9d703719af Bug 1564138 - Fix DevTools PropTypes errors when updating eslint. r=Ola.
Differential Revision: https://phabricator.services.mozilla.com/D38093
2019-07-17 10:35:44 +00:00
Maliha Islam 20551f411c Bug 1478156 - Move shareable focus methods to be used for color picker accessibility, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D33885
2019-07-15 11:01:04 +00:00
Narcis Beleuzu 309cad7d16 Backed out 6 changesets (bug 1478156) for dt failures on browser_html_tooltip_xul-wrapper.js . CLOSED TREE
Backed out changeset 5ca694230ffa (bug 1478156)
Backed out changeset fcc9123589fd (bug 1478156)
Backed out changeset 83a10c635fe9 (bug 1478156)
Backed out changeset a363971fffb0 (bug 1478156)
Backed out changeset 314855eab887 (bug 1478156)
Backed out changeset 041f51c9d4d1 (bug 1478156)
2019-07-14 05:32:45 +03:00
Maliha Islam 8097eeda63 Bug 1478156 - Move shareable focus methods to be used for color picker accessibility, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D33885
2019-07-13 18:37:18 +00:00
Nicolas Chevobbe 98f5f7f1ef Bug 1521452 - Create a GridElementWidthResizer component. r=Honza.
This component is placed by the consumer on a grid, and act on
one of the grid element size.
The component can be placed at the inline start or the inline end
of the area it is in.
This component relies on the existing Draggable component.
A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D37686
2019-07-12 16:48:27 +00:00
Coroiu Cristina 6d40480c9b Backed out changeset ad78f4b2fcee (bug 1521452) for chrome failures at devtools/client/shared/components/test/mochitest/test_HSplitBox_01.html 2019-07-12 10:54:47 +03:00
Nicolas Chevobbe 9ec690ebfe Bug 1521452 - Create a GridElementWidthResizer component. r=Honza.
This component is placed by the consumer on a grid, and act on
one of the grid element size.
The component can be placed at the inline start or the inline end
of the area it is in.
This component relies on the existing Draggable component.
A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D37686
2019-07-11 14:37:11 +00:00
Panos Astithas f3ad8a7772 Bug 1233891 - Use DOM promises instead of deprecated sync promises in devtools/. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D37138
2019-07-09 17:26:32 +00:00
Julian Descottes 12fd9eb61a Bug 1563686 - Introduce menu.popupAtTarget to fix zoom issues in netmonitor menus r=nchevobbe
Already tested via toolbox menus in devtools/client/framework/test/browser_toolbox_zoom_popup.js
Could open a follow up to allow for other anchor points than bottom-left.

Differential Revision: https://phabricator.services.mozilla.com/D37044
2019-07-07 14:15:51 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Dorel Luca f833dd86e0 Backed out changeset 4c6d64a74105 (bug 1559317) for DevTools failures in devtools/client/jsonview/test/browser_jsonview_row_selection.js 2019-06-20 07:38:48 +03:00
Yura Zenevich 20409a7c92 Bug 1559317 - prevent on mouse down default action on TreeView's tbody so it never gets focused state. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D35335
2019-06-19 18:15:53 +00:00
chujun 0f000fd48b Bug 1536854 - Log errors from logpoint as actual errors in the console r=davidwalsh,nchevobbe
If logpoint throws, set `level` to "error".
Add tests to ensure the correct level is set.

Demo function: https://luxuriant-system.glitch.me/
Add some logpoints. The first two statements are invalid. The third one is valid.
{F1311386}

In console:
{F1311387}

Differential Revision: https://phabricator.services.mozilla.com/D31157
2019-06-12 12:10:35 +00:00
Yura Zenevich 264170e470 Bug 1558188 - ensure TreeView's tbody container does not get keyboard focus. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D34351
2019-06-10 18:32:40 +00:00
Nicolas Chevobbe b9a7800b67 Bug 1523864 - Move filter bar layout change to the App level. r=Honza.
This makes the console code more consistent, and adds the
nice benefit of being able to check if the layout should
be modified when performing non-window-resize events that
might still impact the layout (sidebar toggle, sidebar
resizing, ...).

Differential Revision: https://phabricator.services.mozilla.com/D27668
2019-06-07 14:23:35 +00:00
Tim Nguyen bf34ca8f2c Bug 1554982 - Make console filter input use filter icon. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D32829
2019-05-29 14:36:13 +00:00
Yura Zenevich d558e6b0d5 Bug 1553192 - filter visible rows on demoand instead of when calculating refs. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D32030
2019-05-25 13:46:49 +00:00
Nicolas Chevobbe b6a0c56c15 Bug 1553473 - Fix PropTypes. r=Honza.
The FilterBar propType was a leftover from a
previous patch where the prop was removed.
The SearchBox one was added in a recent patch,
but shouldn't have been required (as we have
a default in the render function for it).

Differential Revision: https://phabricator.services.mozilla.com/D32150
2019-05-23 09:26:44 +00:00
Patrick Brosset d93842478f Bug 1553451 - Lower the eslint complexity level to 20 for devtools and exlude more complex functions; r=jdescottes
We want to go back to ESLint's default complexity level so that newly introduced code is checked for complexity.
At the same time, to make that work, we're excluding all of the more complex functions for now.
We should fix them: make them less complex, and remove the eslint-disable comment.
See bug 1553449 for more information about this.

Differential Revision: https://phabricator.services.mozilla.com/D32139
2019-05-23 09:06:16 +00:00
Mihai Alexandru Michis c358baf0c3 Backed out changeset 0f9626b48a66 (bug 1553451) for linting failures. CLOSED TREE 2019-05-23 10:58:22 +03:00
Patrick Brosset 18bd75fb8c Bug 1553451 - Lower the eslint complexity level to 20 for devtools and exlude more complex functions; r=jdescottes
We want to go back to ESLint's default complexity level so that newly introduced code is checked for complexity.
At the same time, to make that work, we're excluding all of the more complex functions for now.
We should fix them: make them less complex, and remove the eslint-disable comment.
See bug 1553449 for more information about this.

Differential Revision: https://phabricator.services.mozilla.com/D32139
2019-05-23 07:07:49 +00:00
Nicolas Chevobbe 72483b4363 Bug 1541355 - Don't display DevTools internal frames in Netmonitor stacktrace. r=Honza.
Before sending back the stacktrace, we remove all the
devtools internal frames using removeFramesAboveDebuggerEval.
A test (that was failing without the fix) is added to ensure
this works as expected.
The test revealed some issues in webconsole-connection-proxy
(mostly trying to access webConsoleUI while closing the toolbox),
which we fix in the patch as well.

Differential Revision: https://phabricator.services.mozilla.com/D31249
2019-05-22 08:57:36 +00:00
Jason Laster 72a3ff0d38 Bug 1552987 - Jump-to-function-definition buttons are no longer visible in the console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D32003
2019-05-21 16:54:56 +00:00
Aaditya Arora c1987d8aea Bug 1533277 - Use SearchBox component in console filter bar. r=ntim.
The code is adapted to work with the SearchBox, which means
we can get rid of an event listener in webconsole-ui.js.
Also, we take this as an opportunity to remove the element
refs as they were only used in tests, where we can more easily
use query selectors to get those elements.
Some changes were needed in SearchBox's `onChange` function since
`setState` is asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D31762
2019-05-21 12:20:50 +00:00
Mihai Alexandru Michis dc99affe70 Backed out changeset 36ada63cb9fb (bug 1541355) for failing browser_webconsole_network_messages_stacktrace_console_initiated_request.js CLOSED TREE 2019-05-20 18:33:53 +03:00
Nicolas Chevobbe 332bc42130 Bug 1541355 - Don't display DevTools internal frames in Netmonitor stacktrace. r=Honza.
Before sending back the stacktrace, we remove all the
devtools internal frames using removeFramesAboveDebuggerEval.
A test (that was failing without the fix) is added to ensure
this works as expected.
The test revealed some issues in webconsole-connection-proxy
(mostly trying to access webConsoleUI while closing the toolbox),
which we fix in the patch as well.

Differential Revision: https://phabricator.services.mozilla.com/D31249
2019-05-20 12:33:06 +00:00
Julian Descottes edd019f9cc Bug 1552495 - Bump debugger and reps to use launchpad 0.0.153 r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D31618
2019-05-17 16:55:07 +00:00
Florens Verschelde 5275c3a46c Bug 1479365 - Invert selection colors in selected rows; r=Honza,yzen,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D30794
2019-05-15 07:36:04 +00:00
David Walsh 6cd33e5d72 Bug 1547205 - Fix regression in tree indentation r=nchevobbe
Replacement for D29008

Differential Revision: https://phabricator.services.mozilla.com/D30933
2019-05-15 05:53:16 +00:00
Oriol Brufau af587a16bb Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214
2019-05-14 06:46:30 +00:00
Yura Zenevich 2cb2ba46bc Bug 1550542 - ensure expanded/collapsed state is set the focusable header element in accordion rather than the list item. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D30595
2019-05-14 12:27:44 +00:00
Yura Zenevich b6d53668ad Bug 1550542 - fix a number of issues around aria-level within the accessibility tree. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D30594
2019-05-14 12:31:13 +00:00
Nicolas Chevobbe 88a36c7d84 Bug 1493361 - Add a urlCropLimit prop in StringRep. r=Honza.
This new prop allow us to define a maximum length for indivual
URLs (as opposed to `cropLimit`, which sets it for the whole text).
The URL regex is also modified to be able to linkify messages
wrapped in curly quotes.
Some tests are added to ensure we handle this prop as expected.

Differential Revision: https://phabricator.services.mozilla.com/D29006
2019-05-13 12:58:24 +00:00
Tim Nguyen cfc056ac1f Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334
2019-05-11 17:54:16 +00:00
arthur.iakab 14865bcdb8 Backed out changeset c8a2cbf18f3c (bug 1223368) for devtools failures on browser_inspector_search-01.js CLOSED TREE 2019-05-11 20:44:42 +03:00
Tim Nguyen 8533c03502 Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334
2019-05-11 16:08:13 +00:00
Julian Descottes e8d4d11e92 Bug 1543940 - Remove useTopLevelWindow option from DevTools menu/utils.js helper r=ochameau
Depends on D27696

Differential Revision: https://phabricator.services.mozilla.com/D29887
2019-05-08 21:37:01 +00:00
Julian Descottes 645909585c Bug 1543940 - Update tests to use toolbox.topDoc to query context-menu elements r=ochameau
Depends on D27695

Differential Revision: https://phabricator.services.mozilla.com/D27696
2019-05-08 21:36:37 +00:00
Julian Descottes 395ede7256 Bug 1543940 - Use the toolbox top window for context menus r=ochameau
Depends on D28036

If a context menu is opened in the toolbox document when running in a frame with type=content, keyboard navigation will not move to the context menu when it's opened.

Differential Revision: https://phabricator.services.mozilla.com/D27695
2019-05-08 21:36:04 +00:00
Julian Descottes f842eea3df Bug 1543940 - menu.popup() should take a document argument instead of toolbox r=ochameau
Depends on D27693

Menu::popup and popupAtZoom are expecting a toolbox argument as last argument.
However, half of the callsites do not have access to the toolbox and just pass
a { doc } object. This is misleading when trying to work on menu.js because you
cannot rely on toolbox APIs.

Differential Revision: https://phabricator.services.mozilla.com/D28036
2019-05-08 21:35:36 +00:00
Andreea Pavel 368a7a0194 Backed out 5 changesets (bug 1543940) for failing browser_menu_api.js on a CLOSED TREE
Backed out changeset aaa0f827616a (bug 1543940)
Backed out changeset 590b72185b69 (bug 1543940)
Backed out changeset 42e2136f684f (bug 1543940)
Backed out changeset a66967f17042 (bug 1543940)
Backed out changeset b1e6e932873c (bug 1543940)
2019-05-08 20:49:43 +03:00
Julian Descottes 4a06195b9e Bug 1543940 - Remove useTopLevelWindow option from DevTools menu/utils.js helper r=ochameau
Depends on D27696

Differential Revision: https://phabricator.services.mozilla.com/D29887
2019-05-08 15:15:22 +00:00
Julian Descottes 8b2af4aa81 Bug 1543940 - Update tests to use toolbox.topDoc to query context-menu elements r=ochameau
Depends on D27695

Differential Revision: https://phabricator.services.mozilla.com/D27696
2019-05-08 15:14:54 +00:00