Closed Bug 1678057 Opened 4 years ago Closed 3 months ago

The "cut" menu entry not working

Categories

(Thunderbird :: Add-Ons: General, defect)

defect

Tracking

(thunderbird_esr115 affected)

RESOLVED FIXED
124 Branch
Tracking Status
thunderbird_esr115 --- affected

People

(Reporter: git, Assigned: TbSync)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

I know, the description sounds weird... but it's easy to reproduce. :-D

(see full/easy example at https://github.com/4ch1m/sandbox/tree/master/options-test )

Just a simple manifest manifest.json with a dedicated options-page:

{
"manifest_version": 2,
"name": "optionstest",
"description": "options test",
"version": "1.0.0",
"options_ui": {
"open_in_tab": true,
"page": "options.html"
}
}

The options-page itself contains a simple text-input field AND a simple image-reference:

<html lang="en">
<head>
<meta charset="utf-8">
<title>Options Test</title>
</head>
<body>
<h1>Options Test</h1>
<input type="text">
<img src="mozilla-dino.png" alt="mozilla-dino">
</body>
</html>

Try it yourself:

  • (temporarily) load this add-on in Thunderbird
  • open the options-page of the add-on
  • you'll now see the input-field and the image
  • now enter a few characters in the field
  • finally, try to mark/copy the text characters you just entered and paste it in the same field
  • it doesn't work

Now modify the options.html and remove the image:

<html lang="en">
<head>
<meta charset="utf-8">
<title>Options Test</title>
</head>
<body>
<h1>Options Test</h1>
<input type="text">
</body>
</html>

  • reload the add-on
  • again... open the options-dialog
  • again... type some text in to the input field
  • now try to mark/copy/paste the text into that field again
  • it works as expected

Hope this can be fixed soon.

Thanks!

It works in Beta88 and Daily89 with CTRL+A -> CTRL+C -> DEL -> CTRL+V

It works in Beta88 and Daily89 and TB78 (!) with CTRL+A -> CTRL+X -> CTRL+V

The context menus are nice as well:

TB78: CUT and COPY do nothing at all
Beta88: CUT and COPY place the content into the clipboard, but CUT is not actually cutting the text away
Daily89: No context menu

Update: For me everything works in Daily 90, except that the CUT menu entry is not removing the content (but it is placing it into the clipboard).

Achim, can you confirm this?

Yep...

Just tested it again (Linux Mint 20.1).

  • Still broken in TB 78.10.2.
  • Works perfectly fine in TB 91.0a1 (nightly); when using the keyboard shortcuts ('CTRL+x' -> 'CTRL+v').

As mentioned by John: "CUT" via context-menu doesn't work at all; regardless of an img present in the html-body.
(Actually this never worked in any of these TB versions... so this would be a separate bug, I guess.)

I have no idea what's going on there... but it's on the right track. :-D

With TB91 around the corner (and not affected), this bug now has a below-zero priority for me. At one point we should look at the CUT issue. Maybe close this bug as wontfix and create a new one for the CUT?

The cut menu entry not working was due to a simple typo. This is not
limited to WebExtensions, but any content tab was affected.

Assignee: nobody → john
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: Using images (img-tag) in options-ui will break copy/paste functionality in all text-input fields → The "cut" menu entry not working
Target Milestone: --- → 124 Branch

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/7df69353c8ee
Fix copy/cut typo in browserPopups.inc.xhtml. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: