Bug 1318089: Follow-up: Re-add a lazy getter trigger that looked like a no-op. r=rhelmer
authorKris Maglione <maglione.k@gmail.com>
Thu, 17 Nov 2016 13:39:56 -0800
changeset 441142 808a44ee14bde32c2d12e3c84245b77d9e968fbf
parent 441141 ffe6c6137d8ed50653655303c5d5ee25c7919066
child 441143 852fa3bf50d748266342a943f9900dc7eab6d4ce
push id36375
push userbmo:rchien@mozilla.com
push dateFri, 18 Nov 2016 16:08:18 +0000
reviewersrhelmer
bugs1318089
milestone53.0a1
Bug 1318089: Follow-up: Re-add a lazy getter trigger that looked like a no-op. r=rhelmer MozReview-Commit-ID: 65HmvAzTNal
toolkit/mozapps/extensions/test/xpcshell/test_provider_shutdown.js
--- a/toolkit/mozapps/extensions/test/xpcshell/test_provider_shutdown.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_provider_shutdown.js
@@ -53,16 +53,18 @@ function findInStatus(aStatus, aName) {
 
 /*
  * Make sure we report correctly when an add-on provider or AddonRepository block shutdown
  */
 add_task(function* blockRepoShutdown() {
   // Reach into the AddonManager scope and inject our mock AddonRepository
   // the mock provider behaves enough like AddonRepository for the purpose of this test
   let mockRepo = mockAddonProvider("Mock repo");
+  // Trigger the lazy getter so that we can assign a new value to it:
+  void AMscope.AddonRepository;
   AMscope.AddonRepository = mockRepo;
 
   let mockProvider = mockAddonProvider("Mock provider");
 
   startupManager();
   AddonManagerPrivate.registerProvider(mockProvider);
 
   // Start shutting the manager down