1 // This is essentially a debug mode crashtest to make sure everything
2 // involved in a reload runs on the right thread. It relies on the
3 // assertions in necko.
8 onStartRequest: function test_onStartR(request) {},
10 onDataAvailable: function test_ODA() {
11 do_throw("Should not get any data!");
14 onStopRequest: function test_onStopR(request, status) {
20 var chan = NetUtil.newChannel({
21 uri: "http://localhost:4444",
22 loadUsingSystemPrincipal: true,
25 Ci.nsIRequest.LOAD_FRESH_CONNECTION |
26 Ci.nsIChannel.LOAD_INITIAL_DOCUMENT_URI;
27 chan.QueryInterface(Ci.nsIHttpChannel);
28 chan.asyncOpen(listener);