Bug 1416249 - Remove conditional catch consumers in devtools/. r=jmaher
authorTooru Fujisawa <arai_a@mac.com>
Sat, 18 Nov 2017 22:57:17 +0900
changeset 392573 49ec21245c48ca0f4b7b1ee370a7ccfd3024140c
parent 392572 ee65b4ddd8d37d4009f19db080a092d5a0d9e936
child 392574 74ced70141b30f7485a79ac69de4c64f8c462536
push id97475
push userarai_a@mac.com
push dateSat, 18 Nov 2017 13:59:29 +0000
treeherdermozilla-inbound@ae9e1ead6772 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1416249
milestone59.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 1416249 - Remove conditional catch consumers in devtools/. r=jmaher
devtools/shared/webconsole/test/test_file_uri.html
--- a/devtools/shared/webconsole/test/test_file_uri.html
+++ b/devtools/shared/webconsole/test/test_file_uri.html
@@ -77,17 +77,20 @@ function onFileActivity(aType, aPacket)
 
 function testEnd()
 {
   if (gTmpFile) {
     SimpleTest.executeSoon(function() {
       try {
         gTmpFile.remove(false);
       }
-      catch (ex if (ex.name == "NS_ERROR_FILE_IS_LOCKED")) {
+      catch (ex) {
+        if (ex.name != "NS_ERROR_FILE_IS_LOCKED") {
+          throw ex;
+        }
         // Sometimes remove() throws because the file is not unlocked soon
         // enough.
       }
       gTmpFile = null;
     });
   }
 
   if (gState) {