Changeset 211298 in webkit


Ignore:
Timestamp:
Jan 27, 2017 12:35:53 PM (7 years ago)
Author:
Chris Dumez
Message:

Fix diagnostic logging in media code
https://bugs.webkit.org/show_bug.cgi?id=167510

Reviewed by Alex Christensen.

Fix diagnostic logging in media code. It should not use logDiagnosticMessageWithValue()
with a non-numeric value.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::loadResource):
(WebCore::HTMLMediaElement::updatePlayState):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r211294 r211298  
     12017-01-27  Chris Dumez  <cdumez@apple.com>
     2
     3        Fix diagnostic logging in media code
     4        https://bugs.webkit.org/show_bug.cgi?id=167510
     5
     6        Reviewed by Alex Christensen.
     7
     8        Fix diagnostic logging in media code. It should not use logDiagnosticMessageWithValue()
     9        with a non-numeric value.
     10
     11        * html/HTMLMediaElement.cpp:
     12        (WebCore::HTMLMediaElement::loadResource):
     13        (WebCore::HTMLMediaElement::updatePlayState):
     14
    1152017-01-27  Myles C. Maxfield  <mmaxfield@apple.com>
    216
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r211247 r211298  
    14561456
    14571457    // Log that we started loading a media element.
    1458     page->diagnosticLoggingClient().logDiagnosticMessageWithValue(DiagnosticLoggingKeys::mediaKey(), isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::loadingKey(), ShouldSample::No);
     1458    page->diagnosticLoggingClient().logDiagnosticMessage(isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::loadingKey(), ShouldSample::No);
    14591459
    14601460    m_firstTimePlaying = true;
     
    49044904                // Log that a media element was played.
    49054905                if (auto* page = document().page())
    4906                     page->diagnosticLoggingClient().logDiagnosticMessageWithValue(DiagnosticLoggingKeys::mediaKey(), isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::playedKey(), ShouldSample::No);
     4906                    page->diagnosticLoggingClient().logDiagnosticMessage(isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::playedKey(), ShouldSample::No);
    49074907                m_firstTimePlaying = false;
    49084908            }
  • trunk/Source/WebCore/page/DiagnosticLoggingKeys.cpp

    r211291 r211298  
    219219}
    220220
    221 String DiagnosticLoggingKeys::mediaKey()
    222 {
    223     return ASCIILiteral("media");
    224 }
    225 
    226221String DiagnosticLoggingKeys::isErrorPageKey()
    227222{
  • trunk/Source/WebCore/page/DiagnosticLoggingKeys.h

    r211291 r211298  
    7676    static String mainDocumentErrorKey();
    7777    static String mainResourceKey();
    78     static String mediaKey();
    7978    static String mediaLoadedKey();
    8079    static String mediaLoadingFailedKey();
Note: See TracChangeset for help on using the changeset viewer.