Copy Location should support css sourcemaps
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(firefox120 fixed)
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: tajinder.gill, Assigned: nchevobbe)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0
Steps to reproduce:
In the rules part of the Inspector on a site with CSS sourcemaps enabled and "Show original sources" enabled. Hover over the source link and choose "Copy Location".
Actual results:
The location of the rendered css file is copied.
Expected results:
If "Show Original Sources" is enabled this arguable should copy what is displayed which is the source file path. This isn't the case however the rendered file path is always copied. If this isn't desirable then "Copy Source Location" field should be added as this is a common use case for developers.
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
The context menu is handled in https://searchfox.org/mozilla-central/rev/479f4762b8c537892269dbf4442dd33cc01a525c/devtools/client/styleeditor/StyleEditorUI.sys.mjs#807-811
#copyUrl = () => {
if (this.#contextMenuStyleSheet) {
lazy.copyString(this.#contextMenuStyleSheet.href);
}
};
Thank you for the enhancement suggestion.
Setting as NEW so the developing team can have a look.
Comment 3•1 year ago
|
||
STRs:
- go to MDN
- open style editor
- make sure "Show original sources" is checked
- open inspector
- right click on any css link pointing to _themes.css
- copy source location
Expected result: should copy the linl to _themes.css
Actual result: copies a link to the generated file
Note that in the style editor right clicking on the file and using Copy URL copies the right URL.
Assignee | ||
Comment 4•1 year ago
|
||
Copy whatever URL is being displayed to the user.
Updated•1 year ago
|
Comment 6•1 year ago
|
||
bugherder |
Description
•