Commit Graph
25 Commits
Author SHA1 Message Date
Arun Kumar Mohan d9a6da5ba8 Bug 1554901 - Refactor onInputKeyDown method to remove disabled complexity eslint rule. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39488
2019-07-27 14:59:36 +00:00
Armando Ferreira 2b4b284157 Bug 1558201 - Disable history navigation with Arrow keys in Editor mode. r=nchevobbe
In editor mode, there are dedicated icons to history navigation  (See Bug [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1558198 | 1558198 ]]).
Removing the arrow up/down history navigation which is troublesome when working with multi-line snippets.

Differential Revision: https://phabricator.services.mozilla.com/D39262
2019-07-26 18:23:59 +00:00
Nicolas Chevobbe 81db9f8b46 Bug 1569190 - Remove JSTerm outputNode getter. r=jdescottes.
The reference isn't used within the component itself,
and is available in the webConsoleUI.
Callsites are updated.

Differential Revision: https://phabricator.services.mozilla.com/D39505
2019-07-26 16:39:08 +00:00
Nicolas Chevobbe 064fc18bff Bug 1569187 - Move blur event listeners outside of JSTerm. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39510
2019-07-26 15:50:07 +00:00
Nicolas Chevobbe 54543aef96 Bug 1553180 - Move outputNode clear from JsTerm to webconsoleUI. r=jdescottes.
There's no reason it should be JsTerm's responsability
to clear the output node.

Differential Revision: https://phabricator.services.mozilla.com/D39508
2019-07-26 15:49:53 +00:00
Nicolas Chevobbe d34a531e46 Bug 1568439 - Move webconsole-l10n to utils/l10n. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39159
2019-07-24 11:11:34 +00:00
Alexandre Poirot 3f55d2085a Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39052
2019-07-24 08:35:48 +00:00
Alexandre Poirot 633271ffe8 Bug 1568185 - Remove unused bindObjectActor argument from console actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39051
2019-07-24 08:35:41 +00:00
Bogdan Tara 3423c8474d Backed out 2 changesets (bug 1568203, bug 1568185) for ES lint failure on eval-with-debugger.js CLOSED TREE
Backed out changeset adc394f833f9 (bug 1568203)
Backed out changeset 46c3a1fdc706 (bug 1568185)
2019-07-24 11:24:51 +03:00
Alexandre Poirot f345168351 Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39052
2019-07-24 07:48:01 +00:00
Alexandre Poirot b46a73620c Bug 1568185 - Remove unused bindObjectActor argument from console actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39051
2019-07-24 07:47:55 +00:00
Armando Ferreira b06f32a5f3 Bug 1558198 - Add history navigation buttons in Editor toolbar. r=nchevobbe
Adding History navigation to Editor toolbar

Differential Revision: https://phabricator.services.mozilla.com/D38951
2019-07-23 18:36:01 +00:00
Nicolas Chevobbe c489070ddb Bug 1567370 - Add a close button to the Editor Toolbar. r=Honza.
The button display the same icon that will be used
in the console input when in inline-mode to toggle
the editor mode, active.
A test is added to ensure the button works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D38622
2019-07-19 14:10:06 +00:00
Nicolas Chevobbe 99d1b11f63 Bug 1567167 - Remove webConsoleClient getter from JSTerm. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D38615
2019-07-19 08:29:54 +00:00
Nicolas Chevobbe f2889e192d Bug 1567167 - Remove clearNetworkRequests from JsTerm destroy function. r=jdescottes.
This shouldn't be JSTerm's responsability to call
this function. Furthermore, the function clear
some references in the WebConsoleFront, which are
going to be destroyed anyway.

Differential Revision: https://phabricator.services.mozilla.com/D38614
2019-07-19 08:28:48 +00:00
Nicolas Chevobbe 319b6d8fbf Bug 1567167 - Remove copyObject function from JSTerm. r=jdescottes.
The function is only called from the context-menu,
where we already have all the references we need.
So we can move the function code directly in the
menu item callback.

Differential Revision: https://phabricator.services.mozilla.com/D38613
2019-07-19 08:28:24 +00:00
Nicolas Chevobbe bec1f2e8d5 Bug 1567167 - Remove unused gSequenceId function in JSTerm . r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D38612
2019-07-19 08:27:59 +00:00
Nicolas Chevobbe db0b64398f Bug 1554877 - Make JsTerm editor resizable. r=Honza.
We add a GridElementWidthResizer to handle the editor width.
The width is then persisted in a pref.
A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D37687
2019-07-18 05:51:44 +00:00
Nicolas Chevobbe d2bf50f8de Bug 1534706 - Don't focus ConfirmDialog when displaying it. r=Honza
Some people found that the ConfirmDialog was getting into their
way when typing into the console, as it was stealing the focus.
This patch fixes this by not focusing the ConfirmDialog when
we show it, so the user can still type.
This means that we now handle the dialog confirm and dismiss from
JSTerm, when the former is displayed.

Since it wasn't clear how you could close the popup, we add a close
button that makes it very obvious.

This means we can drop the key handler in the dialog as the jsterm
is always focused.
We also simply remove the feature to open the MDN link on `?` key
stroke as it's not discoverable and was the only part of the
panel where you could do such thing.

Existing tests are adapted and extended to cover the new behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D36174
2019-07-09 12:28:38 +00:00
Nicolas Chevobbe a597824b4b Bug 1558248 - Don't clear the completion text when it starts with the typed letters. r=fvsch.
We were clearing the completion text all the time to prevent
a visual glitch while typing (See Bug 1491776). But since we
are now waiting for 75ms before calling the autocomplete
function (which triggers the autocompletion text update), we
have a flash of the completion text, which isn't ideal.
In this patch, we check if the typed letters match the begining
of the completion text, and if they do, we don't clear the
completion text.
In the same time, we set the completion text in absolute position
so it doesn't jump when the new letter is added in the CodeMirror
document.
Finally, we change how the Editor pipe events from CodeMirror to
include parameters, so we can use them in JsTerm.

Differential Revision: https://phabricator.services.mozilla.com/D36163
2019-07-07 10:38:08 +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
Bryan Kok 1e624665a3 Bug 1519315 - Display CodeMirror's gutter in console input when devtools.webconsole.input.editor is true. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D33995
2019-06-28 16:27:55 +00:00
Nicolas Chevobbe fd515fe424 Bug 1519312 - Render the console input to the left of the panel when editor preference is true; r=Honza.
When the editor preference is true, a CSS class is added to
the panel that allow us to shift the layout to a CSS Grid, where
the input panel is on the left and the output on the right.

A toolbar is added to be able to execute an expression when in
editor mode.

Differential Revision: https://phabricator.services.mozilla.com/D17096
2019-06-27 13:13:32 +00:00
Nicolas Chevobbe 0c025c858a Bug 1560320 - Dismiss autocomplete on Ctrl+A on OSX. r=Honza.
Ctrl + A moves the cursor to the beginning of the line,
so we need to dismiss autocomplete.
A test case is added to make sure this behaves as
expected.

Differential Revision: https://phabricator.services.mozilla.com/D35573
2019-06-27 11:48:34 +00:00
Armando Ferreira a3c043f6be Bug 1522104 - Re-organise devtools/client/webconsole/components/ folder. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D35932
2019-06-26 09:19:54 +00:00