Commit Graph
26 Commits
Author SHA1 Message Date
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Nicolas Chevobbe 53f5c8f278 Bug 1815646 - [devtools] Remove odd/even classes on ConsoleTable <tr>. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D169183
2023-02-09 10:01:05 +00:00
Christian Sonne ec93963f4a Bug 1572777 - Make output of console.table() use an actual table, so it can be pasted into a spreadsheet r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D144513
2023-02-03 13:40:47 +00:00
Alexandre Poirot 59fe57c052 Bug 1793396 - [devtools] Use absolute URLs in all usages of loader.lazyRequireGetter. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158489
2022-10-03 18:57:13 +00:00
Alexandre Poirot 465fac9684 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/webconsole. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158380
2022-09-30 15:17:40 +00:00
Tooru Fujisawa 33c166cd04 Bug 1766984 - Do not remove 3rd and remaining parameters when falling back to log from console.table. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D145138
2022-05-02 11:45:18 +00:00
Doug Thayer 36900d2f1f Bug 1753177 - Use a virtualized list for webconsole output r=nchevobbe
This should be ready to review. However, I will include a big caveat that I
tried to do things the Reacty way, and it felt really awkward. Notably, I used
a React functional component, because they seem to be recommended as the
Right Way to do things, but because of all the state we need to keep track of,
as well as just the props that we don't want to lexically access because then
they can be stale, it felt really wrong. Guidance is welcome.

However, the core logic should be ready for review, so focus on that, and let
me know if I need to move anything around to make it more palatable.

Depends on D138030

Differential Revision: https://phabricator.services.mozilla.com/D138031
2022-04-11 02:50:46 +00:00
Nicolas Chevobbe 9691f6d2e6 Bug 1454419 - [devtools] Rename new-consoletable* to consoletable. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D142657
2022-04-04 06:04:17 +00:00
Nicolas Chevobbe 45e20cc0c1 Bug 1669956 - [devtools] Update require paths to reps modules. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93354
2020-10-14 11:24:17 +00:00
Jason Laster 3694ec93d0 Bug 1622996 - Refactor devtools codebase to use optional chaining (automated changes). r=jdescottes
Depends on D67084

Differential Revision: https://phabricator.services.mozilla.com/D67537
2020-03-19 21:13:38 +00:00
Mark Banner 1cc76add79 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509
2020-03-08 21:45:16 +00:00
Nicolas Chevobbe b8d30474da Bug 1597955 - Remove ConsoleTable methods for pre-Firefox 72 backward compatibility. r=rcaliman.
This removes all the now unnecessary props, methods and functions
we had to support pre-72 servers.

Differential Revision: https://phabricator.services.mozilla.com/D59083
2020-01-08 11:30:37 +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 bf96766783 Bug 1067710 - Bump console.table columns limit to 21 to match Chrome. r=Honza.
Increasing the number of columnns highlighted some issues:
- Some element could be off-screen, the grid-template-columns
  needed to be adjusted
- headers could be cut-off, we add a title on the element to
  have the full content in a tooltip
- properties that are not defined were displayed as "undefined",
  which is not really true, and take a lot of space. We render
  them as an empty cell in such case now.

A test is added to check the max-column limit.

Differential Revision: https://phabricator.services.mozilla.com/D54260
2019-11-26 13:21:12 +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 30153880c1 Bug 1595594 - Add support for typed arrays to console.table. r=Honza.
In order to render a table, we first check that console.table is
called with data that can be displayed in a table. Until now, we
were missing all the typed arrays.
This revealed some smaller issues:
- BigInt64Array were not marked as typed arrays on the server.
- Generating the repeatId for a message containing BigInts would
  throw because BigInts can't be serialized.

We add test cases for all the typed array, and we take this opportunity
to add a test case to ensure object insides table cells can be expanded.

Differential Revision: https://phabricator.services.mozilla.com/D53155
2019-11-19 13:37:07 +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
Oana Pop Rus ce530ebdd0 Backed out 2 changesets (bug 1584973) for devtools node failure on a CLOSED TREE
Backed out changeset c06273b25769 (bug 1584973)
Backed out changeset e63ea229519d (bug 1584973)
2019-10-02 02:30:42 +03:00
Nicolas Chevobbe 70ece40caf Bug 1584973 - Always lazy load Reps bundle. r=Honza.
Depends on D47728

Differential Revision: https://phabricator.services.mozilla.com/D47729
2019-10-01 09:36:51 +00:00
Nicolas Chevobbe 5b250d417e Bug 1577756 - Run browser_console_webconsole_console_api_calls.js can run with both Fission enabled and disabled. r=Honza.
We also add a few console API calls, as well as pass a second
object parameter for the methods that support it, so we can
check that the content object are well displayed in the
Browser Console.
As we add a new check for console.table, I realized that
hiding and showing a consoleTable component would trigger a
new request to the server, even if we already have the table
data at hand.
I fixed this by only trying to get data from the server if
we don't have them already.

Differential Revision: https://phabricator.services.mozilla.com/D44159
2019-09-02 12:29:47 +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
Nicolas Chevobbe 39eeb06393 Bug 1565781 - Fix ConsoleTable with nested holey array. r=Honza.
A test is added to ensure this is fixed properly.
We also fix the Array previewer to properly return
undefined for unknown array properties, rather than null.

Differential Revision: https://phabricator.services.mozilla.com/D38467
2019-07-18 12:04:42 +00:00
Nicolas Chevobbe 567783311c Bug 1563914 - Fix ConsoleTable with invalid headers. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D37164
2019-07-09 08:47:58 +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
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