Crash when paste text from flash plugin

RESOLVED EXPIRED

Status

()

Core
Plug-ins
--
critical
RESOLVED EXPIRED
14 years ago
13 years ago

People

(Reporter: Ginn Chen, Assigned: Peter Lubczynski)

Tracking

({crash})

Trunk
x86
Linux
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040117
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040117

Can not paste text from flash plugin to mozilla, and may crash mozilla.

If you paste to Terminal or other process programs, it works.

Reproducible: Always
Steps to Reproduce:
1. Open mozilla, browse a flash with text field. Select some text, press Ctrl+C
to copy it.
2. Click mozilla location bar, you will notice a small break. Right click,
another small break and "Paste" is grey in the content menu.
3. Open Composer, you will notice more breaks. And you can't paste the text you
copied.
4. If you press Ctrl+V or click middle button or click right button in composer 
continuously for dozens of times, mozilla may crash.


Actual Results:  
MOzilla crash.

Expected Results:  
Paste the text copied.
(Reporter)

Comment 1

14 years ago
Mozilla uses gtk2 clipboard, and wait for response from the selection owner sync.

When the selection owner is flash plugin, the SelectionRequest event will not be
processed before it timeout in nsclipboard.cpp.

There is some other problems if flash response the SelectionRequest after the
time out, and it cause mozilla crash.
(Reporter)

Comment 2

14 years ago
Created attachment 143694 [details]
a simple test case

Comment 3

14 years ago
with current trunk gtk2/CVS, Mozilla fails to paste into composer and
temporarily hangs, but does not crash.  This is the same as the behavior for
gtk1 on the trunk.

Ginn: can you try a more recent build (1.7a)?

==> plugins
Assignee: general → peterlubczynski-bugs
Component: Browser-General → Plug-ins
Keywords: crash
(Reporter)

Comment 4

14 years ago
I tried on Mozilla 1.7a.
It did not crash, but hanged for 0.5-2 seconds for every click in Composer.

Both gtk2 and xlib will hang temporarily.

If click middle button or press ctrl+v continuously without break for 10 times,
maybe it will paste out 5-7 times.

I'm not sure if it's possible to crash Mozilla 1.7a.

But I think it's a big problem for copy text from plugins running in the same
processes with mozilla.

Should we change the mozilla clipboard working in an asynchronism way?
(Reporter)

Comment 5

14 years ago
I found the latest trunk gtk2 build will crash, if you click middle key and
ctrl-V in composer about 20 times continuously.
The flash plugin is the newest, 7.0r25, you can find it on www.macromedia.com.

Comment 6

13 years ago
Created attachment 181383 [details]
stacktrace opening composer

I selected the text from the testcase, hit Ctrl-V and opened composer

This really looks like a glib2 or flash bug
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.