Closed
Bug 448326
Opened 17 years ago
Closed 17 years ago
Paste/Copy/Cut not working from menus when composing message
Categories
(Thunderbird :: Message Compose Window, defect, P1)
Thunderbird
Message Compose Window
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0a3
People
(Reporter: williejreid, Assigned: Bienvenu)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
1.67 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008072803 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008072800 Shredder/3.0a2pre ID:2008072800
When composing a new message the Edit > Paste (and RMC > Paste) sequence in the text pane produces no results. CTRL+V works fine. Edit (or RMC) > "Paste as quotation" / "Paste without formatting" also work fine.
Reproducible: Always
Steps to Reproduce:
1. Copy text from any source
2. Open Write to compose new message
3. In text pane, use Edit > paste.
Actual Results:
Nothing is pasted in text pane
Expected Results:
Text should have been pasted
| Reporter | ||
Comment 1•17 years ago
|
||
Please note.
Bug #330868 from 2 years ago has similar behaviours but is not identical as far as I can see.
Edit > Paste works for Thunderbird/3.0a2 (Windows; 2008072418)
does not work for Thunderbird/3.0a2pre (Windows; 2008072500)
Both observed in plain-text and HTML composition modes. The "Paste" menu item is not greyed out. Possibly related to 1.9.0/1.9.1 switch to comm-central.
Not a core bug though, Edit > Paste works normally in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008072800 SeaMonkey/2.0a1pre for Mail/News and Composer, thus the backend appears to be working.
No duplicate found, confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → Trunk
Comment 3•17 years ago
|
||
For me also rightclicking and using "paste" doesn't work. Pasting with "ctrl-V" works. "Paste as quotation" works in every situation.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ID:2008073000
Additional anomalies that I've found that probably pertain to this error as well (reprinted from the my forum post). My tests show it's just not the paste option but copy and cut as well but only when accessed through a menu as described below.
"I've noticed that attempting to use the right click menu (Windows XP pro SP3) for "Cut, Copy or Paste" does not work at all as well as using these same commands via the File/Edit drop down menu. However, "Paste Without Formatting" and "Paste As Quotation" do work okay when accessed in either menu. Also, the keyboard shortcuts for all these functions work normally."
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008080500 Shredder/3.0b1pre ID:2008080500
Please ignore the OS reference in above comment. Meant to take that out.
| Reporter | ||
Comment 6•17 years ago
|
||
Yes, agree with comment #4 RMB + Copy or Cut are not working for me either.
Also seen on Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1a2pre) Gecko/2008080700 Shredder/3.0b1pre, thus not platform dependent. The menu items are correctly showing active or grayed out, but are not functional.
Adjusting platform flags, and the summary per comment #4.
OS: Windows XP → All
Hardware: PC → All
Summary: Paste not working when composing new message → Paste/Copy/Cut not working from menus when composing message
For someone not using (or not being aware of) the keyboard shortcuts for Copy/Cut/Paste, this may be a substantial usability issue.
This bug is quite visible and should be fixed for 3.0b1, for sure with
the 3.0 release, thus nominating.
Flags: blocking-thunderbird3.0b1?
Keywords: regression
| Assignee | ||
Comment 9•17 years ago
|
||
paste as quotation and paste w/o formatting both work; just normal paste doesn't.
Flags: blocking-thunderbird3.0b1? → blocking-thunderbird3.0b1+
Comment 11•17 years ago
|
||
I also found out, that Edit > Undo doesn't work while ctrl-z works.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/20080815074052 Shredder/3.0b1pre ID:20080815074052
Comment 12•17 years ago
|
||
(In reply to comment #11)
> I also found out, that Edit > Undo doesn't work while ctrl-z works.
>
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre)
> Gecko/20080815074052 Shredder/3.0b1pre ID:20080815074052
>
Confirmed. Neither does "Edit > Select All" but only when composing. "Edit > Select All" in TB's main window functions correctly and highlights all text showing in the preview pane.
Dave, should this be a blocker for beta 1?
| Assignee | ||
Comment 13•17 years ago
|
||
I did mark it as a beta 1 blocker.
Comment 14•17 years ago
|
||
Oops, I missed the +. Sorry about that.
| Assignee | ||
Comment 15•17 years ago
|
||
putting in b1 milestone
Flags: blocking-thunderbird3+
Target Milestone: --- → Thunderbird 3.0b1
Updated•17 years ago
|
Priority: -- → P1
Comment 16•17 years ago
|
||
Switching for b1 flags to target milestones, to avoid flag churn.
| Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Whiteboard: investigating
| Assignee | ||
Comment 17•17 years ago
|
||
We're not getting to nsBaseCommandController::DoCommand, so the problem is most likely in the xul. It would be interesting to know if SeaMonkey has the same issue.
Comment 18•17 years ago
|
||
I was unable to reproduce this on the corresponding SeaMonkey comm-central builds when confirming, thus specific to Thunderbird:
> (comment #2) Edit > Paste works normally in Mozilla/5.0 (Windows; U;
> Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008072800 SeaMonkey/2.0a1pre for
> Mail/News and Composer, thus the backend appears to be working.
| Assignee | ||
Comment 19•17 years ago
|
||
this fixes the issue - I'm not sure why we need to do this now, however.
Attachment #335545 -
Flags: review?(bugzilla)
| Assignee | ||
Comment 20•17 years ago
|
||
Phil probably knows right off the top of his head why I needed to do this :-)
| Assignee | ||
Updated•17 years ago
|
Whiteboard: investigating → patch awaiting review
Comment 21•17 years ago
|
||
Comment on attachment 335545 [details] [diff] [review]
possible fix
I'm not sure this is the correct fix. I'm not even sure if TB is at fault here.
I just tried removing the lines you changed, and all the functions popped into life.
What I can see is that composerEditMenuItems is defined in editorOverlay.xul, and the checked-in version sets cmd_undo etc with no attributes.
In messengercompose.xul, these commands are defined at composeCommands level (above composerEditMenuItems), with the oncommand attribute.
So it seems like the menu options are sometimes choosing the composerEditMenuItems commands instead of the top-level composeCommands versions.
As Phil said on irc, we're wrong to have two lots of identical ids defined in different places.
Attachment #335545 -
Flags: review?(bugzilla) → review-
Comment 22•17 years ago
|
||
Here's what SeaMonkey does for comparison: messengercompose.xul pulls in composerEditMenuItems from the "original" editorOverlay.xul, which pulls in cmd_undo from utilityOverlay.xul, which sets the oncommand attribute.
| Assignee | ||
Comment 23•17 years ago
|
||
Removing these from editorOverlay.xul fixes the problem, as Standard8 pointed out. This leaves the commands in messengercompose.xul...
Attachment #335545 -
Attachment is obsolete: true
Attachment #335636 -
Flags: superreview?(neil)
Attachment #335636 -
Flags: review?(bugzilla)
Comment 24•17 years ago
|
||
Comment on attachment 335636 [details] [diff] [review]
proposed fix
This doesn't need my review, although it does worry me that this change will make the editor commandupdater stop working properly.
It's interesting to note a big comment in messengercompose.xul (both versions) warning not to include cmd_pasteQuote, cmd_find or cmd_findNext, although even SeaMonkey's version includes cmd_delete and cmd_selectAll, which is probably a bug that Mnyromyr will want to fix.
Attachment #335636 -
Flags: superreview?(neil)
| Assignee | ||
Comment 25•17 years ago
|
||
oops, sorry about the review request. The command updater seems to be working ok with the patch, in the sense that the edit menu commands are enabled/disabled appropriately based on selection and whats on the undo/redo queues.
Updated•17 years ago
|
Attachment #335636 -
Flags: review?(bugzilla) → review+
| Assignee | ||
Updated•17 years ago
|
Whiteboard: patch awaiting review → will checkin today
| Assignee | ||
Comment 26•17 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: will checkin today
You need to log in
before you can comment on or make changes to this bug.
Description
•