Bug 965621 - Use vc of eventmanager scope. instead of event document. r=yzen
authorEitan Isaacson <eitan@monotonous.org>
Tue, 11 Feb 2014 10:41:02 -0800
changeset 168244 763d65b22124105a1edc9701854ab9edfbe647dc
parent 168243 c0027289538cbdf8b97a6c978d1896f0dd69318b
child 168245 b6200f26d4fc3c0d9cc3c230a99b16770ef7eddb
push id26200
push userryanvm@gmail.com
push dateWed, 12 Feb 2014 13:37:38 +0000
treeherdermozilla-central@3b3ac98e0dc1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzen
bugs965621
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 965621 - Use vc of eventmanager scope. instead of event document. r=yzen
accessible/src/jsat/EventManager.jsm
--- a/accessible/src/jsat/EventManager.jsm
+++ b/accessible/src/jsat/EventManager.jsm
@@ -270,17 +270,17 @@ this.EventManager.prototype = {
       }
       case Events.FOCUS:
       {
         // Put vc where the focus is at
         let acc = aEvent.accessible;
         let doc = aEvent.accessibleDocument;
         if (acc.role != Roles.DOCUMENT && doc.role != Roles.CHROME_WINDOW) {
           this.contentScope.content.clearTimeout(this._autoMove);
-          let vc = Utils.getVirtualCursor(doc);
+          let vc = Utils.getVirtualCursor(this.contentScope.content.document);
           vc.moveNext(TraversalRules.Simple, acc, true);
         }
         break;
       }
       case Events.DOCUMENT_LOAD_COMPLETE:
       {
         this._autoMove = this.contentScope.content.setTimeout(() => {
           Utils.getVirtualCursor(aEvent.accessibleDocument)