Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #9 remove about:home since through that you can setup profile
syncing which could help break out of the lock down
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); | ||
const Ci = Components.interfaces; | ||
const Cc = Components.classes; | ||
|
||
function AboutHandler() {} | ||
AboutHandler.prototype = { | ||
/* nsIAboutModule */ | ||
newChannel: function(aURI) { | ||
var ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); | ||
var uri = ioService.newURI("about:blank", null, null); | ||
var channel = ioService.newChannelFromURI(uri, null).QueryInterface(Ci.nsIHttpChannel); | ||
return channel; | ||
}, | ||
|
||
getURIFlags: function getURIFlags(aURI) { | ||
return 0; | ||
}, | ||
|
||
classDescription: "about home replacement", | ||
contractID: "@mozilla.org/network/protocol/about;1?what=home", | ||
classID: Components.ID("{c9201eeb-fbbd-459d-91d2-61e758e49ea2}"), | ||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]), | ||
}; | ||
|
||
if (XPCOMUtils.generateNSGetFactory) // FF4 | ||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([AboutHandler]); | ||
else // FF3.6 | ||
var NSGetModule = XPCOMUtils.generateNSGetModule([AboutHandler]); |