Closed Bug 1124507 Opened 9 years ago Closed 9 years ago

[Wifi Direct] Some attributes of mozWifiP2pManager aren't properly initialized across connection

Categories

(Firefox OS Graveyard :: Wifi, defect)

x86_64
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hchang, Assigned: hchang)

References

Details

Attachments

(1 file, 1 obsolete file)

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
Attached patch Bug1124507.patch (obsolete) — Splinter Review
Attachment #8555189 - Flags: review?(vchang)
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 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: nobody → hchang
Addressed the review comment
Attachment #8555189 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/fbc6b6da6597
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: