Closed
Bug 339975
Opened 19 years ago
Closed 17 years ago
Ctrl+clicking a textarea in a table and then typing puts text outside the textarea. Can lead to crash [@ nsTextInputSelectionImpl::ScrollSelectionIntoView] [@ nsTextInputListener::EditAction]
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: sciguyryan, Unassigned)
References
()
Details
(Keywords: crash, testcase)
Crash Data
Attachments
(4 files, 1 obsolete file)
First a note: I have tried reducing the page(es) to a testcase but to no avail, having problems reducing it down.
If you copy something (anything, does not matter what) then paste into the textbox/textarea (using CTRL+V) and at the same time click into the textbox/textarea and the content will be pasted outside it. Please see screen shot attached as it shows the effect.
Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Not easy to reproduce but I can confirm: http://img501.imageshack.us/img501/7255/screenshot0017ud.png
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060601 Minefield/3.0a1 ID:2006060105 [cairo]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 3•19 years ago
|
||
(In reply to comment #2)
> Not easy to reproduce but I can confirm:
> http://img501.imageshack.us/img501/7255/screenshot0017ud.png
>
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060601
> Minefield/3.0a1 ID:2006060105 [cairo]
>
Still trying to make a reduced testcase. Looks like its something related to the tables because when they are removed it seems work as it should.
Comment 4•19 years ago
|
||
(In reply to comment #3)
> Still trying to make a reduced testcase. Looks like its something related to
> the tables because when they are removed it seems work as it should.
Probably I already saw this issue a few times on f.m.o and some other pages (like 3- 4times)
-> Core / Layout: Form Controls ??
Reporter | ||
Comment 5•19 years ago
|
||
(In reply to comment #4)
> -> Core / Layout: Form Controls ??
Seems fitting. Would be easier to deicide if it were possible to pin this down to two elements.
Component: General → Layout: Form Controls
Product: Firefox → Core
Comment 6•19 years ago
|
||
The only thing I see here is that it deletes all text that is already present in the input field.
Comment 7•19 years ago
|
||
Comment 8•19 years ago
|
||
If even crash sometimes, when the textarea magically disappears during the paste operation. TB19381542E
Keywords: testcase
Reporter | ||
Comment 9•19 years ago
|
||
(In reply to comment #8)
> If even crash sometimes, when the textarea magically disappears during the
> paste operation. TB19381542E
>
Can reproduce that too sometimes. Not every time though - seems more random.
Updated•19 years ago
|
QA Contact: general → layout.form-controls
Comment 10•19 years ago
|
||
Incident ID: 19381542
Stack Signature nsTextInputSelectionImpl::ScrollSelectionIntoView 2590cf55
Product ID FirefoxTrunk
Build ID 2006060105
Trigger Time 2006-06-01 10:35:11.0
Platform Win32
Operating System Windows NT 5.1 build 2600
Module firefox.exe + (00206c59)
URL visited Bug 339975 - testcase
User Comments the textarea disappeared then crash
Since Last Crash 915 sec
Total Uptime 6763 sec
Trigger Reason Access violation
Source File, Line No. c:\builds\tinderbox\fx-trunk-cairo\winnt_5.2_depend\mozilla\layout\forms\nstextcontrolframe.cpp, line 657
Stack Trace
nsTextInputSelectionImpl::ScrollSelectionIntoView nsEditor::ScrollSelectionIntoView nsEditor::EndPlaceHolderTransaction nsAutoPlaceHolderBatch::~nsAutoPlaceHolderBatch
Severity: normal → critical
Keywords: crash
Summary: Weird pasting issue into textbox/textarea when there is a simultaneous click. → Weird pasting issue into textbox/textarea when there is a simultaneous click [@ nsTextInputSelectionImpl::ScrollSelectionIntoView]
Reporter | ||
Comment 11•19 years ago
|
||
*** Bug 344154 has been marked as a duplicate of this bug. ***
Comment 12•18 years ago
|
||
Updated•18 years ago
|
Flags: blocking1.9?
OS: Windows XP → All
Summary: Weird pasting issue into textbox/textarea when there is a simultaneous click [@ nsTextInputSelectionImpl::ScrollSelectionIntoView] → Weird pasting issue into textbox/textarea when there is a simultaneous click [@ nsTextInputSelectionImpl::ScrollSelectionIntoView] [@ nsTextInputListener::EditAction]
Reporter | ||
Comment 13•18 years ago
|
||
*** Bug 361924 has been marked as a duplicate of this bug. ***
Flags: blocking1.9?
Whiteboard: [wanted-1.9]
Reporter | ||
Comment 14•18 years ago
|
||
Possible crash fix v1
* Looks like calling |nsFrameSelection::ScrollSelectionIntoView| could return a |NS_ERROR_NULL_POINTER| error. Still searching for the incorrect paste problem.
Assignee: nobody → sciguyryan
Status: NEW → ASSIGNED
Attachment #255386 -
Flags: superreview?(bzbarsky)
Attachment #255386 -
Flags: review?(bzbarsky)
Comment 15•18 years ago
|
||
I don't really know this code, so I don't think I can review it in a reasonable way. I suggest getting review from someone who's reviewed serious changes to the edit listener stuff in the past, whoever that is...
Reporter | ||
Updated•18 years ago
|
Attachment #255386 -
Flags: superreview?(bzbarsky)
Attachment #255386 -
Flags: review?(bzbarsky)
Reporter | ||
Comment 16•18 years ago
|
||
(In reply to comment #15)
> I don't really know this code, so I don't think I can review it in a reasonable
> way. I suggest getting review from someone who's reviewed serious changes to
> the edit listener stuff in the past, whoever that is...
>
OK, thanks! I've assigned this to myself so I don't forget to work on it but if anyone else wants to work on it themselves please re-assign it :)
Reporter | ||
Updated•18 years ago
|
Assignee: sciguyryan → nobody
Status: ASSIGNED → NEW
Updated•18 years ago
|
Summary: Weird pasting issue into textbox/textarea when there is a simultaneous click [@ nsTextInputSelectionImpl::ScrollSelectionIntoView] [@ nsTextInputListener::EditAction] → Ctrl+clicking a textarea in a table and then typing puts text outside the textarea. Can lead to crash [@ nsTextInputSelectionImpl::ScrollSelectionIntoView] [@ nsTextInputListener::EditAction]
Comment 18•18 years ago
|
||
Attachment #224089 -
Attachment is obsolete: true
Updated•17 years ago
|
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
Comment 19•17 years ago
|
||
This WFM with
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b5pre) Gecko/2008032104 Minefield/3.0b5pre ID:2008032104
Comment 20•17 years ago
|
||
WFM (Mac trunk debug) too. It would be great if someone using Windows could retest too.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Comment 21•17 years ago
|
||
WFM on Windows
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008032204 Minefield/3.0b5pre ID:2008032204
Comment 22•17 years ago
|
||
Can we get a testcase in for this?
Updated•17 years ago
|
Flags: in-testsuite?
Comment 24•15 years ago
|
||
This issue (or issues related to it) has never disappeared completely: you can always (on linux-i686) make a field in some testcases disappear.
See bug 424627, bug 451009, bug 462970, bug 483951, bug 504749, bug 522815.
bug 462970 has a good testcase attachment 368203 [details]
bug 522815 has a testcase for different steps to reproduce (see https://bugzilla.mozilla.org/show_bug.cgi?id=522815#c0). In some builds (e.g. between 2008 and 2009-09, or since 20100305), I cannot reproduce using those steps once, but still can if I perform them twice:
1. Hold Ctrl.
2. Mousedown in the lower field.
3. Drag outside.
4. Mouseup.
5. Paste.
6. Mousedown in the lower field _after the text_.
7. Drag outside (preferably to the bottom-left).
8. Mouseup.
9. Paste.
Result: the field disappears.
Assignee | ||
Updated•14 years ago
|
Crash Signature: [@ nsTextInputSelectionImpl::ScrollSelectionIntoView]
[@ nsTextInputListener::EditAction]
You need to log in
before you can comment on or make changes to this bug.
Description
•