Event handlers on HTML <editor/>s don't fire

NEW
Unassigned

Status

()

P3
normal
17 years ago
12 years ago

People

(Reporter: bugzilla, Unassigned)

Tracking

Trunk
Future
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
Event handlers on <editor/>s that display HTML markup, i.e. the one in msg
compose, do not fire or do not work correctly.  The root of the problem is that
the pres shell of the document that the editor contains -- not the xul doc that
contains the editor -- is receiving the event, which causes a bunch of
gLastFocusedDocument == mDocument checks to fail, which causes the ESM to think
that focus is being switched between two documents, which causes the (editor)
document itself to receive the event.  This happens because
nsMarkupDocument::CreateShell inits a presshell with itself as the doc.

saari/bryner, can you comment on possible solutions?

Comment 1

17 years ago
assigning to brade for review, but I suspect this will go to others involved in
the event code
Assignee: beppe → brade
Target Milestone: --- → mozilla1.0

Comment 2

17 years ago
spam composer change
Component: Editor: Core → Editor: Composer

Comment 3

17 years ago
-->core
Component: Editor: Composer → Editor: Core

Comment 4

17 years ago
-->core
Assignee: brade → kin

Comment 5

17 years ago
Bulk move of mozilla1.0 bugs to mozilla.1.0.1. I will try to pull some of these
back in if I can.
Target Milestone: mozilla1.0 → mozilla1.0.1

Comment 6

17 years ago
removing myself from the cc list

Updated

16 years ago
Priority: -- → P3
Target Milestone: mozilla1.0.1 → Future
QA Contact: sujay → editor
Assignee: kinmoz → nobody
You need to log in before you can comment on or make changes to this bug.