Closed
Bug 76598
Opened 24 years ago
Closed 24 years ago
Crash Trying to Rename PT items
Categories
(SeaMonkey :: Bookmarks & History, defect)
Tracking
(Not tracked)
mozilla0.9.1
People
(Reporter: kerz, Assigned: bugs)
Details
(Whiteboard: important for 0.9)
Attachments
(1 file)
|
1.02 KB,
patch
|
Details | Diff | Splinter Review |
repro:
make sure you have items on your personal toolbar first.
.rename an item using the context menu
.continue renaming until it stops working
.bring another window into focus
.go back to original window
.crash
tb id is tb29299719m
| Assignee | ||
Comment 1•24 years ago
|
||
"Until it stops working" is the important note ;)
It shouldn't stop working. Here's why it does: Focus shifts from one of the
valid focusable elements (the edit field, the urlbar, etc) into something else,
or maybe into nothing. As a result the controllers array seems to "change."
There is one controller in it, the editor controller.
I wouldn't be surprised if there is something very wrong here, and that this is
leading to the crash.
I saw this yesterday, but can't seem to reproduce it anymore. Trying harder
now...
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Comment 3•24 years ago
|
||
OK, so here's what seems to be happening:
the il field seems to still have focus (somehow, some way) when the window
deactivates. Whatever mechanism notes down which element is focused so that this
can be restored when the window is reactivated records this. However the blur
handler in the binding for the il toolbar buttons tears the field out of the
document.
The window is reactivated, the NS_ACTIVATE case in
nsEventStateManager::PreHandleEvent gets the focused content and tries to call
SetFocus on it (which ends up in nsHTMLInputElement::SetFocus). Unfortunately
mDocument of that is null, and boom. So I added a check that a document exists
for the focused content before trying to set focus.
Copying chris & dave for r/sr=
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•24 years ago
|
||
updated the patch in my tree to call the nsIDocument COMPtr 'contentDoc' rather
than 'elementDoc'
| Assignee | ||
Updated•24 years ago
|
Updated•24 years ago
|
Whiteboard: important for 0.9
Comment 5•24 years ago
|
||
This bug should be duped on a fix waterson already made and is going to check
in today.
| Assignee | ||
Comment 8•24 years ago
|
||
sure.
the setAttribute bug is different, I think.
*** This bug has been marked as a duplicate of 76715 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•