Closed Bug 13463 Opened 25 years ago Closed 25 years ago

[BLOCK] event state manager can't tell when frames it tracks go away

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: mikepinkerton, Assigned: mikepinkerton)

References

Details

(Whiteboard: [PDT+])

In the event state manager, there are several frames that are being held onto for
tracking mouse enter/leave and drag gesture things. However, the psuedo-event
generation is two-staged:

- tell the DOM
- tell the frame

If a listener in the dom (such as a drop listener) deletes the frame (user moved
a button on the toolbar, causing it to be deleted), then when control gets back
to the event state manager, the frame is dangling and we crash hard.

Hyatt also will have this problem with closing up xp-popups.
Depends on: 9658
adding dependency
ccing rjc
Can we up the priority on this to a P1 ???  This is a MAJOR blocker for
drag&drop work.
Status: NEW → ASSIGNED
Do you guys have a specific test case for me on this?  Because there is some
code in place for notification of frame destruction but some of the more recent
code (like the drag events), or older code with bugs might have a problem with
it.  I can try to fix a spot or two that I see but I won't know I'm fixing the
problems your seeing.
a good test case is in navigator.js. uncomment the lines (around line 155):

rdfc.RemoveElement(objectRes, true);
rdfc.InsertElementAt(objectRes, newIndex, true);

and then drag a toolbar button in the personal toolbar and drop it somewhere
else.

If you can point me to this mechanism for frame deletion notification, maybe i
can make the drag gesture code use it. if it's something that i'm not doing
correctly, then this should be my bug.
Blocks: 11346
Assignee: joki → pinkerton
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Target Milestone: M15
after talking to joki, i learned there is a mechanism for determining when frames
used by the eventStateManager go away. Post-beta, I'll get this working myself
since joki is overloaded.

taking over this bug (which should have been mine to begin with) and adding joki
to the cc list just in case he might care.
m15 accepting
Whiteboard: [PDT+]
Putting on [PDT]+ radar.
moving dogfood-related d&d stuff back to M12. woohoo!
Priority: P3 → P1
priority now p1
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fix checked in.
Blocks: 17907
code level fix, pinkerton, can you verify the fix?
Status: RESOLVED → VERIFIED
No longer blocks: 17907
No longer blocks: 11346
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.