New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 644505 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature



Sign in to add a comment

chrome.networkingPrivate: API to detect active network changes

Project Member Reported by mfo...@chromium.org, Sep 6 2016

Issue description

Currently there is no API to detect when connection to the highest priority network has changed, or when the set of connected networks has changed.

onNetworksChanged fires when the properties of any in-range WiFi network has changed, including signal strength.  This fires continuously during network scans, which we don't want.

This FR is to implement an API or event filter for this use case.  It will improve event page behavior on ChromeOS for Media Router.


 
Labels: -Pri-3 M-55 OS-Chrome Pri-2
Owner: steve...@chromium.org
Initial support will be for Chrome OS only; support for this API on Windows or other platforms is limited at best.

Status: Assigned (was: Untriaged)
So, I did some investigation, and networkingPrivate.onNetworkListChanged should work just fine for this case.

* This will always get fired if the default (active) network changes, or if the connection state of the default network changes.
* The default network is always the first network in the list.
* This will also get fired when there is no change to the default (active) network, but only in response to a user action such as showing the networking UI (which initiates a scan).

Is there any reason that will not suffice?

Labels: -M-55
Status: WontFix (was: Assigned)
Based on what I found in comment #3 and a lack of response I am closing this as WontFix. Feel free to re-open if you think we do need it.

Comment 5 by mfo...@chromium.org, Sep 27 2016

Status: Available (was: WontFix)
What's described in #3 is somewhat different from what's requested in #1, since it also fires in response to network scans, which we don't want.

Agreed that it is somewhat different, but given that network scans are only performed in response to a user action (login, resume from sleep, or opening a UI element) is that really an important distinction?

Comment 7 by mfo...@chromium.org, Sep 27 2016

I don't believe that's true, so yes, it's an important distinction.



You don't believe what is true? I have recently verified on a Pixel 2 that networkingPrivate.onNetworkListChanged only occurs on user action (after occurring a few times during startup / resume).

If you can confirm that is not the case, that is definitely a high priority bug that should be addressed independently. Please file a feedback report with attn:stevenjb@ and let me know.


Comment 9 by mfo...@chromium.org, Sep 27 2016

That's largely what the previous bug I filed was about.  I submitted feedback reports and device logs there.  Let me know if you need further data.

The requirement is an API independent of network scanning.  Rather than argue on about the behavior of the existing API, just let me know if you feel this new API is a fit for chrome.networkingPrivate.  If not, we'll take on the work to implement it in a different namespace.

Yes, and as I have explained, all of those, that I am aware of, used:

chrome.networkingPrivate.onNetworksChanged

which is *different* from:

chrome.networkingPrivate.onNetworkListChanged

onNetworksChange is *expected* to occur frequently when a wifi network is connected.

onNetworkListChanged is *not*. And if it does, that is a *bug*.

So, please, if you think that chrome.networkingPrivate.onNetworkListChanged is triggering in the absence of a startup scenario or opening a networking UI element, *please* file a new bug with a repro and file a feedback report.

Status: WontFix (was: Available)
Closing this again.

I am still unclear what the problem with using chrome.networkingPriave.onNetworkListChanged is.

If there is a confirmed problem, please provide an example JS snippet using *chrome.networkingPriave.onNetworkListChanged* that is triggered during an idle situation (i.e. not login, resume, or after opening the networking UI).

Sign in to add a comment