[EME] Issue an "encrypted" event when a new encrypted initialization segment is encountered
<rdar://problem/59603354>
Created attachment 393266 [details] Patch
Comment on attachment 393266 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393266&action=review r=me once the bots are happy > Source/WTF/wtf/LoggerHelper.h:64 > +#define ALWAYS_LOG_IF_POSSIBLE(...) if (logger()) logger()->logAlways(logChannel(), __VA_ARGS__) > +#define ERROR_LOG_IF_POSSIBLE(...) if (logger()) logger()->error(logChannel(), __VA_ARGS__) > +#define WARNING_LOG_IF_POSSIBLE(...) if (logger()) logger()->warning(logChannel(), __VA_ARGS__) > +#define INFO_LOG_IF_POSSIBLE(...) if (logger()) logger()->info(logChannel(), __VA_ARGS__) > +#define DEBUG_LOG_IF_POSSIBLE(...) if (logger()) logger()->debug(logChannel(), __VA_ARGS__) > +#define WILL_LOG_IF_POSSIBLE(_level_) if (logger()) logger()->willLog(logChannel(), _level_) It might be a good idea to use a method with a different name, since currently 'logger()' always return a ref. Maybe loggerPtr()? if (loggerPtr()) loggerPtr()->log... > Source/WebCore/Modules/encryptedmedia/MediaKeySystemAccess.cpp:66 > + m_taskQueue.enqueueTask([this, document = makeRef(document), promise = WTFMove(promise)] () mutable { Do you need to keep the document alive, can't you use makeWeakPtr()?
Created attachment 393273 [details] Patch for landing
Comment on attachment 393273 [details] Patch for landing Clearing flags on attachment: 393273 Committed r258295: <https://trac.webkit.org/changeset/258295>
All reviewed patches have been landed. Closing bug.