Closed Bug 1876220 Opened 5 months ago Closed 5 months ago

Copy/paste from inspector has extra line

Categories

(DevTools :: Inspector, defect, P3)

Firefox 122
defect

Tracking

(firefox-esr115 unaffected, firefox122 fixed, firefox123 fixed, firefox124 fixed)

RESOLVED FIXED
124 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox122 --- fixed
firefox123 --- fixed
firefox124 --- fixed

People

(Reporter: tbob13, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0

Steps to reproduce:

Copy/paste from inspector to text editor. Extra line before { that should not be there.

Actual results:

#header a, #header button, #header input
{
outline: 0;
}

Expected results:

#header a, #header button, #header input {
outline: 0;
}

The Bugbug bot thinks this bug should belong to the 'DevTools::Inspector' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Inspector
Product: Firefox → DevTools

Thanks for filing, this was probably introduced when we switched the "highlighter" button between the selector and the opening bracket to a button. Will likely need to switch to a div with role=button.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Keywords: regression
Regressed by: 1844053
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3629891cc2d7
[devtools] Prevent selector highlighter to add new line to clipboard when copy/pasting. r=devtools-reviewers,jdescottes.

Set release status flags based on info from the regressing bug 1844053

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

The patch landed in nightly and beta is affected.
:nchevobbe, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox123 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(nchevobbe)
Attachment #9377640 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • String changes made/needed: -
  • Is Android affected?: no
  • Explanation of risk level: one-line CSS only change
  • Fix verified in Nightly: no
  • User impact if declined: copying a rule in the inspector and pasting it will produce an annoying extra new line
  • Code covered by automated testing: no
  • Needs manual QE test: no
  • Risk associated with taking this patch: low
  • Steps to reproduce for manual QE testing: -
Attachment #9377641 - Flags: approval-mozilla-release?
Attachment #9377640 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Uplift Approval Request

  • String changes made/needed: -
  • Is Android affected?: no
  • Explanation of risk level: one-line devtools, CSS only change
  • Code covered by automated testing: no
  • User impact if declined: copying a rule in the inspector and pasting it will produce an annoying extra new line
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Risk associated with taking this patch: low
  • Steps to reproduce for manual QE testing: -
Flags: needinfo?(nchevobbe)
Attachment #9377641 - Flags: approval-mozilla-release? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: