RESOLVED FIXED 92341
Add message traces when media and plugins load or fail to load.
https://bugs.webkit.org/show_bug.cgi?id=92341
Summary Add message traces when media and plugins load or fail to load.
Jer Noble
Reported 2012-07-25 23:50:06 PDT
Add message traces when media and plugins load or fail to load.
Attachments
Patch (5.91 KB, patch)
2012-07-26 00:12 PDT, Jer Noble
no flags
Patch (6.49 KB, patch)
2012-07-26 10:57 PDT, Jer Noble
andersca: review+
webkit.review.bot: commit-queue-
Jer Noble
Comment 1 2012-07-26 00:12:36 PDT
Early Warning System Bot
Comment 2 2012-07-26 00:43:57 PDT
WebKit Review Bot
Comment 3 2012-07-26 00:44:55 PDT
Comment on attachment 154561 [details] Patch Attachment 154561 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13351556
Early Warning System Bot
Comment 4 2012-07-26 00:49:06 PDT
Gyuyoung Kim
Comment 5 2012-07-26 01:00:48 PDT
Gustavo Noronha (kov)
Comment 6 2012-07-26 01:33:20 PDT
Eric Carlson
Comment 7 2012-07-26 05:52:57 PDT
Comment on attachment 154561 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154561&action=review > Source/WebCore/html/HTMLMediaElement.cpp:1520 > + default: return emptyString(); Shouldn't this have ASSERT_NOT_REACHED? > Source/WebCore/html/HTMLMediaElement.cpp:1701 > scheduleEvent(eventNames().loadeddataEvent); > setShouldDelayLoadEvent(false); > + if (document()->page() && document()->page()->settings()->messageTracingEnabled()) > + document()->page()->chrome()->client()->traceMessage(ChromeClient::MediaLoaded, m_player->engineDescription()); I think it would be better to do this when we reach HAVE_METADATA, or an element with "preload=metadata" may not ever notify the client even thought it found and loaded part of a valid media file.
Jer Noble
Comment 8 2012-07-26 08:06:38 PDT
(In reply to comment #7) > (From update of attachment 154561 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=154561&action=review > > > Source/WebCore/html/HTMLMediaElement.cpp:1520 > > + default: return emptyString(); > > Shouldn't this have ASSERT_NOT_REACHED? Sure. > > Source/WebCore/html/HTMLMediaElement.cpp:1701 > > scheduleEvent(eventNames().loadeddataEvent); > > setShouldDelayLoadEvent(false); > > + if (document()->page() && document()->page()->settings()->messageTracingEnabled()) > > + document()->page()->chrome()->client()->traceMessage(ChromeClient::MediaLoaded, m_player->engineDescription()); > > I think it would be better to do this when we reach HAVE_METADATA, or an element with "preload=metadata" may not ever notify the client even thought it found and loaded part of a valid media file. Is HAVE_METADATA guaranteed to only fire once? (It looks like we will never drop down below HAVE_METADATA unless the user cancels load. So yes.)
Jer Noble
Comment 9 2012-07-26 10:57:15 PDT
WebKit Review Bot
Comment 10 2012-07-26 11:13:23 PDT
Comment on attachment 154688 [details] Patch Attachment 154688 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13351831
Early Warning System Bot
Comment 11 2012-07-26 11:13:58 PDT
Early Warning System Bot
Comment 12 2012-07-26 11:18:47 PDT
Gyuyoung Kim
Comment 13 2012-07-26 11:22:43 PDT
Jer Noble
Comment 14 2012-07-26 12:01:40 PDT
Note You need to log in before you can comment on or make changes to this bug.