Bug 1233962 P2 Fix service worker xpcshell test to return a dispatcher from ChannelIntercepted(). r=jdm a=ritu
authorBen Kelly <ben@wanderview.com>
Tue, 22 Dec 2015 11:57:11 -0800
changeset 305881 6c6b6dc18c7629e915ef86a3e6384e199ab49257
parent 305880 e8887f01eebab619627735bad0d1126c86a5d1ad
child 305882 ff3b505eabf0c896ef94cccf1101a79bc43cf28b
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm, ritu
bugs1233962
milestone44.0
Bug 1233962 P2 Fix service worker xpcshell test to return a dispatcher from ChannelIntercepted(). r=jdm a=ritu
netwerk/test/unit/test_synthesized_response.js
--- a/netwerk/test/unit/test_synthesized_response.js
+++ b/netwerk/test/unit/test_synthesized_response.js
@@ -64,16 +64,19 @@ function make_channel(url, body, cb) {
 
         NetUtil.asyncCopy(synthesized, channel.responseBody, function() {
           channel.finishSynthesizedResponse('');
         });
       }
       if (cb) {
         cb(channel);
       }
+      return {
+        dispatch: function() { }
+      };
     },
   };
   return chan;
 }
 
 const REMOTE_BODY = "http handler body";
 const NON_REMOTE_BODY = "synthesized body";
 const NON_REMOTE_BODY_2 = "synthesized body #2";