Skip to content

Long source file URLs overflow the source code error overlay #6146

Description

@canova

I noticed this while fixing #6144.

When we fail to fetch the source code of a url and the error overlay is shown in the bottom box, a very long file URL breaks the error layout. Generated JS bundles (for example Google's url in this example below) can have URLs that are thousands of characters long with no natural break points.

Here's an example profile: https://share.firefox.dev/4p4HoPz
This is how it looks currently:

Image

Ideally the error should stay in the error overlay bounds and should be shortened if necessary.

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

Labels

source viewRelated to the source view feature

Type

Fields

Priority

None yet

Jira

None yet

Severity

None yet

Estimate

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions