Changeset 269124 in webkit
- Timestamp:
- Oct 28, 2020, 2:16:49 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
history/BackForwardCache.cpp (modified) (1 diff)
-
loader/SubframeLoader.cpp (modified) (4 diffs)
-
page/DiagnosticLoggingKeys.cpp (modified) (3 diffs)
-
page/DiagnosticLoggingKeys.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r269121 r269124 1 2020-10-28 Conrad Shultz <conrad_shultz@apple.com> 2 3 Remove diagnostic logging for plug-ins 4 https://bugs.webkit.org/show_bug.cgi?id=218304 5 6 Reviewed by Tim Horton. 7 8 There's no longer a need to pipe diagnostic logging up to clients. 9 10 * history/BackForwardCache.cpp: 11 (WebCore::canCacheFrame): 12 13 * loader/SubframeLoader.cpp: 14 (WebCore::logPluginRequest): 15 Remove a now-unused parameter. 16 (WebCore::FrameLoader::SubframeLoader::requestObject): 17 (WebCore::FrameLoader::SubframeLoader::createJavaAppletWidget): 18 19 * page/DiagnosticLoggingKeys.cpp: 20 (WebCore::DiagnosticLoggingKeys::pluginLoadedKey): Deleted. 21 (WebCore::DiagnosticLoggingKeys::pluginLoadingFailedKey): Deleted. 22 (WebCore::DiagnosticLoggingKeys::pageContainsPluginKey): Deleted. 23 (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey): Deleted. 24 (WebCore::DiagnosticLoggingKeys::hasPluginsKey): Deleted. 25 26 * page/DiagnosticLoggingKeys.h: 27 1 28 2020-10-28 Jer Noble <jer.noble@apple.com> 2 29 -
trunk/Source/WebCore/history/BackForwardCache.cpp
r262978 r269124 138 138 if (frameLoader.subframeLoader().containsPlugins() && !frame.page()->settings().backForwardCacheSupportsPlugins()) { 139 139 PCLOG(" -Frame contains plugins"); 140 logBackForwardCacheFailureDiagnosticMessage(diagnosticLoggingClient, DiagnosticLoggingKeys::hasPluginsKey());141 140 isCacheable = false; 142 141 } -
trunk/Source/WebCore/loader/SubframeLoader.cpp
r268162 r269124 189 189 } 190 190 191 static void logPluginRequest(Page* page, const String& mimeType, const URL& url , bool success)191 static void logPluginRequest(Page* page, const String& mimeType, const URL& url) 192 192 { 193 193 if (!page) … … 204 204 String pluginFile = page->pluginData().pluginFileForWebVisibleMimeType(newMIMEType); 205 205 String description = !pluginFile ? newMIMEType : pluginFile; 206 207 DiagnosticLoggingClient& diagnosticLoggingClient = page->diagnosticLoggingClient();208 diagnosticLoggingClient.logDiagnosticMessage(success ? DiagnosticLoggingKeys::pluginLoadedKey() : DiagnosticLoggingKeys::pluginLoadingFailedKey(), description, ShouldSample::No);209 210 if (!page->hasSeenAnyPlugin())211 diagnosticLoggingClient.logDiagnosticMessage(DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey(), emptyString(), ShouldSample::No);212 213 if (!page->hasSeenPlugin(description))214 diagnosticLoggingClient.logDiagnosticMessage(DiagnosticLoggingKeys::pageContainsPluginKey(), description, ShouldSample::No);215 216 206 page->sawPlugin(description); 217 207 } … … 235 225 if (shouldUsePlugin(completedURL, mimeType, hasFallbackContent, useFallback)) { 236 226 bool success = requestPlugin(ownerElement, completedURL, mimeType, paramNames, paramValues, useFallback); 237 logPluginRequest(document.page(), mimeType, completedURL , success);227 logPluginRequest(document.page(), mimeType, completedURL); 238 228 return success; 239 229 } … … 281 271 widget = m_frame.loader().client().createJavaAppletWidget(size, element, baseURL, paramNames, paramValues); 282 272 283 logPluginRequest(m_frame.page(), element.serviceType(), { } , widget);273 logPluginRequest(m_frame.page(), element.serviceType(), { }); 284 274 285 275 if (!widget) { -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.cpp
r269078 r269124 54 54 } 55 55 56 String DiagnosticLoggingKeys::pluginLoadedKey()57 {58 return "pluginLoaded"_s;59 }60 61 String DiagnosticLoggingKeys::pluginLoadingFailedKey()62 {63 return "pluginFailedLoading"_s;64 }65 66 56 String DiagnosticLoggingKeys::postPageBackgroundingCPUUsageKey() 67 57 { … … 94 84 } 95 85 96 String DiagnosticLoggingKeys::pageContainsPluginKey()97 {98 return "pageContainsPlugin"_s;99 }100 101 String DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey()102 {103 return "pageContainsAtLeastOnePlugin"_s;104 }105 106 86 String DiagnosticLoggingKeys::pageContainsMediaEngineKey() 107 87 { … … 262 242 { 263 243 return "loading"_s; 264 }265 266 String DiagnosticLoggingKeys::hasPluginsKey()267 {268 return "hasPlugins"_s;269 244 } 270 245 -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.h
r269078 r269124 76 76 WEBCORE_EXPORT static String failedMoreThan20SecondsKey(); 77 77 static String fontKey(); 78 static String hasPluginsKey();79 78 static String httpsNoStoreKey(); 80 79 static String imageKey(); … … 121 120 static String visuallyEmptyKey(); 122 121 static String pageContainsAtLeastOneMediaEngineKey(); 123 static String pageContainsAtLeastOnePluginKey();124 122 static String pageContainsMediaEngineKey(); 125 static String pageContainsPluginKey();126 123 static String pageHandlesWebGLContextLossKey(); 127 124 static String pageLoadedKey(); 128 125 static String playedKey(); 129 static String pluginLoadedKey();130 static String pluginLoadingFailedKey();131 126 static String postPageBackgroundingCPUUsageKey(); 132 127 static String postPageBackgroundingMemoryUsageKey();
Note:
See TracChangeset
for help on using the changeset viewer.