Commit Graph
83 Commits
Author SHA1 Message Date
Csoregi Natalia ffb037e6bc Backed out changeset d09d8fa3332f (bug 1438979) for failures on browser_webconsole_network_messages_expand_before_updates.js. CLOSED TREE 2019-12-16 15:43:57 +02:00
Nicolas Chevobbe 438370bfc2 Bug 1438979 - Re-enable browser_webconsole_network_messages_expand.js. r=Honza.
The test is split in two to make it easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2019-12-16 10:13:39 +00:00
Csoregi Natalia d27b6fb864 Backed out changeset e1ef71575321 (bug 1438979) for failures on browser_webconsole_stubs_network_event.js. CLOSED TREE 2019-12-16 11:51:18 +02:00
Nicolas Chevobbe 4784d2541e Bug 1438979 - Re-enable browser_webconsole_network_messages_expand.js. r=Honza.
The test is split in two to make it easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2019-12-16 07:57:40 +00:00
Nicolas Chevobbe 78ac5b16fd Bug 1601630 - Remove WebConsoleUI evaluateJSAsync. r=jlast.
This method was directly using the main target console front
to evaluate something, which could cause issue in a fission
world.
The function is moved to the WebConsole class, and calls commands
evaluateJSAsync, in which we retrieve the appropriate front
given the given options object (e.g. if there's a selecteObjectActor,
we'll talk to the target that hold the actor).

Differential Revision: https://phabricator.services.mozilla.com/D55986
2019-12-06 08:29:20 +00:00
Nicolas Chevobbe 8c9f69ba14 Bug 1576568 - Enable editor mode everywhere. r=Honza.
The focus previous element function needed to be modified
in order to not find non-visible elements.

Differential Revision: https://phabricator.services.mozilla.com/D49729
2019-10-21 08:39:42 +00:00
Nicolas Chevobbe f28da82b5c Bug 1589001 - Rename (web)consoleClient variables and properties to webConsoleFront. r=Honza.
The webconsole actor now has an associated front for some
time, but the naming of variables and properties didn't
reflect that (most weren't updated and were still calling
it a client).
This patch tries to rename all those variables so it's more
obvious we're dealing with an actual front.

Differential Revision: https://phabricator.services.mozilla.com/D49401
2019-10-17 10:16:46 +00:00
Armando Ferreira ab0447079c Bug 1523868 - Add a doorhanger options menu in console toolbar - Part 1.
Differential Revision: https://phabricator.services.mozilla.com/D47979
2019-10-15 17:04:30 +00:00
Dorel Luca b9570dcb8c Backed out changeset 03643a08fe82 (bug 1523868) for Node failure in Unexpected token y in JSON at position 0. CLOSED TREE 2019-10-15 18:42:20 +03:00
Armando Ferreira 736a79a179 Bug 1523868 - Add a doorhanger options menu in console toolbar - Part 1.
Differential Revision: https://phabricator.services.mozilla.com/D47979
2019-10-15 15:31:32 +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
Jason Laster 4e531d838e Bug 1581614 - Extract service container. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D46055
2019-09-20 19:16:42 +00:00
Gurzau Raul 731af525f3 Backed out changeset 93a5266e6f1c (bug 1581614) for devtools failures e.g browser_browser_toolbox.js 2019-09-20 04:16:23 +03:00
Jason Laster b19223b0dd Bug 1581614 - Extract service container. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D46055
2019-09-19 23:46:25 +00:00
Mark Banner b082cd5a99 Bug 1579452 - Enable ESLint rule no-async-promise-executor on disabled locations for devtools. r=jlast
Depends on D45010

Differential Revision: https://phabricator.services.mozilla.com/D45999
2019-09-17 17:50:23 +00:00
Nicolas Chevobbe 7fa8100b9c Bug 1578675 - Make the Browser Toolbox console UI similar to Browser Console's one. r=Honza.
We are now showing the "Show content messages" checkbox, as well
as removing the "Persist logs" one.

Differential Revision: https://phabricator.services.mozilla.com/D44637
2019-09-06 13:38:37 +00:00
Jason Laster b79fece154 Bug 1575240 - inspect(x) should show x in the appropriate panel. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D42747
2019-09-03 20:57:40 +00:00
Nicolas Chevobbe 6943495490 Bug 1576949 - Clicking the Editor Run button when input has text selection only evaluate selected text. r=Honza.
This is done by modifying the evaluateExpression action,
where we retrieve the selection of the full input.

Differential Revision: https://phabricator.services.mozilla.com/D43750
2019-08-30 08:55:09 +00:00
Noemi Erli f17fe0a77f Backed out 2 changesets (bug 1575240) for failures in browser_inspector_menu-06-other.js CLOSED TREE
Backed out changeset 0667a378d933 (bug 1575240)
Backed out changeset 74fce607d8a7 (bug 1575240)
2019-08-30 00:35:13 +03:00
Jason Laster 736bc2d1b5 Bug 1575240 - inspect(x) should show x in the appropriate panel. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D42747
2019-08-29 20:40:14 +00:00
Dorel Luca 6f5663a35d Backed out changeset d870fdbf200f (bug 1575240) for Devtools failures on devtools/client/webconsole/test/browser/browser_jsterm_inspect.js. CLOSED TREE 2019-08-29 05:55:23 +03:00
Jason Laster af098f11d6 Bug 1575240 - inspect(x) should show x in the appropriate panel. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D42747
2019-08-29 00:31:46 +00:00
Dorel Luca bfb2a4614f Backed out changeset 3853d8979a55 (bug 1575240) for Devtools on devtools/client/webconsole/test/browser/browser_jsterm_inspect.js 2019-08-28 22:08:26 +03:00
Gabriel Luong 8bbec40020 Bug 1568157 - Part 4: Replace toolbox.walker with the contextual WalkerFront. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D40317
2019-08-28 11:54:42 +00:00
Jason Laster 6da26391d6 Bug 1575240 - inspect(x) should show x in the appropriate panel. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D42747
2019-08-28 12:04:49 +00:00
Gabriel Luong 20052248e9 Bug 1568157 - Part 3: Replace toolbox.highlighter with the contextual HighlighterFront. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D40316
2019-08-27 19:13:45 +00:00
Alexandre Poirot 680b2ec9e1 Bug 1570242 - Rename target to currentTarget in WebConsole codebase. r=nchevobbe,yulia
Do that to better highlight that the target can change over time.

Differential Revision: https://phabricator.services.mozilla.com/D41798
2019-08-22 08:10:13 +00:00
Dorel Luca d2d5728ece Backed out 3 changesets (bug 1570242) for devtools failure in /webconsole/test/node/components/webconsole-wrapper.test.js. CLOSED TREE
Backed out changeset 854e62f7f1ae (bug 1570242)
Backed out changeset 304366165980 (bug 1570242)
Backed out changeset a213b28dd40f (bug 1570242)
2019-08-21 13:13:15 +03:00
Alexandre Poirot 93a50db401 Bug 1570242 - Rename target to currentTarget in WebConsole codebase. r=nchevobbe,yulia
Do that to better highlight that the target can change over time.

Differential Revision: https://phabricator.services.mozilla.com/D41798
2019-08-21 09:47:53 +00:00
Nicolas Chevobbe 8141e2638d Bug 1572442 - Refactor how we create Console's network data provider. r=Honza.
The DataProvider is what allows us to use the Netmonitor
components. The way it was created before was non optimal,
as it were inside an enhancer, and was then attached to
a proxy.
As we may now have multiple proxies, this could cause
some issue.
So we take this as an opportunity to create the DataProvider
in the WebConsoleWrapper (where live the actions we need for
the provider), and remove the now unused function on the
WebConsoleConnectionProxy.

Differential Revision: https://phabricator.services.mozilla.com/D41354
2019-08-19 14:53:52 +00:00
Nicolas Chevobbe 290ba5cb21 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300
2019-08-19 12:48:16 +00:00
Nicolas Chevobbe b71ffcdf97 Bug 1441711 - Create multiple proxies when in Fission Browser Console. r=ochameau.
When opening the Browser Console, if the browser toolbox fission pref
is enabled, we create a WebConsoleConnectionProxy for each process.
This allow us to not start the ContentProcessMessages listener (that
uses ContentProcessMessagesForward), but directly connect to the content
process, to get fully inspectable console message, from the Browser Console.

We keep the this.proxy reference in WebConsoleUI to represent the "main" target
proxy, and we add an `additionalProxies` property that represent proxies
for other targets we connect to (e.g. content process targets).
We then have a function to list all the proxies we're handling, in order to
be able to do tasks on all of them (e.g. clearing cache, network message, ...)

We also take this as an opportunity to add a `evaluateJSAsync` at the
WebConsoleUI level so callsites don't retrieve the proxy.webConsoleClient
themselves.

Differential Revision: https://phabricator.services.mozilla.com/D40786
2019-08-08 13:23:03 +00:00
Nicolas Chevobbe 39a051c0ff Bug 1570997 - Remove fetchCacheDescriptor trait. r=jdescottes.
This was added in Firefox 61, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D40543
2019-08-06 15:41:18 +00:00
Nicolas Chevobbe d679a0d4a9 Bug 1570985 - Don't create an ObjectClient from ConsoleTable. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D40589
2019-08-06 15:15:09 +00:00
Alexandre Poirot 95b87be852 Bug 1569690 - Use target instead of thread as greatest common divisor. r=loganfsmyth,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39720
2019-08-05 10:53:52 +00:00
Nicolas Chevobbe ba939ca6ed Bug 1465149 - Remove old jsterm code. r=jdescottes.
Since we modified the Editor to be accessible, we got
the green light to remove the old JsTerm code.
This means we can remove the preference for the codeMirror
input, and clean the WebConsole react app a bit.
This also mean we can avoid running a lot of our tests
twice.
Finally, some test helpers had to take argument with
specific shape to work against old jsterm (e.g. checkInputCompletionValue),
that we can now remove to make tests easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D40172
2019-08-04 09:38:25 +00:00
Nicolas Chevobbe 381d77db18 Bug 1570987 - Remove unsused getWebConsoleClient from serviceContainer. r=gl.
Differential Revision: https://phabricator.services.mozilla.com/D40428
2019-08-02 14:30:11 +00:00
Nicolas Chevobbe 80d2f1cc80 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-02 11:50:28 +00:00
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
arthur.iakab 78a31988a9 Backed out changeset ec73bc656bd3 (bug 1569690) for causing debugger failures CLOSED TREE 2019-08-02 11:02:29 +03:00
Alexandre Poirot ca42e8fc6f Bug 1569690 - Use target instead of thread as greatest common divisor. r=loganfsmyth,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39720
2019-07-31 06:37:41 +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
Alexandre Poirot 383a8cddbe Bug 1566421 - Ensure that actions.updateRequest resolves only once the action is processed. r=nchevobbe
The code callng action.updateRequest, in FirefoxDataProvider, expects the updateRequest action
to be processed once the returned promise is resolved. Otherwise it may spawn
duplicated requestData requests.

Differential Revision: https://phabricator.services.mozilla.com/D39153
2019-07-29 09:18:14 +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
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
yulia 7eba825d59 Bug 1559819 - rename threadClient to threadFront; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32848
2019-07-11 09:45:32 +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