Bug 1015084: unit tests and fixes for NfcBuffer
Merge pull request #19597 from kamituel/Bug_1015084_throw_errors

Bug 1015084 - unit tests and fixes for NfcBuffer. r=alive