Open
Bug 1982828
Opened 9 months ago
Updated 8 months ago
Opening source for `data:text/html,x -> <script>1</script>` displays source content error
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(Not tracked)
NEW
People
(Reporter: bomsy, Unassigned)
References
(Depends on 2 open bugs)
Details
Splitting this out of Bug 1982001.
STR
- Go to url
data:text/html,x -> <script>1</script> - Open the debugger
- Reload the page
- Collapse the source tree item (Note: source tree item is broken - this should be fixed by Bug 1982001)
- Click the source tree item to open the source
Actual Result
This error is displayed
Error loading this URI: sourceContents failed: Error: Protocol error (Error): Could not load the source for <script>1</script>.
Error: Failed to fetch <script>1</script>. Code 2152857618.
Stack: onResponse@resource://devtools/shared/DevToolsUtils.js:613:16
onStopRequest@resource://gre/modules/NetUtil.sys.mjs:124:18
Line: 613, column: 16 from: server0.conn1.watcher2.process10//source142 (resource://devtools/server/actors/source.js:552:13)
Expected Result
The source content x -> <script>1</script> should be displayed.
Comment 1•8 months ago
|
||
We most likely already have a bug to avoid leaking the JS exception in the debugger UI, so this bug should really be focused on trying to properly handle such a source.
Severity: -- → S3
Priority: -- → P3
Comment 2•8 months ago
|
||
Note that we have Bug 1834721 to have dedicated UI when we can't open a source instead of putting the error message in the source editor
Depends on: debugger-errors
You need to log in
before you can comment on or make changes to this bug.
Description
•