Commit Graph
29 Commits
Author SHA1 Message Date
Brian Hackett 46d73b286c Bug 1602489 - Basic eager evaluation support, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D56393
2019-12-12 21:48:03 +00:00
Ciure Andrei 1267293248 Backed out changeset b4eea71fe5b1 (bug 1291192) for causing browser_webconsole_filter_by_regex_input.js to permafail CLOSED TREE 2019-12-12 13:30:41 +02:00
Harald Kirschner e304c65061 Bug 1291192 - Exclude-mode filtering for Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56512
2019-12-12 10:06:39 +00:00
Ciure Andrei c89c2268b5 Backed out changeset c6f80ffff41b (bug 1291192) for causing browser_webconsole_filter_by_regex_input.js to permafail CLOSED TREE 2019-12-12 12:02:51 +02:00
Harald Kirschner bbb5b11bc6 Bug 1291192 - Exclude-mode filtering for Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56512
2019-12-11 16:17:28 +00:00
Edward Billington 26588c3216 Bug 1579663 - Allow data url background-image in styled console logs r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55376
2019-12-04 09:31:54 +00:00
Nicolas Chevobbe d38e3fae98 Bug 1579090 - Support ObjectFronts in WebConsole. r=Honza.
Since we may now have ObjectFronts in console messages as
well as in evaluation results, we need to make the webconsole
consume those fronts.

And because we have ObjectFronts, we can now avoid using the
DebuggerClient to release the actors, and simply call front.release.
This simplifies how we track created object, since we only need
to release "root" objects, which will also cause all the sub-fronts
to be released as well. Sadly, this was causing some test failures
in mochitests because some objects were released while the connection
was closed, so we now emit an event when all the actors are released,
which we track in tests to wait until everything is over.

As a side effect, we need to change how we handle stubs for
our tests, since fronts have cycical references and can't
be serialized directly. In order to handle that, we serialize
all front as a plain object with a `_grip` property, containing
the object grip. In the stub file, we don't expose the grips
directly, but Maps that contain those stubs "rehydrated": when
a _grip object is encountered, it's turned back into a front.

Differential Revision: https://phabricator.services.mozilla.com/D54509
2019-12-04 09:03:53 +00:00
Nicolas Chevobbe bdc72c0aa9 Bug 1600230 - Allow running mocha tests on Windows. r=Honza.
Since __dirname returns an OS sensitive paths,
the require-hacker was not finding modules
because of mixed usage of slashes and anti-slashes.
This is fixed by forcing the path in getModule
to only use slashes.

Differential Revision: https://phabricator.services.mozilla.com/D55241
2019-11-29 10:43:08 +00:00
Nicolas Chevobbe 1175e2f5b3 Bug 1326182 - Send all the console.table items in the console message. r=Honza.
This allows us to not have to reach for the server
again from the client to get all the data we need
to render the table.

We still need to keep the old function to handle
connections to older servers. We'll use Bug 1597955
in Firefox 74 to clean the bits we don't need anymore.

A test is added to ensure the bug is fixed and we don't
regress; stubs are updated.

Differential Revision: https://phabricator.services.mozilla.com/D53962
2019-11-22 09:48:58 +00:00
Nicolas Chevobbe 7e05ff6da2 Bug 1595012 - Remove WebConsoleFront evaluateJS. r=jdescottes.
The function is only used in tests, which is a bit concerning
as we should test the actual function being used (evaluateJSAsync).

Differential Revision: https://phabricator.services.mozilla.com/D52331
2019-11-10 11:47:45 +00:00
Nicolas Chevobbe a76fdae444 Bug 1572667 - Re-enable stubs tests. r=Honza.
The tests are rewritten so we only have one test per
stub type. The stubs can be re-generated by passing
the --setenv WEBCONSOLE_STUBS_UPDATE=true arg when running
mach test.
We take this as an opportunity to not store the Messages
directly, but we generate them programmatically, which would
still reveal a bug as most of the test import messages.
Since we're doing that, some messages aren't localized, so
we need to add them to the L10N fixtures we have (which is
revamped a bit as getStr was getting too complex).

Differential Revision: https://phabricator.services.mozilla.com/D51596
2019-11-08 12:06:42 +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
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 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 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
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
Nicolas Chevobbe 31bb7f3d0a Bug 1584973 - Always lazy load Reps bundle. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D47729
2019-10-02 08:05:57 +00:00
Nicolas Chevobbe bf187247d6 Bug 1574791 - Don't emit a warning message when enabling CSS warnings. r=Honza.
There was a warning message displayed to indicate that
the stylesheets where parsed again for checking errors,
and that in order to see errors for CSS modified in
Javascript, the tab should be reloaded.
The jargon used there was confusing, and also this was
more a notice than an actual warning message.
In order to remove confusion, we don't emit this message
anymore, but add a title to the CSS filter button when
it's disabled. The sentence is reworded to be simpler
to understand.

Differential Revision: https://phabricator.services.mozilla.com/D44118
2019-08-30 08:57:50 +00:00
Nicolas Chevobbe f0ef51ac2a Bug 1558417 - Add onboarding UI for Editor. r=Honza.
The onboarding UI is displayed on top of the Editor.
A dismiss button hides it forever (this is handled via
a pref that is set to false when clicking the button).

We take this as an opportunity to polish the Editor UI/wording
a bit.

Differential Revision: https://phabricator.services.mozilla.com/D43621
2019-08-28 15:42:36 +00:00
Gurzau Raul 3e14510bdc Backed out changeset 9aa911cc3fcf (bug 1558417) for failing at browser_jsterm_editor_toolbar.js on a CLOSED TREE. 2019-08-28 17:12:00 +03:00
Nicolas Chevobbe d34a3453e6 Bug 1558417 - Add onboarding UI for Editor. r=Honza.
The onboarding UI is displayed on top of the Editor.
A dismiss button hides it forever (this is handled via
a pref that is set to false when clicking the button).

We take this as an opportunity to polish the Editor UI/wording
a bit.

Differential Revision: https://phabricator.services.mozilla.com/D43621
2019-08-28 11:47:49 +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
Arun Kumar Mohan 75a1ffedec Bug 1554924 - Simplify Mocha test setup to remove disabled eslint complexity. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D41458
2019-08-21 05:42:12 +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
jaril ea67ba988e Bug 1452920 - Clean up WebConsoleActor events and responses. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D40387
2019-08-19 06:57:42 +00:00
Nicolas Chevobbe a23e6858b0 Bug 1572008 - Re-organize WebConsole client tests folder. r=Honza.
- mochitest folder is renamed browser.
- unit folder is rename xpcshell.
- all the file and folder for mocha are put in a node folder.

We take this as an opportunity to revist our stub-generating
mochitests.
Previously we had 2 tests for each kind of stubs, one for check,
the other one for updating.
It was not ideal when you wanted to update all the stubs at once
because you add either to mention every 5 files, or unskip the
update test files.
We now merge the update and the check files in a single test.
By default, the test that the stubs are up to date, and if you
pass the --setenv WEBCONSOLE_STUBS_UPDATE=true param, it will
update the stubs.
This allow us to move the function that actually generate the stub
in the test file, and have a helper file for multi-purpose functions.
Because these tests are failing on TRY, let's disabled them so we
can land the test re-organization (we'll re-enable them in Bug 1572667).

Differential Revision: https://phabricator.services.mozilla.com/D41344
2019-08-09 09:54:41 +00:00