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 451270 c859d4292a5b1c2c8b3e8b8510bee4b26dc3c22a
parent 451269 c855be9f9a7c0e26d91f0e2b021dc7a874ff09b1
child 451271 91fb09d21018429082ba647b8079a7834ad48ee3
push id110639
push userjvarga@mozilla.com
push dateWed, 19 Dec 2018 12:11:29 +0000
treeherdermozilla-inbound@c859d4292a5b [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) {}
   }
 }