Bug 1066537 - avoid intermittent thumbnail orange. r=unfocused
authorMark Hammond <mhammond@skippinet.com.au>
Thu, 18 Sep 2014 14:49:35 +1000
changeset 206030 bba92cfc53c30e4ca8b41bdad73f778ff99431c7
parent 206029 c45f715f529cec5837b7ee0d999c7ab251082529
child 206031 edf8948eb543acfcfc30e3c49920450d81bb2f5c
push id49338
push userkwierso@gmail.com
push dateThu, 18 Sep 2014 23:10:09 +0000
treeherdermozilla-inbound@245051c6a7ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersunfocused
bugs1066537
milestone35.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 1066537 - avoid intermittent thumbnail orange. r=unfocused
toolkit/components/thumbnails/test/head.js
--- a/toolkit/components/thumbnails/test/head.js
+++ b/toolkit/components/thumbnails/test/head.js
@@ -225,17 +225,17 @@ function addVisits(aPlaceInfo, aCallback
     places = places.concat(aPlaceInfo);
   } else {
     places.push(aPlaceInfo)
   }
 
   // Create mozIVisitInfo for each entry.
   let now = Date.now();
   for (let i = 0; i < places.length; i++) {
-    if (typeof(places[i] == "string")) {
+    if (typeof(places[i]) == "string") {
       places[i] = { uri: Services.io.newURI(places[i], "", null) };
     }
     if (!places[i].title) {
       places[i].title = "test visit for " + places[i].uri.spec;
     }
     places[i].visits = [{
       transitionType: places[i].transition === undefined ? PlacesUtils.history.TRANSITION_LINK
                                                          : places[i].transition,