This is a follow-up of Bug 1486870.
In this patch we make sure that copying a
stacktrace containing a group, i.e. frames
that were grouped together because they're
part of the same library/framework, are copied
as expected to the clipboard.
There was new lines added between each frames
of the group, because they're in divs.
To fix that, we remove the display: block that
was set for group frames (so they're display: contents,
like the regular frames), and place them in a
grid with only one column (to take the whole horizontal
space).
A br is added in the group description to add a new line
after it.
A test is added to ensure this works as expected.
Differential Revision: https://phabricator.services.mozilla.com/D17817
The Frames component changed significantly on Github, which means
we need to do some adjustments in the SmartTrace component (pass
the `selectable` prop, change CSS rules, …).
For now, we also hide the Framework icons as we need to find a way
to properly share the underlying CSS from the debugger (See
https://github.com/devtools-html/debugger.html/issues/7782).
Differential Revision: https://phabricator.services.mozilla.com/D17376
We used to re-render the component each time the sourcemapService
would give us a result for a single frame.
Combined with the frame grouping system, this could trigger
weird re-layout and might confuse user.
What's done in this patch is that when mounting, if a sourcemapService
is passed, we don't render anything, and start a race between
a delay of 300ms and the sourcemap results for *all* the frames.
If we don't have the original frames within 300ms, we render the
bundled frames. But, whenever we have the sourcemap results, we
trigger a re-render of the component.
This gives some room for the sourcemapService to fetch map files
without re-ordering things on the screen.
A test case is added to ensure we have the expected renders
when the sourcemap service takes more time than the inital delay.
We already have a case where the sourcemap service resuls are
received before the initial delay.
We also take this as an opportunity to fix minor CSS issues.
Differential Revision: https://phabricator.services.mozilla.com/D12037
The component is wrapping the `Frames` component from the debugger
in order to have access to frames grouping.
It also handles sourcemaps, since the debugger component
does not by itself.
Tests are added to ensure the component behaves as expected.
Depends on D11602
Differential Revision: https://phabricator.services.mozilla.com/D11603