Bug 1331115 - Fix two typos in CPOW code. r=billm
authorAndrew McCreight <continuation@gmail.com>
Fri, 13 Jan 2017 09:49:17 -0800
changeset 374397 8c6eb60662331964389361b9f27fadf57ab4a3f0
parent 374396 be590d43a9996faa384321150f8649f66cb4f51c
child 374398 a13adc3d231033783dcc044002972a52854a4a5a
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs1331115
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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()) {