summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit/test_redirect_from_script_after-open_passing.js
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/unit/test_redirect_from_script_after-open_passing.js')
-rw-r--r--netwerk/test/unit/test_redirect_from_script_after-open_passing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/netwerk/test/unit/test_redirect_from_script_after-open_passing.js b/netwerk/test/unit/test_redirect_from_script_after-open_passing.js
index 315f888f64..49fe4e9ec7 100644
--- a/netwerk/test/unit/test_redirect_from_script_after-open_passing.js
+++ b/netwerk/test/unit/test_redirect_from_script_after-open_passing.js
@@ -86,7 +86,7 @@ var testHeaderName = "X-Redirected-By-Script";
var testHeaderVal = "Success";
var testHeaderVal2 = "Success on server 2";
-function make_channel(url, callback, ctx) {
+function make_channel(url) {
return NetUtil.newChannel({ uri: url, loadUsingSystemPrincipal: true });
}
@@ -130,7 +130,7 @@ Redirector.prototype = {
"nsISupportsWeakReference",
]),
- observe(subject, topic, data) {
+ observe(subject, topic) {
if (topic == redirectHook) {
if (!(subject instanceof Ci.nsIHttpChannel)) {
do_throw(redirectHook + " observed a non-HTTP channel");