Closed Bug 1085292 Opened 10 years ago Closed 10 years ago

B2G NFC: After taglost, the tag object got in ontagfound should be invalid.

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S8 (7Nov)

People

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

References

Details

(Whiteboard: [p=1])

Attachments

(1 file, 1 obsolete file)

After Bug 991970 is landed, the tag object should be invalid after ontaglost is called. Calling those MozNFCTag APIs on the tag object should throw.
Assignee: nobody → allstars.chh
Comment on attachment 8514109 [details] [diff] [review] Patch Review of attachment 8514109 [details] [diff] [review]: ----------------------------------------------------------------- Hi Yoshi, Looks good, but one question before r+ this patch. Why do we need to to expose invalidate API in WebIDL instead of handle isLost in notifyTagLost and notifyPeerLost? ::: dom/webidl/MozNFCPeer.webidl @@ +24,5 @@ > + [ChromeOnly] > + void invalidate(); > + > + /** > + * Indicate if this tag is already lost. Nits. this peer
(In reply to Dimi Lee[:dimi][:dlee] from comment #2) > Comment on attachment 8514109 [details] [diff] [review] > Patch > > Review of attachment 8514109 [details] [diff] [review]: > ----------------------------------------------------------------- > > Hi Yoshi, > Looks good, but one question before r+ this patch. > Why do we need to to expose invalidate API in WebIDL instead of handle > isLost in notifyTagLost and notifyPeerLost? > Use isLost only is also okay. I'll remove invalidate.
Attached patch Patch. v2.Splinter Review
Attachment #8514109 - Attachment is obsolete: true
Attachment #8514109 - Flags: review?(dlee)
Attachment #8514765 - Flags: review?(dlee)
Attachment #8514765 - Flags: review?(dlee) → review+
Comment on attachment 8514765 [details] [diff] [review] Patch. v2. Review of attachment 8514765 [details] [diff] [review]: ----------------------------------------------------------------- add r? to smaug for the WebIDL changed.
Attachment #8514765 - Flags: review?(bugs)
Attachment #8514765 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: