Closed
Bug 909786
Opened 11 years ago
Closed 11 years ago
Use incremental number as the hash key of |controlCallbacks| in NetworkManager::controlMessage()
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hchang, Assigned: hchang)
Details
Attachments
(1 file, 2 obsolete files)
1.72 KB,
patch
|
Details | Diff | Splinter Review |
In NetworkManager.js, when invoking controlMessage(params, callback), the name of callback function would be used as the hash key of |controlCallbacks|. It's unsafe since it's difficult to guarantee all callers using distinct function names.
There is a simple solution already used in WifiManager.js, which is using an incremental |id| as the hash key and delete after callback.
Assignee | ||
Updated•11 years ago
|
Summary: Use incremental id as the hash keys of |controlCallbacks| in NetworkManager::controlMessage() → Use incremental numbers as the hash keys of |controlCallbacks| in NetworkManager::controlMessage()
Assignee | ||
Updated•11 years ago
|
Summary: Use incremental numbers as the hash keys of |controlCallbacks| in NetworkManager::controlMessage() → Use incremental number as the hash key of |controlCallbacks| in NetworkManager::controlMessage()
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → hchang
Assignee | ||
Updated•11 years ago
|
Attachment #796071 -
Flags: review?(vchang)
Assignee | ||
Comment 2•11 years ago
|
||
Oh oh I found something wrong in the patch. I'll attach another patch for review later on.
Comment 3•11 years ago
|
||
Comment on attachment 796071 [details] [diff] [review]
Bug909786.patch
Review of attachment 796071 [details] [diff] [review]:
-----------------------------------------------------------------
Remove from review queue per comment 2.
Attachment #796071 -
Flags: review?(vchang)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #796071 -
Attachment is obsolete: true
Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 797633 [details] [diff] [review]
Bug909786.patch
Verified locally and on Try server
https://tbpl.mozilla.org/?tree=Try&rev=dda8c080b9d3
Attachment #797633 -
Flags: review?(vchang)
Comment 6•11 years ago
|
||
Comment on attachment 797633 [details] [diff] [review]
Bug909786.patch
Review of attachment 797633 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Thank you.
Attachment #797633 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #797633 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #801602 -
Attachment description: Bug909786.patch (added r=vchang) → Bug909786.patch (has been r+. added r=vchang)
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Keywords: checkin-needed
Comment 9•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•