Closed
Bug 833526
Opened 11 years ago
Closed 11 years ago
Not be able to receive "network-active-change" notification from NetworkManager
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:leo+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18+ fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix)
People
(Reporter: stephenl, Assigned: swu)
Details
Attachments
(1 file, 1 obsolete file)
2.86 KB,
patch
|
vicamo
:
review+
swu
:
feedback+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 Build ID: 20130116073211 Steps to reproduce: trying to listen to “network-active-change” observer notification Actual results: “network-active-change” is never getting notified to the observer when switch between WiFi and cellular data network. Expected results: Should get “network-active-change” observer notification. Changes below work for us: + if(this.active != oldActive) { + Services.obs.notifyObservers(this.active, "network-active-changed", null); + } Add the above 3 lines to be above the line 383 and line 421 below, http://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/NetworkManager.js#383 http://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/NetworkManager.js#421
Reporter | ||
Updated•11 years ago
|
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Updated•11 years ago
|
Component: Networking → General
Product: Core → Boot2Gecko
Version: Trunk → unspecified
Assignee | ||
Comment 1•11 years ago
|
||
Hi Stephen, Thanks for reporting this issue. Please check if this patch works for you.
Assignee: nobody → swu
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #705297 -
Flags: review?(vyang)
Attachment #705297 -
Flags: feedback?(stephenl)
Assignee | ||
Comment 2•11 years ago
|
||
Only notify when active network really changed.
Attachment #705297 -
Attachment is obsolete: true
Attachment #705297 -
Flags: review?(vyang)
Attachment #705297 -
Flags: feedback?(stephenl)
Attachment #705759 -
Flags: review?(vyang)
Attachment #705759 -
Flags: feedback?(stephenl)
Updated•11 years ago
|
tracking-b2g18:
--- → ?
Assignee | ||
Comment 3•11 years ago
|
||
Hi Stephen, We are waiting for your feedback before landing this patch. Do you have any update? Thanks.
Updated•11 years ago
|
Attachment #705759 -
Flags: review?(vyang) → review+
Updated•11 years ago
|
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2c929bc0ee9a
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2c929bc0ee9a
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
blocking-b2g: --- → leo?
Updated•11 years ago
|
blocking-b2g: leo? → leo+
Comment 6•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/fe99594f53eb
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Target Milestone: --- → B2G C4 (2jan on)
Reporter | ||
Comment 7•11 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=833526 : Yes this change looks fine to me, can we get it integrated.
Comment 8•11 years ago
|
||
(I'll work with Stephen on this)
Assignee | ||
Updated•11 years ago
|
Attachment #705759 -
Flags: feedback?(stephenl) → feedback+
Updated•11 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•