Closed
Bug 89964
Opened 24 years ago
Closed 24 years ago
crash on form of visual hebrew with dir=rtl
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: tzafrir, Assigned: mkaply)
References
()
Details
(Keywords: crash, rtl, Whiteboard: [PDT+])
Attachments
(2 files)
|
1.25 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.63 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010628
BuildID: 2001062815
That page is encoded as ISO-8859-8 . It includes a form with a textarea element
that has dir=rtl and wrap=virtual .
Generally working with this form I got some unexpected behaviours (including
strange behaviours of the selection) and some crashes.
Procedure below produces a reporducable crash (at least in this machine)
I seem to have had this problem from at least 0.9.1, but couldn't isolate it before.
Reproducible: Always
Steps to Reproduce:
1. start a new mozilla with that page
2. type a hebrwe word of at least two letters in that form (this requires hebrew
keyboard layout installed)
3. press enter
4. press backspace twice
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
Commentary on the attached patch:
The IBMBIDI block in |nsCaret::SetupDrawingFrameAndOffset| needs to be moved
before the code that sets NS_FRAME_EXTERNAL_REFERENCE on the caret frame.
The crash was caused by the bidi code changing |theFrame| to a frame without
NS_FRAME_EXTERNAL_REFERENCE, so when that frame was deleted by backspacing
|nsCaret::ClearFrameRefs| wasn't being called and |mLastCaretFrame| was still
pointing to the deleted frame.
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
I guess it makes sense to move the IBMBIDI block even earlier, as in the second
patch. What would be a good testcase?
Comment 6•24 years ago
|
||
Marking NEW.
Comment 7•24 years ago
|
||
mkaply, do you think this is something that should go on the 6.1 branch?
| Assignee | ||
Comment 8•24 years ago
|
||
I think this would be a good candidate for the branch, although it is not even
on the trunk right now.
Comment 9•24 years ago
|
||
I will check this into the trunk as soon as I get r=
Comment 10•24 years ago
|
||
r=ftang, you already got sr=kin . Check into trunk ASAP, please.
Comment 11•24 years ago
|
||
How common is the case that causes this crash? Since it's not a simple
null-check, I'd like you to describe the testing that's been done and to have an
extra reviewer looking for possible interactions outside the immediate scope of
the change. I can't afford any regressions right now, so I need to be able to
judge both the value and the risk before making the decision whether this goes
in the branch.
Frank, can you be the local representative for this bug? Please bring an update
to the PDT meeting today.
Comment 12•24 years ago
|
||
fix checked into trunk
Comment 13•24 years ago
|
||
PDT+. Pls check into the branch as soon as possible. Thanks.
Whiteboard: [PDT+]
Comment 14•24 years ago
|
||
I checked this into the branch.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 15•24 years ago
|
||
simon@softel.co.il or gila, can you verify this bug?
Comment 17•17 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: giladehven → layout.fonts-and-text
You need to log in
before you can comment on or make changes to this bug.
Description
•