Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Supporting new xpcom registration scheme introduced in ff4b2

  • Loading branch information...
commit 204498979138c86f338f3ca85b694ece6d3fa52a 1 parent a7bc63d
@dkapadia dkapadia authored
Showing with 15 additions and 5 deletions.
  1. +3 −0  chrome.manifest
  2. +11 −4 components/recap.js
  3. +1 −1  install.rdf
View
3  chrome.manifest
@@ -2,3 +2,6 @@ content recap content/
locale recap en-US locale/en-US/
skin recap classic/1.0 skin/
overlay chrome://browser/content/browser.xul chrome://recap/content/firefoxOverlay.xul
+component {2ada744a-7368-4399-9321-f342637bca76} components/recap.js
+contract @cs.princeton.edu/recap;1 {2ada744a-7368-4399-9321-f342637bca76}
+category profile-after-change RECAP @cs.princeton.edu/recap;1
View
15 components/recap.js
@@ -132,7 +132,7 @@ RecapService.prototype = {
"nsIObserverService");
switch (topic) {
- case "app-startup":
+ case "profile-after-change":
log("startup observed");
this._init();
break;
@@ -166,10 +166,17 @@ RecapService.prototype = {
},
_xpcom_categories: [{
- category: "app-startup",
+ category: "profile-after-change",
service: true
}]
};
-function NSGetModule(compMgr, fileSpec)
- XPCOMUtils.generateModule([RecapService]);
+/**
+* XPCOMUtils.generateNSGetFactory was introduced in Mozilla 2 (Firefox 4).
+* XPCOMUtils.generateNSGetModule is for Mozilla 1.9.2 (Firefox 3.6).
+*/
+if (XPCOMUtils.generateNSGetFactory)
+ var NSGetFactory = XPCOMUtils.generateNSGetFactory([RecapService]);
+else
+ var NSGetModule = XPCOMUtils.generateNSGetModule([RecapService]);
+
View
2  install.rdf
@@ -12,7 +12,7 @@
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- firefox -->
<em:minVersion>3.0.9</em:minVersion>
- <em:maxVersion>4.0b2pre</em:maxVersion>
+ <em:maxVersion>4.0b2</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
Please sign in to comment.
Something went wrong with that request. Please try again.