RESOLVED FIXED 178846
Add inspector logging for MediaElementSession autoplay
https://bugs.webkit.org/show_bug.cgi?id=178846
Summary Add inspector logging for MediaElementSession autoplay
youenn fablet
Reported 2017-10-25 21:21:24 PDT
This is often a place where devs have difficulties
Attachments
Patch (7.00 KB, patch)
2017-10-25 21:23 PDT, youenn fablet
no flags
Patch (7.56 KB, patch)
2017-10-26 10:39 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2017-10-25 21:23:45 PDT
Eric Carlson
Comment 2 2017-10-26 05:21:53 PDT
Comment on attachment 324953 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=324953&action=review > Source/WebCore/html/MediaElementSession.cpp:112 > + , m_logIdentifier(reinterpret_cast<const void*>(cryptographicallyRandomNumber())) I think it would be better to use the media element’s identifier, so it will be easier to understand logging for pages with more than one element. > Source/WebCore/html/MediaElementSession.cpp:846 > +bool MediaElementSession::willLog(WTFLogLevel level) const Is it possible to just use the media element method? > Source/WebCore/html/MediaElementSession.cpp:857 > +WTFLogChannel& MediaElementSession::logChannel() const Ditto.
youenn fablet
Comment 3 2017-10-26 10:39:32 PDT
youenn fablet
Comment 4 2017-10-26 10:40:11 PDT
Thanks for the review. I updated patch accordingly.
WebKit Commit Bot
Comment 5 2017-10-26 11:38:58 PDT
Comment on attachment 325027 [details] Patch Clearing flags on attachment: 325027 Committed r224030: <https://trac.webkit.org/changeset/224030>
WebKit Commit Bot
Comment 6 2017-10-26 11:38:59 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2017-11-15 12:43:54 PST
Note You need to log in before you can comment on or make changes to this bug.