Skip to content

Instantly share code, notes, and snippets.

@AutomatedTester
Created June 8, 2011 15:34
Show Gist options
  • Select an option

  • Save AutomatedTester/1014651 to your computer and use it in GitHub Desktop.

Select an option

Save AutomatedTester/1014651 to your computer and use it in GitHub Desktop.
driver-component.js changes
David-Burnss-MacBook-Pro:components davidburns$ svn diff driver-component.js
Index: driver-component.js
===================================================================
--- driver-component.js (revision 12372)
+++ driver-component.js (working copy)
@@ -126,8 +126,7 @@
return ServerModule;
}
-WebDriverServer.prototype.classID = CLASS_ID;
-Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
-if (XPCOMUtils.generateNSGetFactory) {
- const NSGetFactory = XPCOMUtils.generateNSGetFactory([WebDriverServer]);
+function NSGetFactory(aCompMgr, aFileSpec) {
+ return ServerFactory;
}
+WebDriverServer.prototype.classID = CLASS_ID;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment