Bug 1098975 - sessionToken is missing in _createNFCPeer in nsNfc.js. r=dimi
authorYoshi Huang <allstars.chh@mozilla.com>
Fri, 14 Nov 2014 16:03:16 +0800
changeset 215761 04b94512ecc4e953ca0234ad5839abc9f5b2ff52
parent 215760 b242a330b77e12de8f45dc813cbd141ef38db1dc
child 215762 e73c8a4f5de0dedf8ffcdc8a30432022bcbc87a6
push id27825
push userryanvm@gmail.com
push dateFri, 14 Nov 2014 22:14:56 +0000
treeherdermozilla-central@99892bdd512d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdimi
bugs1098975
milestone36.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 1098975 - sessionToken is missing in _createNFCPeer in nsNfc.js. r=dimi
dom/nfc/nsNfc.js
--- a/dom/nfc/nsNfc.js
+++ b/dom/nfc/nsNfc.js
@@ -232,17 +232,17 @@ MozNFCImpl.prototype = {
   },
 
   getNFCPeer: function getNFCPeer(sessionToken) {
     if (!sessionToken || !this._nfcContentHelper.checkSessionToken(sessionToken, true)) {
       return null;
     }
 
     if (!this.nfcPeer || this.nfcPeer.session != sessionToken) {
-      this.nfcPeer = this._createNFCPeer();
+      this.nfcPeer = this._createNFCPeer(sessionToken);
     }
 
     return this.nfcPeer;
   },
 
   defineEventHandlerGetterSetter: function defineEventHandlerGetterSetter(name) {
     Object.defineProperty(this, name, {
       get: function get() {