40 onStartRequest:
function (req, con) {
41 log(
"*** starting uri is: " + this.
uri.spec);
42 log(
"*** destination uri is: " + this.checker.baseChannel.URI.spec);
43 req.cancel(Components.results.NS_ERROR_FAILURE);
45 onStopRequest:
function (req, con, stat) {
53 var
ioService = Components.classes[
"@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
54 var uriChecker = Components.classes[
"@mozilla.org/network/urichecker;1"].getService(Components.interfaces.nsIURIChecker);
57 var uriStr =
"http://www.podtrac.com/pts/redirect.mp3?http://aolradio.podcast.aol.com/twit/TWiT0076H.mp3";
66 uriChecker.asyncCheck(obs,
null);
function reqObserver(uri, check)
Unit test for retrieving the final URL for a redirected URL.