Closed Bug 76311 Opened 23 years ago Closed 23 years ago

Bidi selection code fired on non-Bidi pages

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9

People

(Reporter: smontagu, Assigned: erik)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001231
BuildID:    

The IBMBIDI code in nsSelection::HandleDrag doesn't check that Bidi is enabled 
in the presentation context. This must be fixed to prevent performance hit on 
non-Bidi pages.

Reproducible: Always
Steps to Reproduce:
Open mozilla in a debugger.
Set a breakpoint in nsSelection::VisualSelectFrames in 
mozilla/content/base/src/nsSelection.cpp
Open any document with no Bidi content
Click and drag the mouse

Actual Results:  The breakpoint is reached

Expected Results:  This method should never be entered from a non-Bidi document
Assigning to Erik
Assignee: asa → erik
we need a bidi component...
just looked at it with erik. looks good to me. r= mjudge
sr=erik
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9
Simon, thanks for coming up with a fix so quickly!
I can no longer see the bug on my Mac bidi build after get erik's patch.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: