Closed Bug 1034474 Opened 10 years ago Closed 10 years ago

B2G NFC: onpeerlost is never called

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S6 (18july)

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file, 1 obsolete file)

onpeerlost is never called, 
The line 
        gMessageManager.notifyPeerEvent(this.currentPeerAppId, NFC.NFC_PEER_EVENT_LOST);
seems to have some problem, as the this.currentPeerAppId is null.
Assignee: nobody → allstars.chh
Attached patch Patch (obsolete) — Splinter Review
Attachment #8451427 - Flags: review?(dlee)
Attached patch Patch.Splinter Review
add reset onpeerlost callback.
Attachment #8451427 - Attachment is obsolete: true
Attachment #8451427 - Flags: review?(dlee)
Attachment #8451429 - Flags: review?(dlee)
Comment on attachment 8451429 [details] [diff] [review]
Patch.

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

Looks good, thank you
Attachment #8451429 - Flags: review?(dlee) → review+
https://hg.mozilla.org/mozilla-central/rev/daf571adfe69
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S6 (18july)
Whiteboard: [p=1]
Comment on attachment 8451429 [details] [diff] [review]
Patch.

[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Bug 933136 

User impact if declined: 
onpeerlost cannnot be notified.

Testing completed: 
Testing on manually on device.

Risk to taking this patch (and alternatives if risky): 
Gaia app cannot receive onpeerlost callback.

String or UUID changes made by this patch:
No
Attachment #8451429 - Flags: approval-mozilla-b2g32?
(In reply to Yoshi Huang[:allstars.chh] from comment #6)
> Risk to taking this patch (and alternatives if risky): 
> Gaia app cannot receive onpeerlost callback.
> 
Sorry, the risk should be none.
(In reply to Yoshi Huang[:allstars.chh] from comment #6)
> Comment on attachment 8451429 [details] [diff] [review]
> Patch.
> 
> [Approval Request Comment]
> Bug caused by (feature/regressing bug #):
> Bug 933136 
> 
> User impact if declined: 
> onpeerlost cannnot be notified.
> 
> Testing completed: 
> Testing on manually on device.
> 
> Risk to taking this patch (and alternatives if risky): 
> Gaia app cannot receive onpeerlost callback.
> 
> String or UUID changes made by this patch:
> No

Hi Yoshi,

This seems to be an old regression, so not sure why we would take this on 2.0. We are taking very limited fixes on 2.0 at this point and this does not look like a blocker (2.0+), so  hoping its fine to resolve this in 2.1. 

Also can you help on understanding what the end user scenario/experience is in this case "Gaia app cannot receive onpeerlost callback." ?
(In reply to bhavana bajaj [:bajaj] from comment #8)
> Hi Yoshi,
> 
> This seems to be an old regression, so not sure why we would take this on
> 2.0. We are taking very limited fixes on 2.0 at this point and this does not
> look like a blocker (2.0+), so  hoping its fine to resolve this in 2.1. 
>
It's already fixed in 2.1

> Also can you help on understanding what the end user scenario/experience is
> in this case "Gaia app cannot receive onpeerlost callback." ?
Actually the Gaia apps don't listen to this onpeerlost callback right now. (Therefore the problem isn't discovered in the first place). So there won't be any UX change even without this patch checkin.

But from engineering side I'd suggest we should checkin this patch.
In the case that if some certified app will need this callback to know the other device is already out of range.
Also we provide a onpeerlost callback in our Web NFC API, however it would be a problem if the implementation doesn't support this.
(In reply to Yoshi Huang[:allstars.chh] from comment #9)
> (In reply to bhavana bajaj [:bajaj] from comment #8)
> > Hi Yoshi,
> > 
> > This seems to be an old regression, so not sure why we would take this on
> > 2.0. We are taking very limited fixes on 2.0 at this point and this does not
> > look like a blocker (2.0+), so  hoping its fine to resolve this in 2.1. 
> >
> It's already fixed in 2.1
> 
> > Also can you help on understanding what the end user scenario/experience is
> > in this case "Gaia app cannot receive onpeerlost callback." ?
> Actually the Gaia apps don't listen to this onpeerlost callback right now.
> (Therefore the problem isn't discovered in the first place). So there won't
> be any UX change even without this patch checkin.
> 
> But from engineering side I'd suggest we should checkin this patch.
> In the case that if some certified app will need this callback to know the
> other device is already out of range.
> Also we provide a onpeerlost callback in our Web NFC API, however it would
> be a problem if the implementation doesn't support this.

I don't think this is blocking a critical end-user case. Might be good to fix it up from engg side, but the user impact has to be really high and basically something we would stop ship the release for, to land anything on 2.0 at this point.

This is fixed in 2.1 so it will get out next release.
Attachment #8451429 - Flags: approval-mozilla-b2g32? → approval-mozilla-b2g32-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: