Bug 1628871 - followup: fix test for esr68. a=bustage-fix
authorJulien Cristau <jcristau@mozilla.com>
Thu, 14 May 2020 18:17:26 +0200
changeset 524811 77897237c7a870f6bc754e0a57742391504e4b89
parent 524810 ae094433b55defdcd5a0ebeb52f197f42d1a92b6
child 524816 6863f516ba386cfadfd2f60ac45411dc7a0850cf
push id1029
push userjcristau@mozilla.com
push dateThu, 14 May 2020 18:28:43 +0000
treeherdermozilla-esr68@77897237c7a8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1628871
milestone68.9.0
Bug 1628871 - followup: fix test for esr68. a=bustage-fix Differential Revision: https://phabricator.services.mozilla.com/D75347
browser/base/content/test/plugins/browser_enable_DRM_prompt.js
--- a/browser/base/content/test/plugins/browser_enable_DRM_prompt.js
+++ b/browser/base/content/test/plugins/browser_enable_DRM_prompt.js
@@ -102,17 +102,17 @@ add_task(async function test_eme_locked(
     });
 
     // Turn off EME and Widevine CDM.
     Services.prefs.setBoolPref("media.eme.enabled", false);
     Services.prefs.lockPref("media.eme.enabled");
 
     // Have content request access to Widevine, UI should drop down to
     // prompt user to enable DRM.
-    let result = await SpecialPowers.spawn(browser, [], async function() {
+    let result = await ContentTask.spawn(browser, null, async function() {
       try {
         let config = [
           {
             initDataTypes: ["webm"],
             videoCapabilities: [{ contentType: 'video/webm; codecs="vp9"' }],
           },
         ];
         await content.navigator.requestMediaKeySystemAccess(