Closed
Bug 780793
Opened 13 years ago
Closed 12 years ago
Wifi modification for captive portal detection
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:shira+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
People
(Reporter: schien, Assigned: schien)
References
Details
(Whiteboard: [mno11][triaged:1/18] QARegressExclude)
Attachments
(4 files, 7 obsolete files)
3.99 KB,
patch
|
schien
:
review+
|
Details | Diff | Splinter Review |
4.62 KB,
patch
|
schien
:
review+
|
Details | Diff | Splinter Review |
3.98 KB,
patch
|
schien
:
review+
|
Details | Diff | Splinter Review |
4.65 KB,
patch
|
schien
:
review+
|
Details | Diff | Splinter Review |
split B2G Wifi modification for captive portal detection (bug 752982)
Assignee | ||
Comment 1•12 years ago
|
||
Using mozChromeEvent/mozContent event to notify the progress of captive portal login procedure.
Attachment #681430 -
Flags: review?(mrbkap)
Comment 2•12 years ago
|
||
Comment on attachment 681430 [details] [diff] [review]
Part 1 - mozChromeEvent/mozContentEvent for captive portal login
Review of attachment 681430 [details] [diff] [review]:
-----------------------------------------------------------------
Changes looks fine, small nits to fix though. It also needs some Gaia love :)
::: b2g/chrome/content/shell.js
@@ +743,5 @@
> }
>
> +var CaptivePortalLoginHelper = {
> + init: function init() {
> + dump('####Gecko####CaptivePortalLoginHelper init\n');
nit: remove all those dumps to not pollute the log.
::: b2g/confvars.sh
@@ +17,5 @@
> # MOZ_APP_DISPLAYNAME is set by branding/configure.sh
>
> MOZ_SAFE_BROWSING=
> MOZ_SERVICES_COMMON=1
> +MOZ_SERVICES_CAPTIVEDETECT=1
nit: Any reason to not use DETECTOR instead of DETECT?
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) from comment #2)
> ::: b2g/confvars.sh
> @@ +17,5 @@
> > # MOZ_APP_DISPLAYNAME is set by branding/configure.sh
> >
> > MOZ_SAFE_BROWSING=
> > MOZ_SERVICES_COMMON=1
> > +MOZ_SERVICES_CAPTIVEDETECT=1
>
> nit: Any reason to not use DETECTOR instead of DETECT?
I was just thinking about saving 3 characters, DETECTOR is ok for me. :)
Assignee | ||
Comment 4•12 years ago
|
||
Start/stop captive portal detection while WIFI interface is connected/disconnected.
NOTE: Still need to set |Service.io.offline| to true before sending XHR, we cannot do it in offline mode. I'm not sure if there is an easy way we can delay the network access from app before captive portal login completion.
Attachment #686919 -
Flags: feedback?(mrbkap)
Assignee | ||
Comment 5•12 years ago
|
||
This gaia prototype will launch browser app to display the captive portal login page. Cancel login is not supported in the version.
NOTE: I've tested this prototype with several open wifi networks in the metro station in Taipei.
Updated•12 years ago
|
Whiteboard: mno11
Updated•12 years ago
|
blocking-b2g: --- → shira+
Whiteboard: mno11
Assignee | ||
Comment 7•12 years ago
|
||
rebase to latest m-c tip, this patch is verified on my local environment and ready for checking in shira branch.
Attachment #681430 -
Attachment is obsolete: true
Attachment #681430 -
Flags: review?(mrbkap)
Attachment #694184 -
Flags: review?(mrbkap)
Assignee | ||
Comment 8•12 years ago
|
||
rebase to latest m-c tip, this patch is verified on my local environment and ready for checking in shira branch.
Attachment #686919 -
Attachment is obsolete: true
Attachment #686919 -
Flags: feedback?(mrbkap)
Attachment #694186 -
Flags: review?(mrbkap)
Comment 9•12 years ago
|
||
Device: unagi
Build ID: 20121228040204
Wifi: 7Wifi, Wifly, TPE-Free
After test unagi with captive portal wifi, there is no notifications on screen.
However, if unagi connect to wifi and open the browser, then access any website, the browser still can redirect to log in page.
Updated•12 years ago
|
Whiteboard: [mno11]
Updated•12 years ago
|
Whiteboard: [mno11] → [mno11][triaged:1/18]
Comment 11•12 years ago
|
||
:mrbkap, Shira build is being planned for another round of new feature testing with nightly builds from the v1-train/mozilla-b2g18 branches next week. It will be great if you can spare some time to do the review this week so testing progress won't be blocked. Or anyone else can do the review? Thanks
Updated•12 years ago
|
Attachment #694184 -
Flags: review?(bsmith)
Updated•12 years ago
|
Attachment #694186 -
Flags: review?(bsmith)
Updated•12 years ago
|
Flags: needinfo?(mrbkap)
Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 694186 [details] [diff] [review]
Part 2 - perform captive protal detection while WIFI is connected. (rebase to m-c tip)
Change reviewer to vchang.
Attachment #694186 -
Flags: review?(vchang)
Attachment #694186 -
Flags: review?(mrbkap)
Attachment #694186 -
Flags: review?(bsmith)
Assignee | ||
Comment 13•12 years ago
|
||
Comment on attachment 694184 [details] [diff] [review]
Part 1 - mozChromeEvent/mozContentEvent for captive portal login (rebase to m-c tip)
Change reviewer to timdream.
Attachment #694184 -
Flags: review?(timdream)
Attachment #694184 -
Flags: review?(mrbkap)
Attachment #694184 -
Flags: review?(bsmith)
Comment 14•12 years ago
|
||
Comment on attachment 694186 [details] [diff] [review]
Part 2 - perform captive protal detection while WIFI is connected. (rebase to m-c tip)
Review of attachment 694186 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/NetworkManager.js
@@ +417,5 @@
> + CaptivePortalDetectionHelper.performDetection(this.active.name, function () {
> + // We can disconnect wifi in here if user abort the login procedure.
> + });
> + }
> +
A minor suggestion.
Move Line 413~421 into observe function, or move Line 219~223 into setAndConfigureActive function.
Assignee | ||
Comment 15•12 years ago
|
||
Comment on attachment 694184 [details] [diff] [review]
Part 1 - mozChromeEvent/mozContentEvent for captive portal login (rebase to m-c tip)
Vivien, could you help review the modification for adding new mozChromeEvent?
Attachment #694184 -
Flags: review?(timdream) → review?(21)
Comment 16•12 years ago
|
||
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
Comment 17•12 years ago
|
||
Comment on attachment 694186 [details] [diff] [review]
Part 2 - perform captive protal detection while WIFI is connected. (rebase to m-c tip)
Review of attachment 694186 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/NetworkManager.js
@@ +219,5 @@
> + // Abort ongoing captive portal detection on the wifi interface
> + if (CaptivePortalDetectionHelper.available &&
> + network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
> + CaptivePortalDetectionHelper.abort(network.name);
> + }
Can we move these code to CaptivePortalDetectionHelper ?
@@ +414,5 @@
> + // perform captive portal detection on wifi interface
> + if (CaptivePortalDetectionHelper.available && this.active &&
> + this.active.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
> + CaptivePortalDetectionHelper.performDetection(this.active.name, function () {
> + // We can disconnect wifi in here if user abort the login procedure.
Please file a new bug to address this comment.
@@ +417,5 @@
> + CaptivePortalDetectionHelper.performDetection(this.active.name, function () {
> + // We can disconnect wifi in here if user abort the login procedure.
> + });
> + }
> +
Can we move these code to CaptivePortalDetectionHelper ?
Attachment #694186 -
Flags: review?(vchang)
Comment 18•12 years ago
|
||
Comment on attachment 694184 [details] [diff] [review]
Part 1 - mozChromeEvent/mozContentEvent for captive portal login (rebase to m-c tip)
pinged vivien seperately, he is fine having Tim to review this.
Attachment #694184 -
Flags: review?(21) → review?(timdream)
Comment 19•12 years ago
|
||
Comment on attachment 694184 [details] [diff] [review]
Part 1 - mozChromeEvent/mozContentEvent for captive portal login (rebase to m-c tip)
This part is fine. Note that |shell.sendChromeEvent| will defer the events all the way till system app fires |load| event. It should be fine for the use case.
Attachment #694184 -
Flags: review?(timdream) → review+
Assignee | ||
Comment 20•12 years ago
|
||
rebase to m-c tip and update reviewer info in hg log.
Attachment #694184 -
Attachment is obsolete: true
Attachment #709619 -
Flags: review+
Assignee | ||
Comment 21•12 years ago
|
||
rebase to m-c tip and update patch according to comment 14 and comment 17.
Attachment #694186 -
Attachment is obsolete: true
Attachment #709621 -
Flags: review?(vchang)
Comment 22•12 years ago
|
||
Comment on attachment 709621 [details] [diff] [review]
Part 2 - perform captive protal detection while WIFI is connected. v2 (rebase to m-c tip)
Review of attachment 709621 [details] [diff] [review]:
-----------------------------------------------------------------
The patch looks good. Thank you.
::: dom/system/gonk/NetworkManager.js
@@ +882,5 @@
> + // perform captive portal detection on wifi interface
> + if (_available && network &&
> + network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
> + _performDetection(network.name, function () {
> + // We can disconnect wifi in here if user abort the login procedure.
Please file a follow-up when user aborts, and mention the bug number in a // TODO comment.
Attachment #709621 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 23•12 years ago
|
||
update patch according to comment 22, carry r+.
Attachment #709621 -
Attachment is obsolete: true
Attachment #709641 -
Flags: review+
Assignee | ||
Comment 24•12 years ago
|
||
update API name according to the modification in bug 752982. carry r+.
Attachment #709641 -
Attachment is obsolete: true
Attachment #710123 -
Flags: review+
Assignee | ||
Comment 25•12 years ago
|
||
rebase attachment 709619 [details] [diff] [review] to mozilla-b2g18.
Attachment #710139 -
Flags: review+
Assignee | ||
Comment 26•12 years ago
|
||
rebase attachment 710123 [details] [diff] [review] to mozilla-b2g18.
Attachment #710140 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Attachment #686923 -
Attachment is obsolete: true
Assignee | ||
Comment 27•12 years ago
|
||
Need check-in after Part 1 of bug 752982 landed.
Keywords: checkin-needed
Assignee | ||
Comment 28•12 years ago
|
||
Try server result:
https://tbpl.mozilla.org/?tree=Try&rev=b31407d3263f
Comment 29•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/33be341bb133
https://hg.mozilla.org/integration/mozilla-inbound/rev/470187171cf1
Keywords: checkin-needed
Target Milestone: --- → B2G C4 (2jan on)
Comment 30•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/33be341bb133
https://hg.mozilla.org/mozilla-central/rev/470187171cf1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 31•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/16bcb1300fdb
https://hg.mozilla.org/releases/mozilla-b2g18/rev/2910a66baeaf
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Updated•12 years ago
|
status-b2g18-v1.0.1:
--- → fixed
Several other bugs listed against Captive Portal. Going to skip marking verified because of those bugs.
Whiteboard: [mno11][triaged:1/18] → [mno11][triaged:1/18] QARegressExclude
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•