Changeset 211298 in webkit
- Timestamp:
- Jan 27, 2017 12:35:53 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r211294 r211298 1 2017-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 1 15 2017-01-27 Myles C. Maxfield <mmaxfield@apple.com> 2 16 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r211247 r211298 1456 1456 1457 1457 // Log that we started loading a media element. 1458 page->diagnosticLoggingClient().logDiagnosticMessage WithValue(DiagnosticLoggingKeys::mediaKey(),isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::loadingKey(), ShouldSample::No);1458 page->diagnosticLoggingClient().logDiagnosticMessage(isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::loadingKey(), ShouldSample::No); 1459 1459 1460 1460 m_firstTimePlaying = true; … … 4904 4904 // Log that a media element was played. 4905 4905 if (auto* page = document().page()) 4906 page->diagnosticLoggingClient().logDiagnosticMessage WithValue(DiagnosticLoggingKeys::mediaKey(),isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::playedKey(), ShouldSample::No);4906 page->diagnosticLoggingClient().logDiagnosticMessage(isVideo() ? DiagnosticLoggingKeys::videoKey() : DiagnosticLoggingKeys::audioKey(), DiagnosticLoggingKeys::playedKey(), ShouldSample::No); 4907 4907 m_firstTimePlaying = false; 4908 4908 } -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.cpp
r211291 r211298 219 219 } 220 220 221 String DiagnosticLoggingKeys::mediaKey()222 {223 return ASCIILiteral("media");224 }225 226 221 String DiagnosticLoggingKeys::isErrorPageKey() 227 222 { -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.h
r211291 r211298 76 76 static String mainDocumentErrorKey(); 77 77 static String mainResourceKey(); 78 static String mediaKey();79 78 static String mediaLoadedKey(); 80 79 static String mediaLoadingFailedKey();
Note: See TracChangeset
for help on using the changeset viewer.