Closed
Bug 1354245
Opened 8 years ago
Closed 8 years ago
Firefox ignore the network.captive-portal-service.enabled preference, polls anyway
Categories
(Core :: Networking, defect)
Tracking
()
VERIFIED
FIXED
mozilla55
People
(Reporter: curtself.cs, Assigned: valentin)
References
(Blocks 1 open bug)
Details
(Keywords: regression, Whiteboard: [necko-active])
Attachments
(2 files)
(deleted),
text/plain
|
Details | |
(deleted),
text/x-review-board-request
|
mcmanus
:
review+
jcristau
:
approval-mozilla-aurora+
jcristau
:
approval-mozilla-beta-
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170404004003
Steps to reproduce:
No active steps are required to reproduce other than setting this preference in about:config
network.captive-portal-service.enabled = false
Actual results:
Firefox continues to poll the URL listed under captivedetect.canonicalURL regardless of the enabled preference being set to true or false.
Expected results:
Expected results are that the preference is not ignored and the polling does not occur.
Updated•8 years ago
|
Component: Untriaged → Networking
Product: Firefox → Core
Updated•8 years ago
|
Flags: needinfo?(valentin.gosu)
Assignee | ||
Comment 2•8 years ago
|
||
Hi Curt,
I am unable to reproduce your findings. Could you assist us with the process?
Go to about:networking, into the Logging section, and set the Log modules to
timestamp,sync,nsHttp:5,nsHostResolver:5,CaptivePortalService:5
Then click start logging and reproduce your bug, turning the pref off, and checking if it still polls the canonicalURL
How are you watching the requests? Wireshark?
Flags: needinfo?(valentin.gosu) → needinfo?(curtself.cs)
Whiteboard: [necko-active]
(In reply to Valentin Gosu [:valentin] from comment #2)
> Hi Curt,
>
> I am unable to reproduce your findings. Could you assist us with the process?
> Go to about:networking, into the Logging section, and set the Log modules to
>
> timestamp,sync,nsHttp:5,nsHostResolver:5,CaptivePortalService:5
>
> Then click start logging and reproduce your bug, turning the pref off, and
> checking if it still polls the canonicalURL
> How are you watching the requests? Wireshark?
I use Burp Suite as a part of my development process (Web Applications Dev), that is where I see the request.
I enabled network logging and went to lunch. When I got back I saw that one request was logged by burp: http://detectportal.firefox.com/success.txt
I am attaching the log file that was created.
Flags: needinfo?(curtself.cs)
Assignee | ||
Comment 4•8 years ago
|
||
Hi Curt, I have found the issue.
We disable the captive portal service when the network goes down, and enable it again when it comes back up. Turns out we didn't check the pref before enabling it there.
Thanks a lot for reporting this bug!
Comment hidden (mozreview-request) |
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8857511 [details]
Bug 1354245 - Don't call CaptivePortalService::Start() in SetConnectivityInternal if the captive portal service is disabled via pref
https://reviewboard.mozilla.org/r/129468/#review132024
Attachment #8857511 -
Flags: review?(mcmanus) → review+
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/f5616b65b694
Don't call CaptivePortalService::Start() in SetConnectivityInternal if the captive portal service is disabled via pref r=mcmanus
Assignee | ||
Comment 8•8 years ago
|
||
Comment on attachment 8857511 [details]
Bug 1354245 - Don't call CaptivePortalService::Start() in SetConnectivityInternal if the captive portal service is disabled via pref
Approval Request Comment
[Feature/Bug causing the regression]: bug 1320087
[User impact if declined]: browser will check captive portal and make connections against user preference.
[Is this code covered by automated tests?]: no.
[Has the fix been verified in Nightly?]: just landed.
[Needs manual test from QE? If yes, steps to reproduce]:
Yes.
Set network.captive-portal-service.enabled to false.
Disconnect from network (It is important that only loopback interface is up)
Reconnect to network.
Check that no requests to http://detectportal.firefox.com/success.txt are made for network.captive-portal-service.maxInterval seconds.
Since maxInterval can be quite high, I advise setting the minInterval and maxInterval prefs to low values, such as 10000 (10 seconds) and 20000 (20 seconds).
[List of other uplifts needed for the feature/fix]: none.
[Is the change risky?]: no.
[Why is the change risky/not risky?]: It is a very small and easy fix.
[String changes made/needed]: none.
Attachment #8857511 -
Flags: approval-mozilla-beta?
Attachment #8857511 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → valentin.gosu
Blocks: 1320087, captive-portal-service
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
This issue has been around since 52, do you feel it is worth the very last minute uplift to 53? We are very close to release and I'm going to say wontfix for 53 for now. Let me know if you disagree strongly.
status-firefox52:
--- → wontfix
status-firefox53:
--- → wontfix
status-firefox54:
--- → affected
status-firefox55:
--- → affected
tracking-firefox54:
--- → +
Comment 10•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment 11•8 years ago
|
||
Hi Brindusa, could you help find someone to verify if this issue was fixed as expected on a latest Nightly build? Thanks!
Flags: qe-verify+
Flags: needinfo?(brindusa.tot)
Comment 12•8 years ago
|
||
Hi Valentin,
Can you please tell me how to I perform the "Check that no requests to http://detectportal.firefox.com/success.txt are made for network.captive-portal-service.maxInterval seconds"?
Flags: needinfo?(valentin.gosu)
Assignee | ||
Comment 13•8 years ago
|
||
(In reply to ovidiu boca[:Ovidiu] from comment #12)
> Hi Valentin,
>
> Can you please tell me how to I perform the "Check that no requests to
> http://detectportal.firefox.com/success.txt are made for
> network.captive-portal-service.maxInterval seconds"?
I suggest using Wireshark. You should see a HTTP request before you turn the pref to off, afterwards you shouldn't see any other requests to the same IP.
Flags: needinfo?(valentin.gosu)
Comment 14•8 years ago
|
||
I tested this on Mac OS X 10.12 with FF Nightly 55.0a1(2017-04-13), please see the steps that I performed to verify this:
1.Disconnect from any network
2.First I set the "network.captive-portal-service.maxInterval" value=10000
3.Start the WireShark
4.I set the network.captive-portal-service.enabled to false
5.Reconnect to network (Wi-Fi)
I don't see any HTTP request to http://detectportal.firefox.com/success.txt, if I set the network.captive-portal-service.enabled to true I can see the HTTP request to http://detectportal.firefox.com/success.txt.
Please tell me if you consider this steps to be correct in order to mark this bug as verified. Thank you
Flags: needinfo?(brindusa.tot) → needinfo?(valentin.gosu)
Assignee | ||
Comment 15•8 years ago
|
||
Yes, Those steps are correct. Thanks!
Flags: needinfo?(valentin.gosu)
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
Comment 16•8 years ago
|
||
Comment on attachment 8857511 [details]
Bug 1354245 - Don't call CaptivePortalService::Start() in SetConnectivityInternal if the captive portal service is disabled via pref
honor captive portal pref in connectivity check, aurora54+. Too late for 53.
Attachment #8857511 -
Flags: approval-mozilla-beta?
Attachment #8857511 -
Flags: approval-mozilla-beta-
Attachment #8857511 -
Flags: approval-mozilla-aurora?
Attachment #8857511 -
Flags: approval-mozilla-aurora+
Comment 17•8 years ago
|
||
bugherder uplift |
Comment 19•7 years ago
|
||
I reproduced the initial issue using old Aurora from 2017-04-06 on Windows 10 with the help of Microsoft Message Analyzer and Wireshark.
With the help of instructions from comment 14, I could verify that the HTTP request does not appear when setting pref 'network.captive-portal-service.enabled' to 'false' using Firefox 54 beta 10 across platforms (Windows 10 64bit, macOS 10.12.4 and Ubuntu 16.04 64bit).
Flags: qe-verify+
Comment 20•7 years ago
|
||
This bug came up on the enterprise mailing list. Is this something we'd want to fix in esr52?
status-firefox-esr52:
--- → affected
Comment 21•7 years ago
|
||
I would say this is not fixed. I'm using FFv55 (win10 64) and it's got network.captive-portal-service.minInterval = 60000 and it's pinging http://detectportal.firefox.com/success.txt every second.
Assignee | ||
Comment 22•7 years ago
|
||
If you have issues with this feature, please open another bug.
Comment 23•6 years ago
|
||
Hi,
Still traffic (unwanted) to detectportal.firefox.com
Settings:
network.captive-portal-service.enabled set to false
captivedetect.canonicalURL set to ""
OS: Win7 32bit
FF: 61.0.1
Language OS/FF: Dutch (is this relevant for non UI bugs?)
Can I reopen this bug or create a new one?
Assignee | ||
Comment 24•6 years ago
|
||
(In reply to Arno from comment #23)
> Can I reopen this bug or create a new one?
Please create a new one. Thanks!
Updated•6 years ago
|
Keywords: regression
Updated•6 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•