[Pkg-mozext-commits] [requestpolicy] 123/280: fix a bug

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:30:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 08978bbbfdf1b10baf041caf3e608957a32bf30c
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue Jan 6 16:13:10 2015 +0100

    fix a bug
    
    rpService is not accessible from frame scripts
---
 src/content/ui/frame.dom-content-loaded.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/content/ui/frame.dom-content-loaded.js b/src/content/ui/frame.dom-content-loaded.js
index 3e1c91d..b327955 100644
--- a/src/content/ui/frame.dom-content-loaded.js
+++ b/src/content/ui/frame.dom-content-loaded.js
@@ -233,14 +233,17 @@ let ManagerForDOMContentLoaded = (function() {
   function wrapWindowFunctions(aWindow) {
     wrapWindowFunction(aWindow, "open",
         function(url, windowName, windowFeatures) {
-          rpService.registerLinkClicked(aWindow.document.documentURI, url);
+          sendSyncMessage(C.MMID + ":notifyLinkClicked",
+                          {origin: aWindow.document.documentURI,
+                           dest: url});
         });
 
     wrapWindowFunction(aWindow, "openDialog",
         function() {
           // openDialog(url, name, features, arg1, arg2, ...)
-          rpService.registerLinkClicked(aWindow.document.documentURI,
-              arguments[0]);
+          sendSyncMessage(C.MMID + ":notifyLinkClicked",
+                          {origin: aWindow.document.documentURI,
+                           dest: arguments[0]});
         });
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list