Closed
Bug 1120315
Opened 11 years ago
Closed 11 years ago
Notify tag/peer lost when app is switched to background
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(firefox36 wontfix, firefox37 wontfix, firefox38 fixed, b2g-v2.2 fixed, b2g-master fixed)
RESOLVED
FIXED
2.2 S5 (6feb)
People
(Reporter: dlee, Assigned: allstars.chh)
References
Details
(Whiteboard: [p=2])
Attachments
(4 files, 2 obsolete files)
|
4.26 KB,
patch
|
dlee
:
review+
bajaj
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
|
5.82 KB,
patch
|
dlee
:
review+
bajaj
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
|
7.04 KB,
patch
|
dlee
:
review+
bajaj
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
|
2.18 KB,
patch
|
smaug
:
review+
bajaj
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
If an app registers ontagfound then it will receive notification when device touch a NFC tag. But if this app is switch to background for some reason, gecko should sent the app "taglost" notification.
| Reporter | ||
Comment 1•11 years ago
|
||
Should we send taglost if an APP has registered ontagfound but he cannot handle previous tagfound notification ?
| Assignee | ||
Comment 2•11 years ago
|
||
This should be a follow-up for Bug 1082445, now we have a Browser API for NFC, so we should use the API to notify taglost/peerlost, instead of listening to visibilitychange.
| Assignee | ||
Comment 3•11 years ago
|
||
| Assignee | ||
Comment 4•11 years ago
|
||
| Assignee | ||
Comment 5•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8554474 -
Flags: review?(dlee)
| Assignee | ||
Updated•11 years ago
|
Attachment #8554477 -
Flags: review?(dlee)
| Assignee | ||
Updated•11 years ago
|
Attachment #8554478 -
Flags: review?(dlee)
| Assignee | ||
Updated•11 years ago
|
Summary: Notify tag lost when app is switched to background → Notify tag/peer lost when app is switched to background
| Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 8554478 [details] [diff] [review]
Part 3: notify tag/peerlost when losing focus.
Review of attachment 8554478 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/nfc/gonk/Nfc.js
@@ +176,5 @@
> target.sendAsyncMessage("NFC:DOMEvent", options);
> },
>
> setFocusApp: function setFocusApp(id, isFocus) {
> + if (this.focusApp != NFC.SYSTEM_APP_ID) {
missing |!isFocus| ?
checked with alive before, the UI behavior when changing focus app may look likes
1.setFocusApp(id of previous app, false);
2.setFocusApp(id of new app, true); --> may send this once or twice
Attachment #8554478 -
Flags: review?(dlee)
| Reporter | ||
Updated•11 years ago
|
Attachment #8554474 -
Flags: review?(dlee) → review+
| Reporter | ||
Updated•11 years ago
|
Attachment #8554477 -
Flags: review?(dlee) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8554478 -
Attachment is obsolete: true
Attachment #8555073 -
Flags: review?(dlee)
| Assignee | ||
Comment 8•11 years ago
|
||
Attachment #8555073 -
Attachment is obsolete: true
Attachment #8555073 -
Flags: review?(dlee)
Attachment #8555090 -
Flags: review?(dlee)
| Reporter | ||
Comment 9•11 years ago
|
||
Comment on attachment 8555090 [details] [diff] [review]
Part 3: notify tag/peerlost when losing focus. v3.
Review of attachment 8555090 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks
Attachment #8555090 -
Flags: review?(dlee) → review+
| Assignee | ||
Updated•11 years ago
|
| Assignee | ||
Comment 10•11 years ago
|
||
Hi, smaug
Can you help to review the comments updated in MozNFC.webidl?
Thanks
Attachment #8555642 -
Flags: review?(bugs)
Updated•11 years ago
|
Attachment #8555642 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/d2c152107337
https://hg.mozilla.org/integration/b2g-inbound/rev/4152c86ec943
https://hg.mozilla.org/integration/b2g-inbound/rev/f97fb74d8120
https://hg.mozilla.org/integration/b2g-inbound/rev/3091c49631a2
Whiteboard: [p=2]
Target Milestone: --- → 2.2 S5 (6feb)
| Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 8554474 [details] [diff] [review]
Part 1: revert Bug 1082445
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Bug 1082445
User impact if declined:
Possibly cannot receive NFC events.
Testing completed:
Manually.
Risk to taking this patch (and alternatives if risky):
No.
String or UUID changes made by this patch:
No.
Attachment #8554474 -
Flags: approval-mozilla-b2g37?
| Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 8554477 [details] [diff] [review]
Part 2: rename to changed.
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Bug 1082445
User impact if declined:
Possibly cannot receive NFC event.
Testing completed:
Manually
Risk to taking this patch (and alternatives if risky):
No
String or UUID changes made by this patch:
Updated uuid in nsINfcContentHelper.idl, which is an internal IDL.
Attachment #8554477 -
Flags: approval-mozilla-b2g37?
| Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8555090 [details] [diff] [review]
Part 3: notify tag/peerlost when losing focus. v3.
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Bug 1082445
User impact if declined:
Possibly cannot receive NFC event.
Testing completed:
Manually.
Risk to taking this patch (and alternatives if risky):
No.
String or UUID changes made by this patch:
internal IDL - nsINfcContentHelper.idl.
Attachment #8555090 -
Flags: approval-mozilla-b2g37?
| Assignee | ||
Comment 15•11 years ago
|
||
Comment on attachment 8555642 [details] [diff] [review]
Part 4: update comments in MozNFC.webidl
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Bug 1082445
User impact if declined:
No, this patch just updated documentation.
Testing completed:
Manually.
Risk to taking this patch (and alternatives if risky):
No.
String or UUID changes made by this patch:
No.
Attachment #8555642 -
Flags: approval-mozilla-b2g37?
Comment 16•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4152c86ec943
https://hg.mozilla.org/mozilla-central/rev/f97fb74d8120
https://hg.mozilla.org/mozilla-central/rev/3091c49631a2
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment #8554474 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Updated•11 years ago
|
Attachment #8554477 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Updated•11 years ago
|
Attachment #8555090 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Updated•11 years ago
|
Attachment #8555642 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Comment 17•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/cbcf1d1701a5
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/83890dca4ed7
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/b16a74a70e57
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/1ff75bfd605c
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
status-firefox36:
--- → wontfix
status-firefox37:
--- → wontfix
status-firefox38:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•