Closed Bug 1955854 Opened 5 months ago Closed 5 months ago

style editor: pasting code via context menu duplicates code

Categories

(DevTools :: Style Editor, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox-esr128 unaffected, firefox136 unaffected, firefox137 fixed, firefox138 fixed)

RESOLVED FIXED
138 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox136 --- unaffected
firefox137 --- fixed
firefox138 --- fixed

People

(Reporter: soeren.hentzschel, Assigned: tschuster)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. Copy some code
  2. Open the style editor
  3. Use the context menu to paste the copied code

Actual:

The code is pasted twice.

Expected:

The code is pasted once.

Pasting via keyboard shorcut does not have this problem.

Flags: needinfo?(tschuster)

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

Component: General → Style Editor
Assignee: nobody → tschuster
Flags: needinfo?(tschuster)

Turns out my first version of D238048 was actually correct. We seem to
get "command" events even for events not defined in <commandset
id="sourceEditorCommands">.

Thanks Sören for the report and the bisection.

Flags: in-testsuite?
Pushed by tschuster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb9e170001c4 Only handle Style Editor specific commands. r=devtools-reviewers,nchevobbe
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(tschuster)

Not sure if we need to uplift this, it doesn't seem super critical to me.

Flags: needinfo?(tschuster) → needinfo?(nchevobbe)

(In reply to Tom Schuster from comment #7)

Not sure if we need to uplift this, it doesn't seem super critical to me.

that's a regression, potentially super annoying and since I was told uplift are cheap, we might do it. Tom can you request it please?

Flags: needinfo?(nchevobbe)

Comment on attachment 9473928 [details]
Bug 1955854 - Only handle Style Editor specific commands. r?#devtools-reviewers,bomsy

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Pasting in the Style Editor is broken
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Simple patch
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9473928 - Flags: approval-mozilla-beta?
Attachment #9473928 - Flags: approval-mozilla-beta? → approval-mozilla-release?
Duplicate of this bug: 1958704
Attachment #9473928 - 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: