Closed
Bug 867204
Opened 12 years ago
Closed 12 years ago
Don't use jsdbgapi in IDBFactory
Categories
(Core :: Storage: IndexedDB, defect)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(1 file)
|
1.49 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
I noticed the other day that IDBFactory calls JS_UnwrapObject, which is actually a jsdbgapi.h call, not a normal API (defined as js::UncheckedUnwrap). That seems weird. Presumably there's some XPConnect function that should be called instead?
226 // The CreateSandbox call returns a proxy to the actual sandbox object. We
227 // don't need a proxy here.
228 global = JS_UnwrapObject(global);
Marking as security sensitive in case the existing code is really dangerous. :)
Comment 1•12 years ago
|
||
This isn't a security issue - the code just wants to create a sandbox an then enter the compartment of the sandbox. But the code shouldn't be using jsdbapi either.
This call should be replaced with js::UncheckedUnwrap(obj).
Group: core-security
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → continuation
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #743745 -
Flags: review?(khuey)
Comment on attachment 743745 [details] [diff] [review]
delta conversion
302 bholley
Attachment #743745 -
Flags: review?(khuey) → review?(bobbyholley+bmo)
Updated•12 years ago
|
Attachment #743745 -
Flags: review?(bobbyholley+bmo) → review+
Can you remove the jsdbgapi version?
Comment 5•12 years ago
|
||
(In reply to ben turner [:bent] from comment #4)
> Can you remove the jsdbgapi version?
Looks like all the callers are now C++ (there used to be some C ones), so that should be fine. Andrew, are you willing to add such a patch to this bug?
| Assignee | ||
Comment 6•12 years ago
|
||
Filed bug 867350 for removing the two unwrap functions there.
| Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•