[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [meek/master] Say we support nsIObserver.



commit a46298eeb68f3a2f71a3acc16bc9ebc02877788f
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sat Mar 15 10:58:23 2014 -0700

    Say we support nsIObserver.
    
    I got this (seemingly benign) message in the error console:
    
    While creating services from category 'profile-after-change', service for entry 'MeekHTTPHelper', contract ID '@bamsoftware.com/meek-http-helper;1' does not implement nsIObserver.
    
    It doesn't appear to be necessary to actually define the "observe"
    method of nsIObserver. TorProtocolService from tor-launcher does not.
---
 firefox/components/main.js |    1 +
 1 file changed, 1 insertion(+)

diff --git a/firefox/components/main.js b/firefox/components/main.js
index dd22dca..ba7e33a 100644
--- a/firefox/components/main.js
+++ b/firefox/components/main.js
@@ -35,6 +35,7 @@ MeekHTTPHelper.prototype = {
     // https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/XPCOMUtils.jsm#generateQI%28%29
     QueryInterface: XPCOMUtils.generateQI([
         Components.interfaces.nsIServerSocketListener,
+        Components.interfaces.nsIObserver,
     ]),
 
     // nsIServerSocketListener implementation.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits