Bug 1331115 - Fix two typos in CPOW code. r=billm
MozReview-Commit-ID: FAh7O1U9hGP
--- a/js/ipc/JavaScriptParent.cpp
+++ b/js/ipc/JavaScriptParent.cpp
@@ -160,17 +160,17 @@ JavaScriptParent::trace(JSTracer* trc)
objects_.trace(trc);
unwaivedObjectIds_.trace(trc);
waivedObjectIds_.trace(trc);
}
JSObject*
JavaScriptParent::scopeForTargetObjects()
{
- // CPWOWs from the child need to point into the parent's unprivileged junk
+ // CPOWs from the child need to point into the parent's unprivileged junk
// scope so that a compromised child cannot compromise the parent. In
// practice, this means that a child process can only (a) hold parent
// objects alive and (b) invoke them if they are callable.
return xpc::UnprivilegedJunkScope();
}
void
JavaScriptParent::afterProcessTask()
--- a/js/ipc/JavaScriptShared.cpp
+++ b/js/ipc/JavaScriptShared.cpp
@@ -28,20 +28,20 @@ bool
IdToObjectMap::init()
{
if (table_.initialized())
return true;
return table_.init(32);
}
void
-IdToObjectMap::trace(JSTracer* trc, uint64_t minimimId)
+IdToObjectMap::trace(JSTracer* trc, uint64_t minimumId)
{
for (Table::Range r(table_.all()); !r.empty(); r.popFront()) {
- if (r.front().key().serialNumber() >= minimimId)
+ if (r.front().key().serialNumber() >= minimumId)
JS::TraceEdge(trc, &r.front().value(), "ipc-object");
}
}
void
IdToObjectMap::sweep()
{
for (Table::Enum e(table_); !e.empty(); e.popFront()) {