Closed
Bug 54734
Opened 25 years ago
Closed 13 years ago
tabs in textarea widgets cause assertions
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: jesup, Unassigned)
References
Details
(Keywords: helpwanted, Whiteboard: [assert])
Attachments
(1 file)
|
10.15 KB,
text/plain
|
Details |
FreeBSD 4.1 20000928xx
Tabs (0x09) in textarea widgets cause assertions. The assertions happen often
(such as every time the window gets focus). The data in question was pasted
into a bugzilla description with a line that begins with a tab followed by some
text. Deleting the tab solves the problem.
This appears to be due to a line having a single '\t' on it confusing
the line-splitter in the editor (nsHTMLToTXTSinkStream::AddToLine). I think
there's a problem with the logic in that function.
#1 0x281adae4 in nsDebug::PreCondition (aStr=0x2a059285 "aPos > aLen",
aExpr=0x2a059278 "aPos <= aLen",
aFile=0x2a05912b "nsJISx4501LineBreaker.cpp", aLine=448) at nsDebug.cpp:396
See attachment for full backtrace and structure dumps.
| Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
assigning to anthonyd for review and debugging
Assignee: beppe → anthonyd
Target Milestone: --- → Future
I cant reproduce this at all with the newest build. Maybe this was fixed by
noXIF landing? Hmmm, Reporter, can you try and repro? Till then I am marking as
WORKSFORME.
anthonyd
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 4•25 years ago
|
||
Still there. Note that the assertion doesn't fire until the text area loses and
regains focus (move the mouse out to some other window, then back over the
mozilla window), as per the original note.
FreeBSD 4.1 20001012xx
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Rendell,
I'm sorry man but I cannot reproduce this, are you only trying this on BSD (per
your comment)? I need some more information, and also, have you tested this
with a newer build, or just PR3?
anthonyd
| Reporter | ||
Comment 6•25 years ago
|
||
I tested it using a trunk pull, pulled and built yesterday afternoon.
I'm repulling as I type and will recheck.
Have you tested under GTK/Linux? Your WFM didn't specify OS, trunk or branch,
what build(!) etc. _please_ always specify where it WORKSFORME when marking a
bug in such a way.
If you need a BSD build to test, check with pollmann@netscape.com; he has a BSD
box that last I knew was open for people to test on.
Randell,
The bug report says platform PC, os ALL. As for what I tested on, I always test
with a fresh Trunk build and for this bug I tested it on Windows.
Let me know how your new test goes, and if this bug is BSD only, the report
needs to be marked as such.
anthonyd
Status: REOPENED → ASSIGNED
| Reporter | ||
Comment 8•25 years ago
|
||
Retested with FreeBSD 20001013xx. Still there.
Setting OS=freeBSD - Note, not because I've tested under anything else, but
because you WFM'd from Win32 (I assume). I assume this will apply to Linux as
well, but I don't have a linux setup, and even if I did there's no "gtk" or "all
unixes" entry. I would like to see it re-tested under Win32; and from looking
at the code I see no reason to believe the bug is Unix-only (but it may be
harder to provoke under others).
Again, here's the simple sequence:
Go to a new bug entry page in bugzilla.
In Description, type "This is a test" and a return.
The type a Tab and "test" and return
Then click outside the description widget.
Poof, assertion.
We could use Linux testing from someone, and I'd like to see retesting under
win32.
Keywords: qawanted
OS: All → FreeBSD
I just tried to test this with today's build (pulled this morning) on win32 and
could not reproduce it.
anthonyd
Comment 10•25 years ago
|
||
Please see comments on bug 58303.
Fabian.
Comment 11•25 years ago
|
||
ok, there is a problem here when there is only a tab(s) in a textfield. There
is a problem calculating the offset with the tab, and then placing the caret.
adding joe francis to the cc list, so hopefully can get some expert whitespace
help from joe.
anthonyd
Target Milestone: Future → mozilla0.9
Comment 13•25 years ago
|
||
*** Bug 58303 has been marked as a duplicate of this bug. ***
Comment 14•25 years ago
|
||
moving to milestone mozilla1.0; add helpwanted
This bug might be moved to Future at another time since it's not easy for users
to get just a "tab" character into a textarea anymore.
Keywords: helpwanted
Target Milestone: mozilla0.9.1 → mozilla1.0
| Reporter | ||
Comment 15•25 years ago
|
||
Retested with mozilla 20010417xx. Assertion is still there. Tabs can be
entered by pasting test (select some text with a tab in some other window, go to
a bugzilla textfield and paste. Assertions. Probably also a problem if the
textfield is initialized with a tab in it.
Comment 16•25 years ago
|
||
moving to 0.9.3. per beppe (assert here)
anthonyd
Whiteboard: [assert]
Target Milestone: mozilla1.0 → mozilla0.9.3
Updated•25 years ago
|
Target Milestone: mozilla0.9.3 → mozilla1.0
Comment 18•24 years ago
|
||
Bulk move of mozilla1.0 bugs to mozilla.1.0.1. I will try to pull some of these
back in if I can.
Target Milestone: mozilla1.0 → mozilla1.0.1
Comment 19•24 years ago
|
||
It seems to me that the problem in calculating the offset of the tab is related
to Bug 58712.
Comment 20•24 years ago
|
||
I got similar message from my *debug build* as follows:
----
###!!! ASSERTION: aPos > aLen: 'aPos <= aLen', file nsJISx4501LineBreaker.cpp,
line 465
###!!! Break: at file nsJISx4501LineBreaker.cpp, line 465
----
Steps to reproduce:
(Try in debug build.)
1. open new text mail message composer.
2. Type TAB.
3. do "Save As Draft"
You'll see this assertion.
In addition, if you use my experimental patch for Bug 144188,
this assertions are gone.
(I have no idea whether my patch fixes this bug(54734) also or not.)
Comment 21•20 years ago
|
||
Is this still an issue?
Updated•19 years ago
|
QA Contact: sujay → editor
Updated•19 years ago
|
Assignee: kinmoz → nobody
Comment 22•13 years ago
|
||
Is this still reproducing on latest versions using New Profile and in Safe Mode?
Flags: needinfo?
Comment 23•13 years ago
|
||
Let's just resolve->WFM this bug, there was no activity > 11 years.
Status: NEW → RESOLVED
Closed: 25 years ago → 13 years ago
Flags: needinfo?
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•