Closed Bug 335834 Opened 18 years ago Closed 18 years ago

Caret turd when setting designMode on about:blank page

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha1

People

(Reporter: martijn.martijn, Assigned: mrbkap)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file)

To reproduce:
- Open a new tab (which is empty)
- Type (copy) this javascript in the url bar: javascript:document.designMode='on'; void 0

Expected result:
Document is editable, caret is visible

Actual result:
Document is editable, caret is visible, but above the caret, I see a caret ****.

I can see this bug, using a 2006-04-28 trunk build.
I think it's a regression from bug 287813.
Attached patch Proposed fixSplinter Review
This patch fixes the bug by not trying to recalculate the caret's rect when the caret wants to erase. Instead, it only recalcuates the rect when the caret is about to draw. This means that we need to be fairly careful about when we move frames, and when we are moving frames we need to notify the caret sooner, not later.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #220455 - Flags: superreview?(roc)
Attachment #220455 - Flags: review?(roc)
OS: Windows XP → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha
Attachment #220455 - Flags: superreview?(roc)
Attachment #220455 - Flags: superreview+
Attachment #220455 - Flags: review?(roc)
Attachment #220455 - Flags: review+
Fix checked into trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Blocks: 336428
Verified fixed, using 2006-05-04 trunk build.
Status: RESOLVED → VERIFIED
Blocks: 335858
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: