[Pkg-mozext-commits] [firegestures] 03/06: Imported Upstream version 1.9~b6
David Prévot
taffit at moszumanska.debian.org
Mon May 11 18:27:31 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 7b5af526399a3ae9be1aadc1ed17d9455eb19e9e
Merge: f065569 90c9fd1
Author: David Prévot <david at tilapin.org>
Date: Mon May 11 13:46:54 2015 -0400
Imported Upstream version 1.9~b6
chrome/content/firegestures/browser.js | 10 ++++++++--
install.rdf | 2 +-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --cc chrome/content/firegestures/browser.js
index 46d5890,858067f..7563a36
mode 100755,100644..100755
--- a/chrome/content/firegestures/browser.js
+++ b/chrome/content/firegestures/browser.js
@@@ -65,10 -74,14 +65,11 @@@ var FireGestures =
gBrowser.mCurrentBrowser.messageManager.sendAsyncMessage(aName, aData);
},
- // receive message from remote browser
receiveMessage: function(aMsg) {
- dump(aMsg.name + " " + aMsg.data.toSource() + " " + (aMsg.objects.elt || aMsg.objects.toSource()) + "\n"); // #debug
switch (aMsg.data.name) {
case "sourceNode":
- // replace |sourceNode| of gesture handler by CPOW object
this._gestureHandler.sourceNode = aMsg.objects.elt;
+ this._selectedText = aMsg.objects.elt.ownerDocument.getSelection().toString();
break;
case "linkURLs":
this._linkURLs = aMsg.data.linkURLs;
@@@ -612,7 -668,13 +613,12 @@@
return this.getImageURL(aNode);
},
- // [e10s]
+ _selectedText: null,
+
getSelectedText: function() {
+ if (this.isRemote) {
+ return this._selectedText;
+ }
return this.focusedWindow.getSelection().toString();
},
@@@ -989,9 -1083,10 +995,9 @@@
var engine = item.engine;
if (!engine)
break;
- var submission = engine.getSubmission(getBrowserSelection(), null);
+ var submission = engine.getSubmission(this.getSelectedText(), null);
if (!submission)
break;
- // [TreeStyleTab] the next line will be replaced to open child tab
gBrowser.loadOneTab(submission.uri.spec, {
postData: submission.postData,
relatedToCurrent: true
--
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