Closed Bug 794681 Opened 12 years ago Closed 12 years ago

Invisible IFRAME for on B2G


(Firefox OS Graveyard :: General, defect)

Not set


(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)

blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed


(Reporter: jedp, Assigned: zaach)



(Whiteboard: [qa-][feature-complete])

      No description provided.
Could we please get some details in this bug? :)
Ben, correct me if I am wrong, please, but for what I saw in the identity b2g implementation plan, this bug seems to be related with the creation of an invisible iframe by the gaia system app to load and the injection of the approriate JS channel, the crypto and the cert-storage components into it.
OS: Mac OS X → All
Hardware: x86 → All
Fernando: that's right.

When is called, the following steps should happen:

- if nothing needs to happen, then handle the ready() callback natively, as already happens.

- if a valid certificate exists for the user who should be logged in, then proceed with existing native implementation that generates assertion.

- if an assertion SHOULD be generated, but no certificate is available, then open up an invisible IFRAME to /communication_iframe so that the logic for key generation and communication with the server for certification can be performed. This IFRAME should be opened up exactly like the trusted popup for, in the same system cookie jar, only of course invisible. Once certification has been performed, and the cert is saved to the native store, then control is handed back to the native implementation for assertion generation and callback invocation.
(In reply to Ben Adida [:benadida] from comment #3)
> Fernando: that's right.
> When is called, the following steps should happen:

Is there any documentation somewhere for I would like to understand how it works and how it should interact with Gaia.
Vivien: sure is documented here:

But before you write any patches, please check in with us on #b2gpay as we actually have much of this in progress.
Assignee: nobody → zack.carter
Vivien: I realize I forgot to mark this assigned, sorry about that! I'm working to fix that now. We'll definitely reach out with questions on this issue.
Per today's b2g meeting - at-risk features don't block. So this shouldn't be a +.
blocking-basecamp: + → ?
this is absolutely critical. Without it, logging into marketplace won't work. Back to +.
blocking-basecamp: ? → +
In advance of our target this friday, Zach and I got this working this evening.  So I think we're in good shape.
the code for this bug is pretty much impossible to separate from that of bug 794680, so we'll close this bug when that patch lands.
fixed as part of bug 794680 patch
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Whiteboard: [qa-] → [qa-][feature-complete]
You need to log in before you can comment on or make changes to this bug.