Assertion failure: mInitialized trying to Ctrl+Middle-click paste

RESOLVED FIXED in mozilla20

Status

()

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: neil, Assigned: neil)

Tracking

unspecified
mozilla20
All
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Steps to reproduce problem:
1. If necessary, enable middlemouse.paste
2. Make a selection
3. Hold down Ctrl and middle-click a textarea
(Assignee)

Comment 1

6 years ago
Created attachment 697720 [details] [diff] [review]
Proposed patch

> [no attachments can be made obsolete]

(Just testing!)
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #697720 - Flags: review?(ehsan)

Comment 2

6 years ago
Comment on attachment 697720 [details] [diff] [review]
Proposed patch

Review of attachment 697720 [details] [diff] [review]:
-----------------------------------------------------------------

::: editor/libeditor/text/nsPlaintextEditor.cpp
@@ +1355,5 @@
>  #ifdef DEBUG_clipboard
>      printf("Got flavor [%s]\n", flav);
>  #endif
> +    if (0 == nsCRT::strcmp(flav, kUnicodeMime) ||
> +        0 == nsCRT::strcmp(flav, kMozTextInternal))

Why is this hunk necessary?
(Assignee)

Comment 3

6 years ago
(In reply to Ehsan Akhgari from comment #2)
> (From update of attachment 697720 [details] [diff] [review])
> > +    if (0 == nsCRT::strcmp(flav, kUnicodeMime) ||
> > +        0 == nsCRT::strcmp(flav, kMozTextInternal))
> Why is this hunk necessary?
Rather than reinvent the wheel I copied nsPlaintextEditor::Paste (which for some reason lives in nsPlaintextDataTransfer.cpp) which uses PrepareTransferable which assumes the caller is interested in both flavours.

Updated

6 years ago
Attachment #697720 - Flags: review?(ehsan) → review+
https://hg.mozilla.org/mozilla-central/rev/ac810061a175
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.