Closed Bug 1824910 Opened 2 years ago Closed 2 years ago

Display inconsistency of folder & file

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox114 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: erosman, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

Attached image sourceURL1.png

As per attached screenshots, Dev Tools displays files as decoded but folders as encoded.

Example:

//# sourceURL=moz-extension://f5dc...3411/userscript/IMDb%20Scout%20Mod/IMDb%20Scout%20Mod.user.js

There is also a consideration with displaying http/s URLs as a sub folder of https:/.

Example:

//# sourceURL=moz-extension://f5dc...3411/userscript/IMDb%20Scout%20Mod/https://code.jquery.com/jquery-3.5.1.min.js

- Ubuntu 22.10 Wayland, Nightly 113.0a1 (2023-03-27) (64-bit)

Attached image sourceURL2.png

Note https:/ folder

Attached image sourceURL3.png

Note https:/ folder

Severity: -- → S3
Priority: -- → P3
Attached image sourceURL4.png

Another example with Unicode characters

The issue for non-decoded folder can be visible in https://firefox-devtools-debugger-sources-tree.glitch.me/
The issue for folder containing urls is different, we should probably have a dedicated bug for it

The issue for folder containing urls is different, we should probably have a dedicated bug for it

Split to bug 1829460

Summary: Display inconsistency of sourceURL folder & file → Display inconsistency of folder & file

The issue for non-decoded folder can be visible in https://firefox-devtools-debugger-sources-tree.glitch.me/

Updated the title as it is not limited to sourceURL

We were decoding groups and files source items label,
but not folders.
We fix this and take the occasion to use decodeURI instead
of the non-standard unescape.
A test is added to ensure the source tree items are rendered
as expected.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e9234a427470 Bug 1829100 - [devtools] Decode folder name in Debugger Sources Tree. r=devtools-reviewers,bomsy.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch

I have also noticed that the code changes the scheme to Lowercase. e.g.

//# sourceURL=FireMonkey://UserScript/....

// --- or

//# sourceURL=FireMonkey:UserScript/....

will be shown as

firemonkey://
 -- UserScript/....

While it is understandable in case of real schemes (http/https/...), they are not the only possibility.

Attached image sourceURL5.png

sourceURL scheme changed to lowercase

The scheme issue will be moved to Bug 1829460 .

Confirmed fixed in Nightly 114.0a1 (2023-04-25) (64-bit)
Build ID 20230425154313
Ubuntu 23.04

Regressions: 1838671
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: