Closed Bug 834122 Opened 11 years ago Closed 11 years ago

[Captive Portal] Make Captive Portal work with FTU

Categories

(Firefox OS Graveyard :: Gaia::First Time Experience, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:shira+, b2g18 fixed, b2g18-v1.0.1 fixed)

VERIFIED FIXED
blocking-b2g shira+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.1 --- fixed

People

(Reporter: alive, Assigned: alive)

Details

(Whiteboard: [triaged: 1/29] QARegressExclude)

Attachments

(1 file)

Currently the implementation of captive portal is using the notification to open browser app.
However this doesn't work if the user is using FTU and tries to connect to a captive portal.

1. Need to modify FTU.
2. Open browser app in FTU app is an unconfirmed behavior now. Maybe the user couldn't back to FTU again.

Proposal here is using window.open instead of browser activity.
adding product/UX for further comment. since it's not part of the user story but it's a good suggestion from alive.
blocking-b2g: shira? → shira+
QA Contact: fyen
Before going too further, I still need some UX feedback/confirm here.
Josh, could you give some support?

*Problem*
Our design of captive portal is 'Once system knows the wi-fi is captive portal, open browser app.'. Hence, when you are in one app, you would be switched to browser app.
But in FTU we shouldn't do this. Switch to browser app would break the flow of FTU. (don't know how to go back to FTU. We don't have hardware back button ;))

*Proposed change*
Use window.open -- entry sheet instead.
Create a system-wide entry sheet, put a mozbrowser iframe which url is captive portal's url.

*Question & Concern*
Q: The title bar's text should be...'Login'?
C: Not very trivial change but still implementable...I guess.
Flags: needinfo?(jcarpenter)
Whiteboard: [triaged: 1/29]
Flags: needinfo?(kyee)
Flags: needinfo?(aganesan)
Want to make sure everyone knows that Shira is targeting 2/15 code freeze. 
Shira+ bugs needs more attention for unassigned, needinfo?,  review?
Full regression test is planned on 2/6. Need to have shira+ bugs landed by the end of 2/5 to be covered in full regression testing. Thanks
(In reply to Alive Kuo [:alive] from comment #2)
> *Proposed change*
> Use window.open -- entry sheet instead.
> Create a system-wide entry sheet, put a mozbrowser iframe which url is
> captive portal's url.

This sounds like a good solution.   When the user closes the window they will be returned back to the FTE.

> 
> *Question & Concern*
> Q: The title bar's text should be...'Login'?

Would it not make sense to use whatever <title> is being defined within the captive login page?    Also, I'm not sure that we show anything except the URL here for security reasons.

NeedInfo: Paul and Lucas for comment about this.
Flags: needinfo?(ptheriault)
Flags: needinfo?(kyee)
Flags: needinfo?(jcarpenter)
Flags: needinfo?(ladamski)
window.open IxD docs here for reference:
https://www.dropbox.com/s/mcqm1e3dxnoh7f0/Gaia_WindowOpen_20120917.pdf
(In reply to Casey Yee [:cyee] from comment #4)
> Would it not make sense to use whatever <title> is being defined within the
> captive login page?    Also, I'm not sure that we show anything except the
> URL here for security reasons.

URL/origin sounds a good idea.

> 
> NeedInfo: Paul and Lucas for comment about this.
I think we should show the URL there per the spec.
Flags: needinfo?(ladamski)
Flags: needinfo?(aganesan)
Flags: needinfo?(ptheriault)
Patch v1:
1. Set default value of wifi.connect_via_settings to false, or else sth bad would happend when you |reset-gaia|.
2. Try to create a browser class.
3. Try to create an entrysheet class.
(No old code using mozbrowser iframe/entry sheet is changed.)
4. Have a system level entry sheet when ftu meets captive portal
Attachment #710568 - Flags: review?(timdream)
Comment on attachment 710568 [details]
https://github.com/mozilla-b2g/gaia/pull/7979

Looks alright but I would like to get some clarification on your plan before landing:

-- What's the relationship between AppWindow and Browser class? Is AppWindow going to be replaced, or rely on Browser class in the future?
-- I personally think Browser class should have a better name called BrowserFrame.
-- new EntrySheet() should probably not call open() by itself. There are might be use cases in the future where people would like to init it but not open() it
Attachment #710568 - Flags: review?(timdream) → review+
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #9)
> Comment on attachment 710568 [details]
> https://github.com/mozilla-b2g/gaia/pull/7979
> 
> Looks alright but I would like to get some clarification on your plan before
> landing:
> 
> -- What's the relationship between AppWindow and Browser class? Is AppWindow
> going to be replaced, or rely on Browser class in the future?

AppWindow would utilize Browser class to generate a mozbrowser iframe.
And any other container(which is not an app but needs a mozbrowser iframe)

> -- I personally think Browser class should have a better name called
> BrowserFrame.

I am fine.

> -- new EntrySheet() should probably not call open() by itself. There are
> might be use cases in the future where people would like to init it but not
> open() it

Agree.
Batch edit: bugs fixed on b2g18 since 1/25 branch of v1.0 are fixed on v1.0.1
Whiteboard: [triaged: 1/29] → [triaged: 1/29] QARegressExclude
Unagi
Gaia:     819afb8758de9fbf87eca837e328818de93307ec
Gecko:    http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/96f559f949bb
BuildID   20130402230203
Version   18.0

Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: