canmove, Confirmed users
1,220
edits
Ptheriault (talk | contribs) |
Ptheriault (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
== Overview == | |||
=== Gecko API Review Details === | === Gecko API Review Details === | ||
* API: Web NFC | * API: Web NFC | ||
* Review Date: September 2013 | * Review Date: September 2013 | ||
* Review Lead: Paul Theriault | * Review Lead: Paul Theriault | ||
This is a design review of the Web NFC API as currently designed, as of Sept 2, 2013. The API is not finalised but the Mozilla security team has been working with developers involved to provide security feedback to inform the finalization of this API, and guide future direction. While this review did cover some level of code review, final security code will be required once the implementation is stable, and there are apps planning to actually use this API. | This is a design review of the Web NFC API as currently designed, as of Sept 2, 2013. The API is not finalised but the Mozilla security team has been working with developers involved to provide security feedback to inform the finalization of this API, and guide future direction. While this review did cover some level of code review, final security code will be required once the implementation is stable, and there are apps planning to actually use this API. | ||
| Line 30: | Line 31: | ||
* Secure Element (GSMA) | * Secure Element (GSMA) | ||
==Architecture== | |||
The diagram below shows the current interactions between the major components of Web NFC. | The diagram below shows the current interactions between the major components of Web NFC. | ||
[[image:NFC_diagram_0.1.png|1000px]] | [[image:NFC_diagram_0.1.png|1000px]] | ||
==== | ===Components=== | ||
From order of lowest layer to highest, the main system components are described below. | |||
====NFCd==== | |||
Receives NFC events & messages from hardware. Communicates these messages to Gecko via a JSON based protocol (see [https://bugzilla.mozilla.org/show_bug.cgi?id=897312 bug 897312] for a description of this protocol. | |||
Note: currently this is a JSON based protocol, but an upcoming change will likely convert this to be a binary-based protocol instead. | |||
====NFC Worker==== | |||
====NFC.js==== | |||
====MozNfc API==== | |||
==== System App==== | |||
==== NFC Client App==== | |||
==== Other Gaia App==== | |||
===Relevant Source Code=== | |||
Key Bugs | |||
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=749325 | |||
Feature Bug (meta): https://bugzilla.mozilla.org/show_bug.cgi?id=860906 | |||
Dependent bugs: https://bugzilla.mozilla.org/showdependencytree.cgi?maxdepth=2&id=860906&hide_resolved=0 | |||
Gonk | |||
860907: NFC Daemon for B2G (daemon for supporting lib-nxp) | |||
906579: B2G NFC: NFC Daemon for supporting libnfc-nci (daemon for supporting lib-nci) | |||
897312: B2G NFC: Define protocol to communicate between nfcd and b2g | |||
Gecko | |||
674741: WebNFC (near-field communication) | |||
Gaia | |||
860910: B2G Gaia Integration for NFC | |||
Secure Element Support | |||
879861: NFC Secure Element Support | |||
884594: Support Nfc Access Control for Secure Element Access | |||
===Permission Model=== | |||
===Parent/Child Communication=== | |||
===Code Review Notes=== | ===Code Review Notes=== | ||