Closed Bug 917176 Opened 11 years ago Closed 11 years ago

[Wifi] Support list imported CA in NSS

Categories

(Firefox OS Graveyard :: Wifi, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.0, tracking-b2g:backlog)

RESOLVED FIXED
2.0 S1 (9may)
feature-b2g 2.0
tracking-b2g backlog

People

(Reporter: chucklee, Assigned: chucklee)

References

Details

Attachments

(2 files, 15 obsolete files)

1.29 KB, patch
Details | Diff | Splinter Review
7.39 KB, patch
Details | Diff | Splinter Review
The API should look like nsIDOMDOMRequest getCaList(); Should only list CAs imported by wifi manager, so we need to find a identifying method in Bug 917102.
Blocks: 922930
blocking-b2g: --- → 1.3+
Target Milestone: --- → 1.3 Sprint 4 - 11/8
Whiteboard: [FT:RIL]
Target Milestone: 1.3 Sprint 4 - 11/8 → 1.3 Sprint 5 - 11/22
Target Milestone: 1.3 Sprint 5 - 11/22 → 1.3 Sprint 6 - 12/6
Attached patch 0001. IDL Change. (obsolete) — Splinter Review
Attachment #8336563 - Flags: review?(vchang)
Attachment #8336563 - Flags: review?(mrbkap)
Attached patch 0002. DOM API implementation. (obsolete) — Splinter Review
Use X509CertDB to get cert list directly.
Attachment #8336564 - Flags: review?(vchang)
Attachment #8336564 - Flags: review?(mrbkap)
Attachment #8336564 - Flags: review?(brian)
I'm going to review this tomorrow (California time).
Attachment #8336563 - Flags: review?(mrbkap) → review+
Comment on attachment 8336564 [details] [diff] [review] 0002. DOM API implementation. Review of attachment 8336564 [details] [diff] [review]: ----------------------------------------------------------------- r=me pending bsmith's review of the NSS bits.
Attachment #8336564 - Flags: review?(mrbkap) → review+
Attachment #8336564 - Flags: review?(brian) → review+
Attachment #8336563 - Flags: review?(vchang)
Attachment #8336564 - Flags: review?(vchang)
Attached patch 0001. IDL Change. V2 (obsolete) — Splinter Review
1. Change API function name. 2. Change id of returned object.
Attachment #8336563 - Attachment is obsolete: true
Attached patch 0002. DOM API implementation. V2 (obsolete) — Splinter Review
1. Changes corresponding to API function name change. 2. Remove support for user certificate.
Attachment #8336564 - Attachment is obsolete: true
The user story bug this blocks (bug 922930) has a target milestone of future, so this is not a committed feature for 1.3. Non-committed features for 1.3 should not block the release.
blocking-b2g: 1.3+ → 1.3?
Attached patch 0001. IDL Change. V3 (obsolete) — Splinter Review
Rebase.
Attachment #8339793 - Attachment is obsolete: true
Attached patch 0002. DOM API implementation. V3 (obsolete) — Splinter Review
Rebase
Attachment #8339794 - Attachment is obsolete: true
blocking-b2g: 1.3? → 1.4+
Target Milestone: 1.3 Sprint 6 - 12/6 → ---
Blocks: 953237
Attached patch 0001. IDL Change. V4 (obsolete) — Splinter Review
Rebase.
Attachment #8343508 - Attachment is obsolete: true
Attachment #8371278 - Attachment description: 1001. IDL Change. V4 → 0001. IDL Change. V4
Attached patch 0002. DOM API implementation. V4 (obsolete) — Splinter Review
Rebase.
Attachment #8343509 - Attachment is obsolete: true
After discussing PM, it is not an 1.4+ bug. Put it in backlog.
blocking-b2g: 1.4+ → backlog
Attached patch 0002. DOM API implementation. V5 (obsolete) — Splinter Review
Rebase.
Attachment #8371279 - Attachment is obsolete: true
Whiteboard: [FT:RIL]
Attached patch 0001. WebIDL Change. (obsolete) — Splinter Review
Update to webIDL.
Attachment #8371278 - Attachment is obsolete: true
Attachment #8406729 - Flags: review?(mrbkap)
Attached patch 0002. DOM API implementation. V6 (obsolete) — Splinter Review
Update to webIDL, add new interface.
Attachment #8392705 - Attachment is obsolete: true
Attachment #8406731 - Flags: review?(mrbkap)
Attached patch 0001. WebIDL Change. V2 (obsolete) — Splinter Review
Update according to bug 917102 comment 82.
Attachment #8406729 - Attachment is obsolete: true
Attachment #8406729 - Flags: review?(mrbkap)
Attachment #8408105 - Flags: review?(mrbkap)
Attached patch 0002. DOM API implementation. V7 (obsolete) — Splinter Review
Update based on WebIDL change.
Attachment #8406731 - Attachment is obsolete: true
Attachment #8406731 - Flags: review?(mrbkap)
Attachment #8408108 - Flags: review?(mrbkap)
Comment on attachment 8408105 [details] [diff] [review] 0001. WebIDL Change. V2 Review of attachment 8408105 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/webidl/MozWifiManager.webidl @@ +218,5 @@ > DOMString certNickname); > > /** > + * Get list of imported WIFI certificates. > + * onsuccess: We have successfully get imported certificate list. Nit: "We have successfully gotten the imported certificate list."
Attachment #8408105 - Flags: review?(mrbkap) → review+
Comment on attachment 8408108 [details] [diff] [review] 0002. DOM API implementation. V7 Review of attachment 8408108 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/wifi/DOMWifiManager.js @@ +263,5 @@ > Services.DOMRequest.fireError(request, msg.data); > break; > > + case "WifiManager:getImportedCerts:Return:OK": > + Services.DOMRequest.fireSuccess(request, exposeReadOnly(msg.data)); This won't work anymore. I believe that you're going to have to use some of the APIs on Components.utils to do this properly. See in particular <https://developer.mozilla.org/en-US/docs/Components.utils.createObjectIn>. The idea is that instead of exposing the chrome object directly to content, you expose a content object to content and no security stuff has to be done.
Attachment #8408108 - Flags: review?(mrbkap)
Attached patch 0002. DOM API implementation. V8 (obsolete) — Splinter Review
Address comment 19.
Attachment #8408108 - Attachment is obsolete: true
Attachment #8410914 - Flags: review?(mrbkap)
Hi Blake, I wonder should I create an interface for returning result of |DOMRequest.onsuccess| like bug 917102, or using |Cu.createObjectIn()| in this patch (if this passed your review)?
Attached patch 0002. DOM API implementation. V9 (obsolete) — Splinter Review
Rebase.
Attachment #8410914 - Attachment is obsolete: true
Attachment #8410914 - Flags: review?(mrbkap)
Attachment #8413588 - Flags: review?(mrbkap)
Comment on attachment 8413588 [details] [diff] [review] 0002. DOM API implementation. V9 Looks good. Thanks.
Attachment #8413588 - Flags: review?(mrbkap) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S1 (9may)
feature-b2g: --- → 2.0
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: