Closed
Bug 798123
Opened 13 years ago
Closed 13 years ago
Replace the array conversion functions in BluetoothUtils.cpp with those in nsTArrayHelpers.h
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)
RESOLVED
FIXED
| blocking-basecamp | + |
People
(Reporter: gsvelto, Assigned: gsvelto)
References
Details
Attachments
(1 file, 1 obsolete file)
BluetoothUtils.cpp provides two functions for converting nsTArrays of nsString and BluetoothDevice object references into JSArray objects.
BluetoothDeviceArrayToJSArray could be replaced with the existing nsTArrayToJSArray() function whilst a specialized version of it could be used to replace StringArrayToJSArray().
See bug 739780.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•13 years ago
|
||
I've replaced BluetoothDeviceArrayToJSArray() with a straight call to the existing nsTArrayToJSArray() templated function and added a specialized version of it for nsString to replace StringArrayToJSArray().
Attachment #672378 -
Flags: review?(mrbkap)
Comment 2•13 years ago
|
||
Try run for 46ad09c9afaa is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=46ad09c9afaa
Results (out of 1 total builds):
failure: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/gsvelto@mozilla.com-46ad09c9afaa
| Assignee | ||
Comment 3•13 years ago
|
||
Fixed an issue in the previous patch when dealing with strings
Attachment #672378 -
Attachment is obsolete: true
Attachment #672378 -
Flags: review?(mrbkap)
Comment 4•13 years ago
|
||
Try run for 6cdd419c29b6 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=6cdd419c29b6
Results (out of 1 total builds):
success: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/gsvelto@mozilla.com-6cdd419c29b6
| Assignee | ||
Comment 5•13 years ago
|
||
Comment on attachment 672763 [details] [diff] [review]
Replace StringArrayToJSArray() and BluetoothDeviceArrayToJSArray() with nsTArrayToJSArray() V2
Since I'm unsure if this code is covered by the Android unit tests I've run a few Bluetooth activities on my Otoro with the patch applied to make sure it works correctly and I haven't encountered any obvious problems.
Attachment #672763 -
Flags: review?(mrbkap)
Updated•13 years ago
|
Attachment #672763 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 6•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/811bf58c47f2
Also had to push a warnings-as-errors bustage fix:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ee0b7a687708
../../dist/include/nsTArrayHelpers.h: In function 'nsresult nsTArrayToJSArray(JSContext*, const nsTArray<Item, nsTArrayDefaultAllocator>&, JSObject**) [with T = nsString, nsresult = tag_nsresult, JSContext = JSContext, JSObject = JSObject]':
../../dist/include/nsTArrayHelpers.h:64:13: error: unused variable 'global'
Keywords: checkin-needed
Comment 7•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/811bf58c47f2
https://hg.mozilla.org/mozilla-central/rev/ee0b7a687708
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
blocking-basecamp: ? → +
Comment 9•13 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/abbfdc260d63
https://hg.mozilla.org/releases/mozilla-beta/rev/79257293253b
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•