Index: LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html |
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html b/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html |
index a00338a072c35b1e7c09c33b0577689b7ed5be65..5a5b07e640f1a46c65481176ab2eb1b757669306 100644 |
--- a/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html |
+++ b/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html |
@@ -14,10 +14,12 @@ |
// Run garbage collection often. |
setInterval(asyncGC, 0); |
+ var mediaKeySession; |
MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) { |
var initDataType = getInitDataType(); |
- return mediaKeys.createSession(initDataType, getInitData(initDataType)); |
- }).then(function(mediaKeySession) { |
+ mediaKeySession = mediaKeys.createSession(); |
+ return mediaKeySession.generateRequest(initDataType, getInitData(initDataType)); |
+ }).then(function() { |
return mediaKeySession.release(); |
}).then(function(result) { |
test.done(); |