[NFC] |NfcPeer.sendNDEF| fails on emulator

RESOLVED FIXED in 2.0 S1 (9may)

Status

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: tzimmermann, Assigned: allstars.chh)

Tracking

unspecified
2.0 S1 (9may)
ARM
Gonk (Firefox OS)
Dependency tree / graph

Firefox Tracking Flags

(blocking-b2g:2.0+, b2g-v2.0 fixed)

Details

(Whiteboard: [p=1])

Attachments

(1 attachment)

NFC is enabled, but |NfcPeer.sendNDEF| fails because |NFC._enabled| is false. I can reproduce this with the test case that is attached to bug 980851.
Yoshi, this started happening after rebasing on bugs 970263 and 970251. Could you take a look?
Flags: needinfo?(allstars.chh)
I can out-comment the test near Nfc.js:579 to make NfcPeer.sendNDEF work.
Assignee: nobody → allstars.chh
Flags: needinfo?(allstars.chh)
blocking-b2g: --- → 2.0+
Summary: [NFC] |NfcPeer.sendNDEF| fails → [NFC] |NfcPeer.sendNDEF| fails on emulator
Posted patch PatchSplinter Review
Didn't have a test case because we still need to fix Bug 987596 first.
(In reply to Yoshi Huang[:allstars.chh] from comment #3)
> Created attachment 8411659 [details] [diff] [review]
> Patch
> 
> Didn't have a test case because we still need to fix Bug 987596 first.

Thanks Yoshi. I'll test this locally.
Comment on attachment 8411659 [details] [diff] [review]
Patch

Review of attachment 8411659 [details] [diff] [review]:
-----------------------------------------------------------------

Works.
Attachment #8411659 - Flags: feedback+
Attachment #8411659 - Flags: review?(dlee) → review+
https://hg.mozilla.org/mozilla-central/rev/1778e4c2abd7
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S1 (9may)
Whiteboard: [p=1]
You need to log in before you can comment on or make changes to this bug.