Closed
Bug 1124507
Opened 10 years ago
Closed 10 years ago
[Wifi Direct] Some attributes of mozWifiP2pManager aren't properly initialized across connection
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hchang, Assigned: hchang)
References
Details
Attachments
(1 file, 1 obsolete file)
|
6.04 KB,
patch
|
Details | Diff | Splinter Review |
At the time constructing mozWifiP2pManager [1], some attributes should be initialized
[1] http://hg.mozilla.org/mozilla-central/file/34e2d2bd7ec4/dom/wifi/DOMWifiP2pManager.js#l116
| Assignee | ||
Comment 1•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8555189 -
Flags: review?(vchang)
| Assignee | ||
Comment 2•10 years ago
|
||
Here's a short explanation of what this patch does:
In the construction phase of MozWifiP2pManager, it would send a sync message
to the wifi p2p internal to get the current state. The original code doesn't
fetch all the internal information of wifi p2p. So, the patch adds the code
to retain the state in WifiP2pWorkerObserver and send to DOMWifiP2pManager
whenever needed.
Comment 3•10 years ago
|
||
Comment on attachment 8555189 [details] [diff] [review]
Bug1124507.patch
Review of attachment 8555189 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Thank you.
::: dom/wifi/WifiP2pWorkerObserver.jsm
@@ +40,5 @@
> let _peerList = {}; // List of P2pDevice.
> let _domManagers = [];
> + let _enabled = false;
> + let _groupOwner;
> + let _currentPeer;
Nit: please give default value to _groupOwner and _currentPeer.
Attachment #8555189 -
Flags: review?(vchang) → review+
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → hchang
| Assignee | ||
Comment 4•10 years ago
|
||
Addressed the review comment
Attachment #8555189 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 6•10 years ago
|
||
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•