[Pkg-mozext-commits] [firegestures] 07/18: [41.0a1] fix: BrowserUtils.getFocusSync is not a function
David Prévot
taffit at moszumanska.debian.org
Sat May 23 10:58:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firegestures.
commit 70c35f01609bce048bb31c1e113209c33dd35055
Author: Gomita <gomita at xuldev.org>
Date: Sun May 17 01:31:15 2015 +0900
[41.0a1] fix: BrowserUtils.getFocusSync is not a function
---
chrome/content/firegestures/browser.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/firegestures/browser.js b/chrome/content/firegestures/browser.js
index a33c62d..e79259c 100644
--- a/chrome/content/firegestures/browser.js
+++ b/chrome/content/firegestures/browser.js
@@ -668,7 +668,8 @@ var FireGestures = {
if (this.isRemote) {
return this._selectedText;
}
- var [elt, win] = BrowserUtils.getFocusSync(document);
+ var win = document.commandDispatcher.focusedWindow;
+ var elt = document.commandDispatcher.focusedElement;
var sel = win.getSelection().toString();
if (!sel && elt instanceof Ci.nsIDOMNSEditableElement) {
if (elt instanceof Ci.nsIDOMHTMLTextAreaElement ||
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firegestures.git
More information about the Pkg-mozext-commits
mailing list