Closed Bug 1156553 Opened 10 years ago Closed 4 years ago

Tab queue makes captive portal use annoying

Categories

(Firefox for Android Graveyard :: Overlays, defect)

All
Android
defect
Not set
normal

Tracking

(fennec+)

RESOLVED INCOMPLETE
Tracking Status
fennec + ---

People

(Reporter: mcomella, Unassigned)

References

Details

STR: With tab queue enabled... 1) Click a WiFi network with a captive portal 2) The system will prompt you to sign into the WiFi network, typically by notification. Click it. Expected: Nightly opens Actual: A toast that the tab was opened in background - you have to click "Open now?" to open the link I would never want to background that action so it's annoying to have to use the toast. This could be compounded by bug 1149645 (i.e. toast being at the bottom of the screen). However, I'm not sure fixing this is possible since Intents are intentionally anonymous (though maybe we can tell it's from the system?). Perhaps there are common URLs on captive portals and heuristically open Fennec in those cases? Ah, well - investigate!
Users on mobile devices may hit this a lot. We should consider this before shipping.
tracking-fennec: --- → ?
tracking-fennec: ? → 40+
In YVR airport I'm getting the url of http://216.58.216.174/generate_204 for the wifi login page. The ip resolves to belonging to Google. A search points me to the url clients1.google.com which resolves to the ip above. I'll try and do some more digging to see if any of this can be used to accurately work out if we're hitting a portal.
17:10:09 < mhaigh> well https://android.googlesource.com/platform/frameworks/base/+/lollipop-release/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java indicates that the generate_204 doesn't. Perhaps we check against that to open now and feel bad if someone else has that at the end of their url 17:10:09 <@rnewman> (in an emulator if necessary) 17:10:40 < mhaigh> this is with 4.4.4 17:10:58 <@rnewman> check for clients3.google.com or Settings.Global(..., "captive_portal_server") 17:11:30 <@rnewman> + /generate_204
Talking to Martyn, this is going to be a bit more complicated than anticipated and we're going to move this to V2 for now.
tracking-fennec: 40+ → Nightly+
Assignee: nobody → mhaigh
Status: NEW → ASSIGNED
Component: General → Overlays
This is going to be difficult as we get no contextual information about the url we're passed, so the only approach for this bug that I can see is matching the "/generate_204" at the end of the url. I'm worried that this approach won't be global and have no way to verify this. I think I can test patches if I go to a nearby coffee shop and hope that a local wifi spot is a captive portal, but this will be far from a thorough approach.
tracking-fennec: Nightly+ → ?
tracking-fennec: ? → 42+
Assignee: mhaigh → s.kaspari
Based on comment 4, this doesn't need to track 42.
tracking-fennec: 42+ → +
Starting from Android 5.0 clicking the notification should open the portal site in a system activity using a WebView (also linked by Richard above): https://android.googlesource.com/platform/frameworks/base/+/lollipop-release/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java With tab queues now being disabled on Android 2.3 this can only happen on Android 4, I guess?
Chenxia mentioned in the front-end meeting today that desktop detects when captive portals are trying to load and forwards the user to the portal – perhaps we can use a similar method of detection for Tab Queue? Chenxia, do you know much about this?
Flags: needinfo?(liuche)
(In reply to Michael Comella (:mcomella) from comment #8) > Chenxia mentioned in the front-end meeting today that desktop detects when > captive portals are trying to load and forwards the user to the portal – > perhaps we can use a similar method of detection for Tab Queue? > > Chenxia, do you know much about this? snorp pointed me to nsICaptivePortalService: http://mxr.mozilla.org/mozilla-central/source/netwerk/base/nsICaptivePortalService.idl
This is in v2.
Assignee: s.kaspari → nobody
Status: ASSIGNED → NEW
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
Flags: needinfo?(liucheia+bugzilla)
You need to log in before you can comment on or make changes to this bug.