Closed
Bug 215220
Opened 22 years ago
Closed 21 years ago
Unable to receive caret-move event in HTML document
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: yuanyi21, Assigned: yuanyi21)
Details
Attachments
(1 file)
2.95 KB,
patch
|
aaronlev
:
review+
Henry.Jia
:
superreview+
|
Details | Diff | Splinter Review |
The problem is in nsCaretAccessible::AttachNewSelectionListener(), we get
presShell from GetPresShell(), get doc from presShell->GetDocument, unlike the
version before 1.12 in which we get doc from aCurrentNode->GetOwnerDocument and
get presShell from doc->GetShellAt(0,..), so we keep getting the nsXULDocument
but never nsHTMLDocument.
Aaron, I think the code in nsCaretAccessible::AttachNewSelectionListener()
could be wrong, because we only have one nsCaretAccessible object, which is
created at the same time with nsRootAccessible's creation and using the xul
document's presshell, but we need the caret listener can be tied to all kind of
document, so we should get the document from the current focused node instead
of the presshell (like what we did before). What do you think?
Attachment #129707 -
Flags: review?(aaronl)
Comment 3•22 years ago
|
||
Comment on attachment 129707 [details] [diff] [review]
getting PresShell from nsRootAccessible::GetEventShell instead of mWeakShell
r=aaronl
Attachment #129707 -
Flags: review?(aaronl) → review+
Attachment #129707 -
Flags: superreview?(Henry.Jia)
taking...
Henry, may I get sr= from you?
Assignee: aaronl → kyle.yuan
Comment on attachment 129707 [details] [diff] [review]
getting PresShell from nsRootAccessible::GetEventShell instead of mWeakShell
seems ok.
Attachment #129707 -
Flags: superreview?(Henry.Jia) → superreview+
checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•