Bug 1424863 Comment 16 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to sankalp.sans from comment #15)
> Hi folks, I'd be happy to take up this issue. I actively want this fixed (recently switched all my dev from Chrome to Firefox, and realized this to be a pain point)
> 
> @Gabriel could you assign this to me?

Hi!

You're welcome to fix this. I've assigned it to you.

There's a duplicate bug 1619894 which mentions the unwanted line breaks occur only after the Computed panel is visible at least once. That unexpected interaction is a good place to start looking for the root cause. 

The `StyleInspectorMenu` is where the copying action is done: https://searchfox.org/mozilla-central/source/devtools/client/inspector/shared/style-inspector-menu.js

If you haven't done so already, check out this resource on getting the code and getting started: https://docs.firefox-dev.tools/
(In reply to sankalp.sans from comment #15)
> Hi folks, I'd be happy to take up this issue. I actively want this fixed (recently switched all my dev from Chrome to Firefox, and realized this to be a pain point)
> 
> @Gabriel could you assign this to me?

Hi!

You're welcome to fix this. I've assigned it to you.

There's a duplicate bug 1619894 which mentions the unwanted line breaks occur only after the Computed panel is visible at least once. That unexpected interaction is a good place to start looking for the root cause. 

Copied over the steps to reproduce:

> 1. Open the inspector.
> 2. Make sure to set the 3rd pane to "computed"
> 3. Highlight text in the rules view and copy it to clipboard
> 4. Paste the copied text into an editor.

The `StyleInspectorMenu` is where the copying action is done: https://searchfox.org/mozilla-central/source/devtools/client/inspector/shared/style-inspector-menu.js

If you haven't done so already, check out this resource on getting the code and getting started: https://docs.firefox-dev.tools/

Back to Bug 1424863 Comment 16