Closed
Bug 952217
Opened 11 years ago
Closed 11 years ago
[B2G][NFC] Have a separate NFC application API and NFC Manager API
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(blocking-b2g:1.4+, firefox28 wontfix, firefox29 fixed, b2g-v1.4 fixed)
People
(Reporter: dgarnerlee, Assigned: dgarnerlee)
References
Details
(Whiteboard: [FT:RIL] sharing video/audio/image)
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
smaug
:
superreview+
|
Details | Diff | Splinter Review |
The current NFC DOM has the W3C part, and a set of internal APIs for the NFC Manager to use. As per Bug 933093, https://bugzilla.mozilla.org/show_bug.cgi?id=933093#c76
The NFC API should keep them separate applications are never exposed to NFC Manager only APIs.
Assignee | ||
Comment 1•11 years ago
|
||
> The NFC applications should not be exposed to NFC Manager only APIs.
Blocks: b2g-nfc
blocking-b2g: --- → 1.4?
Assignee | ||
Comment 2•11 years ago
|
||
Implementation note: A completely separate mozNfcManager and mozNfc DOM object has one downside: NfcContentHelper must be instantiated once for each navigator DOM, or 2 times per clild process.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dgarnerlee
Assignee | ||
Comment 3•11 years ago
|
||
This turned out to be a simple refactor, if the mozNfc just inherits from the NFC Manager. I did split 2 ChromeOnly functions in mozNfc out into a partial interface since it wasn't in the W3C spec.
Comments?
Attachment #8356828 -
Flags: feedback?(bugs)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8356829 -
Flags: feedback?(bugs)
Assignee | ||
Updated•11 years ago
|
Attachment #8356828 -
Flags: feedback?(bugs) → review?(bugs)
Assignee | ||
Updated•11 years ago
|
Attachment #8356829 -
Flags: feedback?(bugs) → review?(bugs)
Updated•11 years ago
|
Attachment #8356828 -
Flags: review?(bugs) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8356829 [details] [diff] [review]
Bug 952217. Update NFC UUIDs for NFC Manager API refactor. Part 2.
I don't understand why this is needed.
Attachment #8356829 -
Flags: review?(bugs)
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8356829 [details] [diff] [review]
Bug 952217. Update NFC UUIDs for NFC Manager API refactor. Part 2.
You're right. No api actually changed, marking obsolete.
Attachment #8356829 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Remove Part 1. is sr= needed for this webidl DOM change?
try in progress: https://tbpl.mozilla.org/?tree=Try&rev=33d84b25607c
Attachment #8360136 -
Flags: superreview?(bugs)
Assignee | ||
Updated•11 years ago
|
Attachment #8356828 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
Also remove [Patch] in subject line with -k.
Attachment #8360136 -
Attachment is obsolete: true
Attachment #8360136 -
Flags: superreview?(bugs)
Attachment #8360140 -
Flags: superreview?(bugs)
Assignee | ||
Comment 10•11 years ago
|
||
Try test case error. I'll check.
What's the correct action here? MozNfc from test_interfaces.html was removed earilier because it was hidden behind "nfc" permissions. Now the test case is asking for MozNfc to be declared again due to inheriting from the privilaged MozNfcManager no-interface (permission: "nfc-manager")?
Comment 11•11 years ago
|
||
MozNfc inheriting what? I see it inheriting only EventTarget.
Comment 12•11 years ago
|
||
Oh, aren't you missing Func="Navigator::HasNfcSupport
Assignee | ||
Comment 13•11 years ago
|
||
Yeah I noticed that immediately after I wrote the comment, I'm adding it back, and trying the patch again.
Assignee | ||
Comment 14•11 years ago
|
||
Merge to head, re-add missing HasNfcSupport declaration.
Attachment #8360140 -
Attachment is obsolete: true
Attachment #8360140 -
Flags: superreview?(bugs)
Attachment #8360800 -
Flags: superreview?(bugs)
Assignee | ||
Comment 15•11 years ago
|
||
Try in progress: https://tbpl.mozilla.org/?tree=Try&rev=07b5e356cb4f
Assignee | ||
Comment 16•11 years ago
|
||
^-- Mostly passed, and the NFC related test_interfaces.html DOM test is fixed.
Updated•11 years ago
|
Attachment #8360800 -
Flags: superreview?(bugs) → superreview+
Assignee | ||
Updated•11 years ago
|
Attachment #8360800 -
Attachment description: (v2) Bug 952217. Add NFC Manager permission check for NFC Manager APIs. r=smaug → (v2) Bug 952217. Add NFC Manager permission check for NFC Manager APIs. sr, r=smaug
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 17•11 years ago
|
||
Keywords: checkin-needed
Updated•11 years ago
|
Whiteboard: [FT:RIL] sharing video/audio/image
Comment 18•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3 C3/1.4 S3(31jan)
Updated•11 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•