Skip to content

Conversation

@EdmondChuiHW
Copy link

Summary

CDT already does the work in assigning the correct CSS class for links that are in the ignore list:

https://github.com/facebookexperimental/rn-chrome-devtools-frontend/blob/a93a780a69a9a9fc4b744ad818f9e620b6091376/front_end/ui/legacy/components/utils/Linkifier.ts#L487

And it's used in various components:

https://github.com/facebookexperimental/rn-chrome-devtools-frontend/blob/a93a780a69a9a9fc4b744ad818f9e620b6091376/front_end/ui/legacy/components/utils/jsUtils.css#L22-L24

https://github.com/facebookexperimental/rn-chrome-devtools-frontend/blob/a93a780a69a9a9fc4b744ad818f9e620b6091376/front_end/panels/application/components/stackTraceRow.css#L30-L32

This PR adds support to the renderer of Error objects.

Test plan

Before

image

After

image

Upstreaming plan

  • This commit should be sent as a patch to the upstream devtools-frontend repo. I've reviewed the contribution guide.
  • This commit is React Native-specific and cannot be upstreamed.

@EdmondChuiHW EdmondChuiHW merged commit c98a122 into facebook:main Aug 13, 2024
@EdmondChuiHW EdmondChuiHW deleted the dim-ignore-list-stacktrace branch August 13, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants