Closed Bug 963471 Opened 11 years ago Closed 11 years ago

doFileTransfer is not defined nfc_handover_manager.js

Categories

(Firefox OS Graveyard :: NFC, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 966009

People

(Reporter: johnhu, Unassigned)

References

Details

E/GeckoConsole( 1835): [JavaScript Error: "doFileTransfer is not defined" {file: "app://system.gaiamobile.org/js/nfc_handover_manager.js" line: 273}] E/GeckoConsole( 1835): [JavaScript Error: "NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "doFileTransfer is not defined" {file: "app://system.gaiamobile.org/js/nfc_handover_manager.js" line: 273}]'[JavaScript Error: "doFileTransfer is not defined" {file: "app://system.gaiamobile.org/js/nfc_handover_manager.js" line: 273}]' when calling method: [nsIDOMSystemMessageCallback::handleMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageManager.js" line: 97}] I had checked the code of nfc_handover_manager.js. It uses "doFileTransfer" within an object instance without "this". The correct one should be "this.doFileTransfer.bind(this)". We still need to bind this because it uses "this" inside of this method.
Blocks: 903253
Blocks: 948362
Blocks: 948363
Master: 869e51f87d665d66c7345e38f6cf9c42c1c52fbd This change in Mozilla master already has the change / fix for the issue. Could we close this bug now?
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.