Closed Bug 615781 Opened 14 years ago Closed 14 years ago

"ASSERTION: frame must not be dirty" (nsIFrame::GetCaretBaseline) after turning a textbox into a radio button

Categories

(Core :: DOM: Editor, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: jruderman, Assigned: ehsan.akhgari)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files, 1 obsolete file)

Attached file testcase
###!!! ASSERTION: frame must not be dirty: '!NS_SUBTREE_DIRTY(this)', file layout/forms/nsFormControlFrame.cpp, line 93

ehsan, you fixed the last few of these ;)
Attached file stack trace
Hmm, nsFocusManager::SetCaretVisible first calls SetCaretDOMSelection <http://mxr.mozilla.org/mozilla-central/source/dom/base/nsFocusManager.cpp#2039> and then shows/hides the caret.  SetCaretDOMSelection calls StopBlinking and StartBlinking if mVisible.  But if aVisible is false in SetCaretDOMSelection, that StartBlinking call is unneeded, right?

So, roc, what do you think about extending SetCaretDOMSelection with a parameter calls aWillBeVisible or something like that, and only call StartBlinking if aWillBeVisible?
Attached patch Patch (v1) (obsolete) — Splinter Review
This implements comment 2.
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #494495 - Flags: review?(roc)
Can't we just hide the caret before moving it so mVisible is false?
Attached patch Patch (v2)Splinter Review
(In reply to comment #4)
> Can't we just hide the caret before moving it so mVisible is false?

Yes, probably a better idea.  Thanks for suggesting it.
Attachment #494495 - Attachment is obsolete: true
Attachment #495271 - Flags: review?(roc)
Attachment #494495 - Flags: review?(roc)
Attachment #495271 - Flags: approval2.0?
Attachment #495271 - Flags: review?(roc)
Attachment #495271 - Flags: review+
Attachment #495271 - Flags: approval2.0?
Attachment #495271 - Flags: approval2.0+
http://hg.mozilla.org/mozilla-central/rev/c5e63ee00132
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: