Bug 1513859 - Followup fix to make eslint happy; r=bustage CLOSED TREE
authorJan Varga <jan.varga@gmail.com>
Wed, 19 Dec 2018 13:08:42 +0100
changeset 508403 c859d4292a5b
parent 508402 c855be9f9a7c
child 508404 91fb09d21018
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1513859
milestone66.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 1513859 - Followup fix to make eslint happy; r=bustage CLOSED TREE
dom/base/test/chrome/cpows_child.js
--- a/dom/base/test/chrome/cpows_child.js
+++ b/dom/base/test/chrome/cpows_child.js
@@ -362,18 +362,17 @@ function dead_test(finish) {
   {
     let thing = { value: "Gonna croak" };
     sendAsyncMessage("cpows:dead", null, { thing, gcTrigger });
   }
 
   addMessageListener("cpows:dead_done", finish);
 }
 
-function localStorage_test(finish)
-{
+function localStorage_test(finish) {
   // This test exits because a synchronous message can be sent from the parent
   // while localStorage is synchronously blocking the main thread in the child
   // which can result in deadlock.  When unsafe CPOWS go away:
   //   1. The test can go away.
   //   2. LocalStorage can be further cleaned up and a bug should be filed to
   //      clean it up.
   if (!is_remote) {
     // Only run this test when running out-of-process.
@@ -382,11 +381,11 @@ function localStorage_test(finish)
   }
 
   function f() {}
 
   sendAsyncMessage("cpows:localStorage", null, {f});
   addMessageListener("cpows:localStorage_done", finish);
 
   for (let i = 0; i < 3; i++) {
-    try { let l = content.localStorage.length; } catch (ex) {}
+    try { content.localStorage.setItem("foo", "bar"); } catch (ex) {}
   }
 }