Title: [175332] trunk/Source/WebCore
Revision
175332
Author
[email protected]
Date
2014-10-29 10:53:24 -0700 (Wed, 29 Oct 2014)

Log Message

[EME] MediaKeySession resources persist across page reloads
https://bugs.webkit.org/show_bug.cgi?id=138176

Reviewed by Eric Carlson.

MediaKeySession is an ActiveDOMObject, so when told to stop() by our execution context,
close() the session, releasing all our resources.

* Modules/encryptedmedia/MediaKeySession.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (175331 => 175332)


--- trunk/Source/WebCore/ChangeLog	2014-10-29 17:53:22 UTC (rev 175331)
+++ trunk/Source/WebCore/ChangeLog	2014-10-29 17:53:24 UTC (rev 175332)
@@ -1,5 +1,17 @@
 2014-10-29  Jer Noble  <[email protected]>
 
+        [EME] MediaKeySession resources persist across page reloads
+        https://bugs.webkit.org/show_bug.cgi?id=138176
+
+        Reviewed by Eric Carlson.
+
+        MediaKeySession is an ActiveDOMObject, so when told to stop() by our execution context,
+        close() the session, releasing all our resources.
+
+        * Modules/encryptedmedia/MediaKeySession.h:
+
+2014-10-29  Jer Noble  <[email protected]>
+
         [EME][Mac] MediaKeySession type "keyrelease" is ignored.
         https://bugs.webkit.org/show_bug.cgi?id=138175
 

Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h (175331 => 175332)


--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h	2014-10-29 17:53:22 UTC (rev 175331)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h	2014-10-29 17:53:24 UTC (rev 175332)
@@ -73,6 +73,7 @@
 
     // ActiveDOMObject
     virtual bool hasPendingActivity() const override { return (m_keys && !isClosed()) || m_asyncEventQueue.hasPendingEvents(); }
+    virtual void stop() override { close(); }
 
     DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitkeyadded);
     DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitkeyerror);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to