AccessibleCaretManager uses scroll and reflow observers to detect when to update the position of carets. However, it currently only registers the observers on the leaf docshell, so only changes in the innermost iframe are detected; that is, it fails to update caret position when an ancestor iframe is scrolled. This patch makes it register observers on all ancestor docshells so that changes in ancestor iframes are detected as well. MozReview-Commit-ID: bwiSjj8936
21 KiB
21 KiB