Closed
Bug 867459
Opened 12 years ago
Closed 12 years ago
Fix various rooting hazards
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: dzbarsky, Assigned: dzbarsky)
References
Details
Attachments
(10 files)
8.35 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
24.90 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
9.70 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
4.14 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
6.54 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
705 bytes,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
2.47 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
3.45 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
6.39 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
2.41 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #743963 -
Flags: review?(terrence)
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #743982 -
Flags: review?(terrence)
Comment 2•12 years ago
|
||
Comment on attachment 743982 [details] [diff] [review]
Root toolkit/
Review of attachment 743982 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Attachment #743982 -
Flags: review?(terrence) → review+
Comment 3•12 years ago
|
||
Comment on attachment 743963 [details] [diff] [review]
Root xpcshell.cpp
Review of attachment 743963 [details] [diff] [review]:
-----------------------------------------------------------------
Excellent.
Attachment #743963 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e1fe36ce89d1
https://hg.mozilla.org/integration/mozilla-inbound/rev/9b1b9e61db7b
Whiteboard: [leave open]
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #744401 -
Flags: review?(terrence)
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #744418 -
Flags: review?(terrence)
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #744421 -
Flags: review?(terrence)
Assignee | ||
Comment 8•12 years ago
|
||
Attachment #744423 -
Flags: review?(terrence)
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #744425 -
Flags: review?(terrence)
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #744426 -
Flags: review?(terrence)
Comment 11•12 years ago
|
||
Updated•12 years ago
|
Attachment #744401 -
Flags: review?(terrence) → review+
Updated•12 years ago
|
Attachment #744418 -
Flags: review?(terrence) → review+
Comment 12•12 years ago
|
||
Comment on attachment 744421 [details] [diff] [review]
caps
Review of attachment 744421 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
::: caps/src/nsScriptSecurityManager.cpp
@@ +1590,5 @@
> {
> #ifdef DEBUG
> {
> + JS_ASSERT(JS_ObjectIsFunction(aCx, rootedFunObj));
> + JSFunction *fun = JS_GetObjectFunction(rootedFunObj);
|fun| should probably be rooted here too, even if it doesn't matter in practice at this site: if it is done down below, it will look odd if it isn't done here too.
Attachment #744421 -
Flags: review?(terrence) → review+
Comment 13•12 years ago
|
||
Comment on attachment 744423 [details] [diff] [review]
gfx
Review of attachment 744423 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #744423 -
Flags: review?(terrence) → review+
Comment 14•12 years ago
|
||
Comment on attachment 744425 [details] [diff] [review]
storage
Review of attachment 744425 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
::: storage/src/mozStorageAsyncStatementJSHelper.cpp
@@ +54,5 @@
> );
> NS_ENSURE_SUCCESS(rv, rv);
> }
>
> + JS::Rooted<JSObject*> obj(aCtx, nullptr);
I think the preferred browser style is to leave off explicit null initialization as it happens automatically now in all cases.
::: storage/src/mozStorageStatementJSHelper.cpp
@@ +107,5 @@
> );
> NS_ENSURE_SUCCESS(rv, rv);
> }
>
> + JS::Rooted<JSObject*> obj(aCtx, nullptr);
ditto
@@ +146,5 @@
> );
> NS_ENSURE_SUCCESS(rv, rv);
> }
>
> + JS::Rooted<JSObject*> obj(aCtx, nullptr);
ditto
Attachment #744425 -
Flags: review?(terrence) → review+
Comment 15•12 years ago
|
||
Comment on attachment 744426 [details] [diff] [review]
xpfe
Review of attachment 744426 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Thanks for the help with our long tail of rooting hazards! These are by far the scariest hazards for us to deal with and we greatly appreciate your help looking into them.
Attachment #744426 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 16•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b8786f0e0226
https://hg.mozilla.org/integration/mozilla-inbound/rev/de74752f65e7
https://hg.mozilla.org/integration/mozilla-inbound/rev/7ecd038b7b0d
https://hg.mozilla.org/integration/mozilla-inbound/rev/164a107f2202
https://hg.mozilla.org/integration/mozilla-inbound/rev/ec1fb05b0095
https://hg.mozilla.org/integration/mozilla-inbound/rev/354940bc7ff8
Assignee | ||
Comment 17•12 years ago
|
||
Comment 18•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b8786f0e0226
https://hg.mozilla.org/mozilla-central/rev/de74752f65e7
https://hg.mozilla.org/mozilla-central/rev/7ecd038b7b0d
https://hg.mozilla.org/mozilla-central/rev/164a107f2202
https://hg.mozilla.org/mozilla-central/rev/ec1fb05b0095
https://hg.mozilla.org/mozilla-central/rev/354940bc7ff8
https://hg.mozilla.org/mozilla-central/rev/c0f1553c1476
Assignee | ||
Comment 19•12 years ago
|
||
Attachment #745324 -
Flags: review?(terrence)
Assignee | ||
Comment 20•12 years ago
|
||
Attachment #745335 -
Flags: review?(terrence)
Comment 21•12 years ago
|
||
Comment on attachment 745324 [details] [diff] [review]
ipc
Review of attachment 745324 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #745324 -
Flags: review?(terrence) → review+
Comment 22•12 years ago
|
||
Comment on attachment 745335 [details] [diff] [review]
netwerk
Review of attachment 745335 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #745335 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 23•12 years ago
|
||
Comment 24•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [leave open]
Updated•12 years ago
|
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•