Bug 1461062: Follow-up: Fix Windows file locking bustage. r=bustage
authorKris Maglione <maglione.k@gmail.com>
Wed, 16 May 2018 19:42:05 -0700
changeset 418592 1a8ee54966948017a1018224dde2dbc90150b35d
parent 418591 650f7a9bed05d747b50dfb054768a3c23f6c82c4
child 418593 46f0e465153ff635684aafa645d3a326d6534316
push id103342
push usermaglione.k@gmail.com
push dateThu, 17 May 2018 02:42:24 +0000
treeherdermozilla-inbound@1a8ee5496694 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1461062
milestone62.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 1461062: Follow-up: Fix Windows file locking bustage. r=bustage MozReview-Commit-ID: 3T9n5T2pxSP
toolkit/mozapps/extensions/internal/AddonTestUtils.jsm
--- a/toolkit/mozapps/extensions/internal/AddonTestUtils.jsm
+++ b/toolkit/mozapps/extensions/internal/AddonTestUtils.jsm
@@ -509,16 +509,17 @@ var AddonTestUtils = {
     let print = this.testScope.info || this.testScope.do_print;
     print(msg);
   },
 
   cleanupTempXPIs() {
     for (let file of this.tempXPIs.splice(0)) {
       if (file.exists()) {
         try {
+          Services.obs.notifyObservers(file, "flush-cache-entry");
           file.remove(false);
         } catch (e) {
           Cu.reportError(e);
         }
       }
     }
   },