Bug 1331115 - Fix two typos in CPOW code. r=billm draft
authorAndrew McCreight <continuation@gmail.com>
Fri, 13 Jan 2017 09:49:17 -0800
changeset 460831 8379dc39fd924abbfff0e796c2138201268fba03
parent 460830 9bb077c59af57998b66c54a8f5749a24498d3ace
child 460902 d30824753a8c7e2e388a11df852444747aa819be
push id41508
push userbmo:continuation@gmail.com
push dateFri, 13 Jan 2017 22:46:21 +0000
reviewersbillm
bugs1331115
milestone53.0a1
Bug 1331115 - Fix two typos in CPOW code. r=billm MozReview-Commit-ID: FAh7O1U9hGP
js/ipc/JavaScriptParent.cpp
js/ipc/JavaScriptShared.cpp
--- 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()) {