Bug 977479 - updateUpStream function in NetworkService.js doesn't work. r=vchang
authorDimi Lee <dlee@mozilla.com>
Thu, 27 Feb 2014 15:40:00 +0800
changeset 170946 1337df57a282bd15842331123cbd57f3f3891aa9
parent 170945 661860e4d83347ad9e99da504ea8209f7d3720ff
child 170947 7c6b593daeb1900932418203fa5b1f1d99ae5293
push id26307
push userryanvm@gmail.com
push dateThu, 27 Feb 2014 21:32:10 +0000
treeherdermozilla-central@229b675b810b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvchang
bugs977479
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 977479 - updateUpStream function in NetworkService.js doesn't work. r=vchang
dom/system/gonk/NetworkService.js
--- a/dom/system/gonk/NetworkService.js
+++ b/dom/system/gonk/NetworkService.js
@@ -510,25 +510,27 @@ NetworkService.prototype = {
       callback.enableUsbRndisResult(data.result, data.enable);
     });
   },
 
   updateUpStream: function(previous, current, callback) {
     let params = {
       cmd: "updateUpStream",
       isAsync: true,
-      previous: previous,
-      current: current
+      preInternalIfname: previous.internalIfname,
+      preExternalIfname: previous.externalIfname,
+      curInternalIfname: current.internalIfname,
+      curExternalIfname: current.externalIfname
     };
 
     this.controlMessage(params, function(data) {
       let code = data.resultCode;
       let reason = data.resultReason;
       if(DEBUG) debug("updateUpStream result: Code " + code + " reason " + reason);
-      callback.updateUpStreamResult(!isError(code), data.current.externalIfname);
+      callback.updateUpStreamResult(!isError(code), data.curExternalIfname);
     });
   },
 
   shutdown: false,
 
   observe: function observe(aSubject, aTopic, aData) {
     switch (aTopic) {
       case "xpcom-shutdown":