Closed
Bug 1249424
Opened 10 years ago
Closed 10 years ago
remove nsAutoArrayPtr usage from dom/media/gmp/
Categories
(Core :: Audio/Video: GMP, defect)
Core
Audio/Video: GMP
Tracking
()
RESOLVED
FIXED
mozilla47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: froydnj, Unassigned)
References
Details
Attachments
(1 file)
The lone use of nsAutoArrayPtr in dom/media/gmp/ comes from our scoped_array polyfill. We want to remove nsAutoArrayPtr, though, so we need to come up with a plan for fixing this. The two options I see are:
1) use UniquePtr instead;
2) stick the definition of nsAutoArrayPtr in that file, rename it to something that's clear you shouldn't actually be using it, and forget about it.
I obviously prefer doing #1, but I'm not clear on how much API surface we really need from nsAutoArrayPtr here. Looking at the scoped_array use:
https://dxr.mozilla.org/mozilla-central/source/dom/media/gmp/rlz/win/lib/machine_id_win.cc#44
it looks like we use a very limited subset. Can we implement just enough API surface to satisfy that use case, or do we need to implement something more complete to accommodate partner usage of this code?
ni? to jesup, since cpearce is on PTO. Feel free to redirect.
Flags: needinfo?(rjesup)
Comment 1•10 years ago
|
||
Need to redirect this to cpearce; that's deep in the EME side
Flags: needinfo?(rjesup) → needinfo?(cpearce)
Comment 2•10 years ago
|
||
I'm not super-keen on using UniquePtr since we have to pass the raw pointer to OS functions, which breaks the "uniqueness" of the pointer.
We can replace the use of scoped_array<wchar_t> with a std::vector<wchar_t> in that file, since we're unlikely to be needing to pull in updates from upstream again.
Flags: needinfo?(cpearce)
Comment 3•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/36175/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/36175/
Attachment #8722673 -
Flags: review?(gsquelart)
Comment on attachment 8722673 [details]
MozReview Request: Bug 1249424 - Remove use of nsAutoArrayPtr from librlz. r?gerald
https://reviewboard.mozilla.org/r/36175/#review32761
Attachment #8722673 -
Flags: review?(gsquelart) → review+
Comment 6•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•