Closed
Bug 872122
Opened 13 years ago
Closed 13 years ago
nsDOMCameraManager::GetListOfCameras uses a bogus static variable
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: Ms2ger, Assigned: mikeh)
Details
Attachments
(2 files, 1 obsolete file)
|
6.26 KB,
patch
|
akeybl
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
|
6.50 KB,
patch
|
Details | Diff | Splinter Review |
In particular, every time you call the function, the extra cameras move further back in the array.
| Assignee | ||
Comment 1•13 years ago
|
||
We won't hit this code path on the hardware we're using, but this is a pretty messy bug that should be fixed. The fix is relatively simple too.
blocking-b2g: --- → leo?
tracking-b2g18:
--- → ?
Comment 2•13 years ago
|
||
While we're here, could we drop the manual JSAPI and just produce XPCOM strings and let XPConnect handle all the JS bits?
| Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #2)
>
> While we're here, could we drop the manual JSAPI and just produce XPCOM
> strings and let XPConnect handle all the JS bits?
That will be part of my patch.
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #749550 -
Flags: review?(bzbarsky)
Comment 5•13 years ago
|
||
Comment on attachment 749550 [details] [diff] [review]
clean up getListOfCameras()
r=me
Attachment #749550 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Comment 6•13 years ago
|
||
| Assignee | ||
Comment 7•13 years ago
|
||
Assignee: nobody → mhabicher
| Assignee | ||
Comment 8•13 years ago
|
||
Includes the change to the fallback stub implementation; carrying r+ forward.
Attachment #749550 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•13 years ago
|
||
Comment on attachment 750442 [details] [diff] [review]
clean up getListOfCameras(), r=bz
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 872122
User impact if declined: if hardware implements non-{back, front} cameras, ID strings returned will erroneously increase on each call
Testing completed: tested on hamachi, emulator
Risk to taking this patch (and alternatives if risky): minimal
String or UUID changes made by this patch: nsIDOMCameraManager UUID change, although the API hasn't changed from the perspective of JS
Attachment #750442 -
Flags: approval-mozilla-b2g18?
Comment 10•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Comment 11•13 years ago
|
||
Triage - per comment 2, not directly required for the current hardware but nice to be fixed, tracking.
blocking-b2g: leo? → ---
Comment 12•13 years ago
|
||
Comment on attachment 750442 [details] [diff] [review]
clean up getListOfCameras(), r=bz
Approving in support of the emulator.
Attachment #750442 -
Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
Comment 13•13 years ago
|
||
This needs a branch-specific patch for uplift to b2g18.
Keywords: branch-patch-needed
| Assignee | ||
Comment 14•13 years ago
|
||
ni?(RyanVM) - here's the b2g18 port of the patch.
Flags: needinfo?(ryanvm)
Comment 15•13 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox22:
--- → wontfix
status-firefox23:
--- → wontfix
status-firefox24:
--- → fixed
Flags: needinfo?(ryanvm)
Keywords: branch-patch-needed
Comment 16•13 years ago
|
||
We need this on the hd branch for front-facing camera - please uplift to hd branch.
blocking-b2g: --- → hd+
status-b2g-v1.1hd:
--- → affected
Comment 17•13 years ago
|
||
Already on v1.1hd.
https://hg.mozilla.org/releases/mozilla-b2g18_v1_1_0_hd/rev/a8fcdc36236c
| Assignee | ||
Comment 18•13 years ago
|
||
(In reply to lsblakk@mozilla.com [:lsblakk] from comment #16)
>
> We need this on the hd branch for front-facing camera - please uplift to hd
> branch.
Was this intended for bug 883084?
Flags: needinfo?(lsblakk)
Updated•12 years ago
|
Flags: needinfo?(lsblakk)
You need to log in
before you can comment on or make changes to this bug.
Description
•