Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor

There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
This commit is contained in:
Bobby Holley
2013-05-22 10:05:28 -06:00
parent 3587c0ac6b
commit c9c266aea9
84 changed files with 71 additions and 313 deletions

View File

@@ -1042,8 +1042,6 @@ PluginScriptableObjectParent::AnswerEnumerate(InfallibleTArray<PPluginIdentifier
aProperties->SetCapacity(idCount);
mozilla::AutoSafeJSContext cx;
JSAutoRequest ar(cx);
for (uint32_t index = 0; index < idCount; index++) {
// Because of GC hazards, all identifiers returned from enumerate
// must be made permanent.