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:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175332
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2014-10-29 Jer Noble <jer.noble@apple.com>
+ [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 <jer.noble@apple.com>
+
[EME][Mac] MediaKeySession type "keyrelease" is ignored.
https://bugs.webkit.org/show_bug.cgi?id=138175
// 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);