Commit Graph

24 Commits

Author SHA1 Message Date
Nicolas Chevobbe
25a1093676 Bug 1567174 - Move expression evaluation to a proper Redux action. r=jdescottes.
The goal is to not directly use the panel.hud.ui.proxy reference
directly from the JsTerm, so we're in better shape when Fission
comes.
It's also a nice refactor to make the JSTerm component more
React-like.
As a nice benefit, we can handle telemetry and history persistence
from their middleware.
As the `requestEvaluation` method is removed from the JSTerm, some
callsites needed to be updated to still work.

Differential Revision: https://phabricator.services.mozilla.com/D39022
2019-08-02 11:49:21 +00:00
Ciure Andrei
74372a9da1 Backed out 2 changesets (bug 1568143, bug 1567174) for causing browser_ext_addon_debugging_netmonitor.js to perma fail CLOSED TREE
Backed out changeset a8faaa1c722e (bug 1568143)
Backed out changeset 5dddaeb1e952 (bug 1567174)
2019-08-02 00:50:34 +03:00
Nicolas Chevobbe
a81a1e8f40 Bug 1568143 - Don't use JsTerm reference to evaluate code. r=jdescottes.
JSTerm `execute` function is renamed to `_execute` to emphasize
that it's a private function.
A `dispatchEvaluateExpression` is added to the WebConsoleWrapper
so other panels can use that if they need to.
A test helper is added to be able to evaluate without grabbing
the jsterm reference, and tests are modified to use the new
helper, or the existing `executeAndWaitForMessage`.

Differential Revision: https://phabricator.services.mozilla.com/D39024
2019-08-01 06:52:25 +00:00
Nicolas Chevobbe
c2ebae7e8a Bug 1567174 - Move expression evaluation to a proper Redux action. r=jdescottes.
The goal is to not directly use the panel.hud.ui.proxy reference
directly from the JsTerm, so we're in better shape when Fission
comes.
It's also a nice refactor to make the JSTerm component more
React-like.
As a nice benefit, we can handle telemetry and history persistence
from their middleware.
As the `requestEvaluation` method is removed from the JSTerm, some
callsites needed to be updated to still work.

Differential Revision: https://phabricator.services.mozilla.com/D39022
2019-08-01 06:47:41 +00:00
Gabriel Luong
12587ec458 Bug 1567276 - Refactor inspector to inspectorFront. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D38554
2019-07-18 15:33:55 -04: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
Gabriel Luong
904f583885 Bug 1550030 - Part 1: Implement the DOM mutation breakpoint context menu items in the markup view. r=loganfsmyth,jdescottes
This implements the context menu items for the DOM mutation breakpoint.
In addition, there were some server changes to:
- Update the mutationBreakpoints form for the NodeActor
- Expose the mutationBreakpoints form
- Moved the setMutationBreakpoints method from the Node spec to Walker spec
since the Node spec only consisted of getter methods. It made more sense
that the setter went into the Walker spec to be more consistent with how
the Walker and Node spec have been arranged.

Unit tests will be followed up in Part 2 immediately.

Differential Revision: https://phabricator.services.mozilla.com/D36074
2019-06-26 15:16:22 -04:00
Gabriel Luong
45c5168984 Bug 1548703 - Rearrange the markup context menu items. r=rcaliman
This patch rearranges the second and third group of context menu items
in the markup context menu.

Differential Revision: https://phabricator.services.mozilla.com/D35675
2019-06-24 13:12:10 -04:00
Razvan Caliman
59765734eb Bug 1555064 - (Part 2) Centralize the list of supported pseudo-classes. r=gl
Depends on D32867

Reference the shared list of pseudo-elements throughout the codebase:
- markup view context menu + test
- Rule editor
- box model highlighter
- node actor
- new Rules view

Differential Revision: https://phabricator.services.mozilla.com/D32868
2019-05-30 16:14:53 +00:00
Razvan Caliman
9a68f0d9ed Bug 1552275 - Fix Copy Link context menu in DevTools Inspector markup view. r=gl
- Fixes the references to the correct event handler & InspectorFront after a previous mass refactoring in Bug 1529364.
- Augments a test to ensure the clipboard content is correct executing the context menu action to copy a link.

Differential Revision: https://phabricator.services.mozilla.com/D31765
2019-05-20 16:03:00 +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
1d66f6eb50 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 15:14:05 +00:00
Julian Descottes
d9b007903b 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 15:13:40 +00:00
Mellina Yonashiro
b253301825 Bug 1532295 - Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source. .
Pass on column from props.onViewSourceInDebugger (///devtools/client/shared/components/reps/reps.js:6844//) to
//devtools/client/webconsole/webconsole-wrapper.js:267// as **frame.column**

Differential Revision: https://phabricator.services.mozilla.com/D22372
2019-03-28 13:52:28 +00:00
Yura Zenevich
372b28bce4 Bug 1531584 - catch promise error when updating a11y menu item when DOMWalker connection is already closed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D23321
2019-03-13 15:44:55 +00:00
Brian Hackett
481a5f23a9 Bug 1532298 - Fix viewSourceInDebugger calls, r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D22336
2019-03-06 18:55:37 +00:00
Nicolas Chevobbe
8a8d018dff Bug 1463128 - Expose setInputValue and getInputValue at hud level; r=Honza.
Now that the JsTerm is a React component, we shouldn't
let external consumers have to get the instance in order
to perform some actions on the console input.
We start with the most used actions, setInputValue and getInputValue,
and might extend that in the future.

Differential Revision: https://phabricator.services.mozilla.com/D20685
2019-02-27 10:09:35 +00:00
Gurzau Raul
3ee8fd7ce9 Backed out 5 changesets (bug 1463128) for failing at webconsole/autocomplete.js on a CLOSED TREE.
Backed out changeset 31a85e2ed53e (bug 1463128)
Backed out changeset fcd93f64c934 (bug 1463128)
Backed out changeset ae460b3a30c2 (bug 1463128)
Backed out changeset 97a1eeb8db65 (bug 1463128)
Backed out changeset c504e9730eac (bug 1463128)
2019-02-27 00:19:15 +02:00
Nicolas Chevobbe
6ac4e9955c Bug 1463128 - Expose setInputValue and getInputValue at hud level; r=Honza.
Now that the JsTerm is a React component, we shouldn't
let external consumers have to get the instance in order
to perform some actions on the console input.
We start with the most used actions, setInputValue and getInputValue,
and might extend that in the future.

Differential Revision: https://phabricator.services.mozilla.com/D20685
2019-02-26 14:42:13 +00:00
Patrick Brosset
c662005f08 Bug 1363990 - New pref to beautify HTML code when copying from the inspector; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D21030
2019-02-26 09:33:52 +00:00
Gabriel Luong
4df0394110 Bug 1529845 - Add a destroy for the MarkupContextMenu. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D20783
2019-02-22 00:38:30 -05:00
Gabriel Luong
1c21f54278 Bug 1529364 - Move the markup context menu into a separate module. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D20554
2019-02-20 15:03:38 -05:00