Changeset 263474 in webkit
- Timestamp:
- Jun 24, 2020 2:18:10 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r263473 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 We should resurrect the older patch that collects some statistics of web API calls 9 10 + Enabled web API statistics tests in ios-wk2 and mac-wk2 11 + Updated expectations for web API statistics and resrource load statistics tests. 12 13 * http/tests/webAPIStatistics/canvas-read-and-write-data-collection-expected.txt: 14 * http/tests/webAPIStatistics/font-load-data-collection-expected.txt: 15 * http/tests/webAPIStatistics/navigator-functions-accessed-data-collection-expected.txt: 16 * http/tests/webAPIStatistics/screen-functions-accessed-data-collection-expected.txt: 17 * platform/ios-wk2/TestExpectations: 18 * platform/mac-wk2/TestExpectations: 19 20 * http/tests/resourceLoadStatistics/aggregate-sorted-data-no-storage-access-expected.txt: 21 * http/tests/resourceLoadStatistics/count-third-party-script-import-in-worker-expected.txt: 22 * http/tests/resourceLoadStatistics/count-third-party-script-loads-expected.txt: 23 * http/tests/resourceLoadStatistics/dont-count-third-party-image-as-third-party-script-expected.txt: 24 * http/tests/resourceLoadStatistics/log-cross-site-load-with-link-decoration-expected.txt: 25 * http/tests/resourceLoadStatistics/log-delayed-client-side-redirects-expected.txt: 26 * http/tests/resourceLoadStatistics/remove-website-data-for-origin-deletes-link-decoration-expected.txt: 27 * http/tests/resourceLoadStatistics/remove-website-data-for-origin-deletes-third-party-script-loads-expected.txt: 28 * http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration-expected.txt: 29 * http/tests/storageAccess/aggregate-sorted-data-with-storage-access-expected.txt: 30 1 31 2020-06-24 Pinki Gyanchandani <pgyanchandani@apple.com> 2 32 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/aggregate-sorted-data-no-storage-access-expected.txt
r256055 r263474 17 17 isVeryPrevalentResource: No 18 18 dataRecordsRemoved: 0 19 canvasReadData: No 20 19 21 Registrable domain: subframe2 20 22 hadUserInteraction: No … … 27 29 isVeryPrevalentResource: No 28 30 dataRecordsRemoved: 0 31 canvasReadData: No 32 29 33 Registrable domain: subframe3 30 34 hadUserInteraction: No … … 42 46 isVeryPrevalentResource: No 43 47 dataRecordsRemoved: 0 48 canvasReadData: No 49 44 50 Registrable domain: topframe1 45 51 hadUserInteraction: No … … 50 56 isVeryPrevalentResource: No 51 57 dataRecordsRemoved: 0 58 canvasReadData: No 59 52 60 Registrable domain: topframe2 53 61 hadUserInteraction: No … … 58 66 isVeryPrevalentResource: No 59 67 dataRecordsRemoved: 0 68 canvasReadData: No 69 60 70 Registrable domain: topframe3 61 71 hadUserInteraction: No … … 66 76 isVeryPrevalentResource: No 67 77 dataRecordsRemoved: 0 78 canvasReadData: No 79 68 80 Registrable domain: topframe4 69 81 hadUserInteraction: No … … 74 86 isVeryPrevalentResource: No 75 87 dataRecordsRemoved: 0 88 canvasReadData: No 89 76 90 77 91 ITP Data: -
trunk/LayoutTests/http/tests/resourceLoadStatistics/count-third-party-script-import-in-worker-expected.txt
r256055 r263474 15 15 isVeryPrevalentResource: No 16 16 dataRecordsRemoved: 0 17 canvasReadData: No 18 17 19 Registrable domain: localhost 18 20 hadUserInteraction: No … … 25 27 isVeryPrevalentResource: No 26 28 dataRecordsRemoved: 0 29 canvasReadData: No 30 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/count-third-party-script-loads-expected.txt
r256055 r263474 15 15 isVeryPrevalentResource: No 16 16 dataRecordsRemoved: 0 17 canvasReadData: No 18 17 19 Registrable domain: localhost 18 20 hadUserInteraction: No … … 25 27 isVeryPrevalentResource: No 26 28 dataRecordsRemoved: 0 29 canvasReadData: No 30 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/dont-count-third-party-image-as-third-party-script-expected.txt
r253697 r263474 15 15 isVeryPrevalentResource: No 16 16 dataRecordsRemoved: 0 17 canvasReadData: No 18 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/log-cross-site-load-with-link-decoration-expected.txt
r256197 r263474 13 13 isVeryPrevalentResource: No 14 14 dataRecordsRemoved: 0 15 canvasReadData: No 16 15 17 Registrable domain: localhost 16 18 hadUserInteraction: No … … 25 27 isVeryPrevalentResource: No 26 28 dataRecordsRemoved: 0 29 canvasReadData: No 30 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/log-delayed-client-side-redirects-expected.txt
r256055 r263474 13 13 isVeryPrevalentResource: No 14 14 dataRecordsRemoved: 0 15 canvasReadData: No 16 15 17 Registrable domain: localhost 16 18 hadUserInteraction: No … … 23 25 isVeryPrevalentResource: No 24 26 dataRecordsRemoved: 0 27 canvasReadData: No 28 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/remove-website-data-for-origin-deletes-link-decoration-expected.txt
r260668 r263474 10 10 isVeryPrevalentResource: No 11 11 dataRecordsRemoved: 0 12 canvasReadData: No 13 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/remove-website-data-for-origin-deletes-third-party-script-loads-expected.txt
r260668 r263474 13 13 isVeryPrevalentResource: No 14 14 dataRecordsRemoved: 0 15 canvasReadData: No 16 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration-expected.txt
r256055 r263474 26 26 isVeryPrevalentResource: No 27 27 dataRecordsRemoved: 1 28 canvasReadData: No 29 28 30 Registrable domain: localhost 29 31 hadUserInteraction: No … … 34 36 isVeryPrevalentResource: No 35 37 dataRecordsRemoved: 0 38 canvasReadData: No 39 -
trunk/LayoutTests/http/tests/storageAccess/aggregate-sorted-data-with-storage-access-expected.txt
r256055 r263474 23 23 isVeryPrevalentResource: No 24 24 dataRecordsRemoved: 0 25 canvasReadData: No 26 25 27 Registrable domain: localhost 26 28 hadUserInteraction: Yes … … 39 41 isVeryPrevalentResource: No 40 42 dataRecordsRemoved: 0 43 canvasReadData: No 44 41 45 42 46 ITP Data: -
trunk/LayoutTests/http/tests/webAPIStatistics/canvas-read-and-write-data-collection-expected.txt
r237304 r263474 2 2 Resource load statistics: 3 3 4 High level domain: 127.0.0.1 5 lastSeen: 0 4 Registrable domain: 127.0.0.1 6 5 hadUserInteraction: No 7 6 mostRecentUserInteraction: -1 8 7 grandfathered: No 8 gotLinkDecorationFromPrevalentResource: No 9 9 isPrevalentResource: No 10 10 isVeryPrevalentResource: No … … 14 14 Times 15 15 topFrameRegistrableDomainsWhichAccessedWebAPIs: 16 127.0.0.1 : 416 127.0.0.1 17 17 canvasTextWritten: 18 18 suspicious invisible text -
trunk/LayoutTests/http/tests/webAPIStatistics/font-load-data-collection-expected.txt
r237304 r263474 4 4 Resource load statistics: 5 5 6 High level domain: 127.0.0.1 7 lastSeen: 0 6 Registrable domain: 127.0.0.1 8 7 hadUserInteraction: No 9 8 mostRecentUserInteraction: -1 10 9 grandfathered: No 10 gotLinkDecorationFromPrevalentResource: No 11 11 isPrevalentResource: No 12 12 isVeryPrevalentResource: No … … 19 19 Times 20 20 topFrameRegistrableDomainsWhichAccessedWebAPIs: 21 127.0.0.1 : 521 127.0.0.1 22 22 canvasReadData: No 23 23 -
trunk/LayoutTests/http/tests/webAPIStatistics/navigator-functions-accessed-data-collection-expected.txt
r237304 r263474 2 2 Resource load statistics: 3 3 4 High level domain: 127.0.0.1 5 lastSeen: 0 4 Registrable domain: 127.0.0.1 6 5 hadUserInteraction: No 7 6 mostRecentUserInteraction: -1 8 7 grandfathered: No 8 gotLinkDecorationFromPrevalentResource: No 9 9 isPrevalentResource: No 10 10 isVeryPrevalentResource: No … … 13 13 Times 14 14 topFrameRegistrableDomainsWhichAccessedWebAPIs: 15 127.0.0.1 : 815 127.0.0.1 16 16 navigatorFunctionsAccessed: 17 17 appVersion -
trunk/LayoutTests/http/tests/webAPIStatistics/screen-functions-accessed-data-collection-expected.txt
r237304 r263474 2 2 Resource load statistics: 3 3 4 High level domain: 127.0.0.1 5 lastSeen: 0 4 Registrable domain: 127.0.0.1 6 5 hadUserInteraction: No 7 6 mostRecentUserInteraction: -1 8 7 grandfathered: No 8 gotLinkDecorationFromPrevalentResource: No 9 9 isPrevalentResource: No 10 10 isVeryPrevalentResource: No … … 13 13 Times 14 14 topFrameRegistrableDomainsWhichAccessedWebAPIs: 15 127.0.0.1 : 915 127.0.0.1 16 16 screenFunctionsAccessed: 17 17 height -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r263452 r263474 70 70 71 71 # Skipped because of <rdar://problem/45388584>. 72 http/tests/webAPIStatistics [ Skip]72 http/tests/webAPIStatistics [ Pass ] 73 73 74 74 # Non-fast scrollable region doesn't apply to iOS. -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r263463 r263474 71 71 72 72 # Skipped because of <rdar://problem/45388584>. 73 http/tests/webAPIStatistics [ Skip]73 http/tests/webAPIStatistics [ Pass ] 74 74 75 75 webkit.org/b/184569 storage/indexeddb/modern/transactions-stop-on-navigation.html [ Pass Failure ] -
trunk/Source/JavaScriptCore/ChangeLog
r263470 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 + Enabled ENABLE_WEB_API_STATISTICS flag 9 10 * Configurations/FeatureDefines.xcconfig: 11 1 12 2020-06-24 Alexey Shvayka <shvaikalesh@gmail.com> 2 13 -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r262695 r263474 386 386 ENABLE_WEBXR = ; 387 387 388 ENABLE_WEB_API_STATISTICS = ;388 ENABLE_WEB_API_STATISTICS = ENABLE_WEB_API_STATISTICS; 389 389 390 390 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Source/WTF/ChangeLog
r263461 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 + Enabled ENABLE_WEB_API_STATISTICS flag 9 10 * wtf/PlatformEnableCocoa.h: 11 1 12 2020-06-24 Geoffrey Garen <ggaren@apple.com> 2 13 -
trunk/Source/WTF/wtf/PlatformEnableCocoa.h
r263380 r263474 332 332 #endif 333 333 334 #if !defined(ENABLE_WEB_API_STATISTICS) 335 #define ENABLE_WEB_API_STATISTICS 1 336 #endif 337 334 338 #if !defined(ENABLE_RESOURCE_USAGE) 335 339 #define ENABLE_RESOURCE_USAGE 1 -
trunk/Source/WebCore/ChangeLog
r263473 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 No new tests. Enabled existing tests. 9 Enabled http/tests/webAPIStatistics that test the functionality behind WEB_API_STATISTICS flag. 10 11 + Brought back WebCore::encodeHashSet(KeyedEncoder& encoder, const String& label, 12 const String& key, const HashSet<String>& hashSet) because it was needed by 13 WebCore::encodeFontHashSet(KeyedEncoder& encoder, const String& label, const HashSet<String>& hashSet) 14 + Changed the type of HashCountedSet to HashSet because of earlier patch 15 (https://bugs.webkit.org/attachment.cgi?id=363033) updated other HashCountedSet to HashSet, 16 stating that the counted statistics were never used (see change log in the mentioned patch). 17 + Also changed the type of topFrameRegistrableDomainsWhichAccessedWebAPIs HashSet 18 from String to RegistrableDomain. See the earlier bug (https://bugs.webkit.org/show_bug.cgi?id=194791) 19 that explains the switch from String to RegistrableDomain for eTLD+1's 20 + Enabled WEB_API_STATISTICS flag in FeatureDefines.xcconfig and PlatformEnableCocoa.h 21 + Added WTF::EnumTraits<> for OptionSet<> enum in ResourceLoadStatistics.h due to an earlier change. 22 23 * loader/ResourceLoadStatistics.h: 24 * Configurations/FeatureDefines.xcconfig: 25 * loader/CanvasActivityRecord.h: 26 * loader/ResourceLoadStatistics.cpp: 27 (WebCore::encodeHashSet): 28 (WebCore::ResourceLoadStatistics::encode const): 29 (WebCore::decodeHashSet): 30 (WebCore::decodeCanvasActivityRecord): 31 (WebCore::ResourceLoadStatistics::decode): 32 (WebCore::appendHashSet): 33 (WebCore::ResourceLoadStatistics::toString const): 34 1 35 2020-06-24 Pinki Gyanchandani <pgyanchandani@apple.com> 2 36 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r262695 r263474 386 386 ENABLE_WEBXR = ; 387 387 388 ENABLE_WEB_API_STATISTICS = ;388 ENABLE_WEB_API_STATISTICS = ENABLE_WEB_API_STATISTICS; 389 389 390 390 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Source/WebCore/PAL/ChangeLog
r263364 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 + Enabled ENABLE_WEB_API_STATISTICS flag 9 10 * Configurations/FeatureDefines.xcconfig: 11 1 12 2020-06-22 Tim Horton <timothy_horton@apple.com> 2 13 -
trunk/Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig
r262695 r263474 386 386 ENABLE_WEBXR = ; 387 387 388 ENABLE_WEB_API_STATISTICS = ;388 ENABLE_WEB_API_STATISTICS = ENABLE_WEB_API_STATISTICS; 389 389 390 390 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Source/WebCore/loader/CanvasActivityRecord.h
r260078 r263474 34 34 bool wasDataRead { false }; 35 35 36 bool recordWrittenOrMeasuredText(const String&);36 WEBCORE_EXPORT bool recordWrittenOrMeasuredText(const String&); 37 37 void mergeWith(const CanvasActivityRecord&); 38 38 -
trunk/Source/WebCore/loader/ResourceLoadStatistics.cpp
r262228 r263474 61 61 62 62 #if ENABLE(WEB_API_STATISTICS) 63 static void encodeHashSet(KeyedEncoder& encoder, const String& label, const String& key, const HashSet<String>& hashSet) 64 { 65 if (hashSet.isEmpty()) 66 return; 67 68 encoder.encodeObjects(label, hashSet.begin(), hashSet.end(), [&key](KeyedEncoder& encoderInner, const String& origin) { 69 encoderInner.encodeString(key, origin); 70 }); 71 } 72 63 73 static void encodeFontHashSet(KeyedEncoder& encoder, const String& label, const HashSet<String>& hashSet) 64 74 { … … 117 127 encodeFontHashSet(encoder, "fontsFailedToLoad", fontsFailedToLoad); 118 128 encodeFontHashSet(encoder, "fontsSuccessfullyLoaded", fontsSuccessfullyLoaded); 119 encodeHash CountedSet(encoder, "topFrameRegistrableDomainsWhichAccessedWebAPIs", topFrameRegistrableDomainsWhichAccessedWebAPIs);129 encodeHashSet(encoder, "topFrameRegistrableDomainsWhichAccessedWebAPIs", "domain", topFrameRegistrableDomainsWhichAccessedWebAPIs); 120 130 encodeCanvasActivityRecord(encoder, "canvasActivityRecord", canvasActivityRecord); 121 131 encodeOptionSet(encoder, "navigatorFunctionsAccessedBitMask", navigatorFunctionsAccessed); … … 165 175 166 176 #if ENABLE(WEB_API_STATISTICS) 177 static void decodeHashSet(KeyedDecoder& decoder, const String& label, const String& key, HashSet<String>& hashSet) 178 { 179 Vector<String> ignore; 180 IGNORE_WARNINGS_BEGIN("unused-result") 181 decoder.decodeObjects(label, ignore, [&hashSet, &key](KeyedDecoder& decoderInner, String& origin) { 182 if (!decoderInner.decodeString(key, origin)) 183 return false; 184 185 hashSet.add(origin); 186 return true; 187 }); 188 IGNORE_WARNINGS_END 189 } 190 167 191 static void decodeFontHashSet(KeyedDecoder& decoder, const String& label, HashSet<String>& hashSet) 168 192 { … … 172 196 static void decodeCanvasActivityRecord(KeyedDecoder& decoder, const String& label, CanvasActivityRecord& canvasActivityRecord) 173 197 { 198 IGNORE_WARNINGS_BEGIN("unused-result") 174 199 decoder.decodeObject(label, canvasActivityRecord, [] (KeyedDecoder& decoderInner, CanvasActivityRecord& canvasActivityRecord) { 175 200 if (!decoderInner.decodeBool("wasDataRead", canvasActivityRecord.wasDataRead)) … … 184 209 return true; 185 210 }); 211 IGNORE_WARNINGS_END 186 212 } 187 213 #endif … … 314 340 decodeFontHashSet(decoder, "fontsFailedToLoad", fontsFailedToLoad); 315 341 decodeFontHashSet(decoder, "fontsSuccessfullyLoaded", fontsSuccessfullyLoaded); 316 decodeHash CountedSet(decoder, "topFrameRegistrableDomainsWhichAccessedWebAPIs", topFrameRegistrableDomainsWhichAccessedWebAPIs);342 decodeHashSet(decoder, "topFrameRegistrableDomainsWhichAccessedWebAPIs", "domain", topFrameRegistrableDomainsWhichAccessedWebAPIs); 317 343 decodeCanvasActivityRecord(decoder, "canvasActivityRecord", canvasActivityRecord); 318 344 decodeOptionSet(decoder, "navigatorFunctionsAccessedBitMask", navigatorFunctionsAccessed); … … 349 375 350 376 #if ENABLE(WEB_API_STATISTICS) 377 static void appendHashSet(StringBuilder& builder, const String& label, const HashSet<String>& hashSet) 378 { 379 if (hashSet.isEmpty()) 380 return; 381 382 builder.appendLiteral(" "); 383 builder.append(label); 384 builder.appendLiteral(":\n"); 385 386 for (auto& entry : hashSet) { 387 builder.appendLiteral(" "); 388 builder.append(entry); 389 builder.append('\n'); 390 } 391 } 392 351 393 static ASCIILiteral navigatorAPIEnumToString(ResourceLoadStatistics::NavigatorAPI navigatorEnum) 352 394 { … … 473 515 appendHashSet(builder, "fontsFailedToLoad", fontsFailedToLoad); 474 516 appendHashSet(builder, "fontsSuccessfullyLoaded", fontsSuccessfullyLoaded); 475 appendHash CountedSet(builder, "topFrameRegistrableDomainsWhichAccessedWebAPIs", topFrameRegistrableDomainsWhichAccessedWebAPIs);517 appendHashSet(builder, "topFrameRegistrableDomainsWhichAccessedWebAPIs", topFrameRegistrableDomainsWhichAccessedWebAPIs); 476 518 appendNavigatorAPIOptionSet(builder, navigatorFunctionsAccessed); 477 519 appendScreenAPIOptionSet(builder, screenFunctionsAccessed); -
trunk/Source/WebCore/loader/ResourceLoadStatistics.h
r262228 r263474 124 124 // This set represents the registrable domain of the top frame where web API 125 125 // were used in the top frame or one of its subframes. 126 Hash CountedSet<String> topFrameRegistrableDomainsWhichAccessedWebAPIs;126 HashSet<RegistrableDomain> topFrameRegistrableDomainsWhichAccessedWebAPIs; 127 127 HashSet<String> fontsFailedToLoad; 128 128 HashSet<String> fontsSuccessfullyLoaded; … … 134 134 135 135 } // namespace WebCore 136 137 namespace WTF { 138 139 template<> struct EnumTraits<WebCore::ResourceLoadStatistics::NavigatorAPI> { 140 using values = EnumValues< 141 WebCore::ResourceLoadStatistics::NavigatorAPI, 142 WebCore::ResourceLoadStatistics::NavigatorAPI::AppVersion, 143 WebCore::ResourceLoadStatistics::NavigatorAPI::UserAgent, 144 WebCore::ResourceLoadStatistics::NavigatorAPI::Plugins, 145 WebCore::ResourceLoadStatistics::NavigatorAPI::MimeTypes, 146 WebCore::ResourceLoadStatistics::NavigatorAPI::CookieEnabled, 147 WebCore::ResourceLoadStatistics::NavigatorAPI::JavaEnabled 148 >; 149 }; 150 151 template<> struct EnumTraits<WebCore::ResourceLoadStatistics::ScreenAPI> { 152 using values = EnumValues< 153 WebCore::ResourceLoadStatistics::ScreenAPI, 154 WebCore::ResourceLoadStatistics::ScreenAPI::Height, 155 WebCore::ResourceLoadStatistics::ScreenAPI::Width, 156 WebCore::ResourceLoadStatistics::ScreenAPI::ColorDepth, 157 WebCore::ResourceLoadStatistics::ScreenAPI::PixelDepth, 158 WebCore::ResourceLoadStatistics::ScreenAPI::AvailLeft, 159 WebCore::ResourceLoadStatistics::ScreenAPI::AvailTop, 160 WebCore::ResourceLoadStatistics::ScreenAPI::AvailHeight, 161 WebCore::ResourceLoadStatistics::ScreenAPI::AvailWidth 162 >; 163 }; 164 165 } // namespace WTF -
trunk/Source/WebKit/ChangeLog
r263472 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 + Enabled ENABLE_WEB_API_STATISTICS flag 9 + Removed .string() from mainFrameRegistrableDomain to append it to topFrameRegistrableDomainsWhichAccessedWebAPIs 10 because topFrameRegistrableDomainsWhichAccessedWebAPIs is a HashSet of WebCore::RegistrableDomain 11 12 * Configurations/FeatureDefines.xcconfig: 13 * WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp: 14 (WebKit::WebResourceLoadObserver::logFontLoad): 15 (WebKit::WebResourceLoadObserver::logCanvasRead): 16 (WebKit::WebResourceLoadObserver::logCanvasWriteOrMeasure): 17 (WebKit::WebResourceLoadObserver::logNavigatorAPIAccessed): 18 (WebKit::WebResourceLoadObserver::logScreenAPIAccessed): 19 1 20 2020-06-24 Andy Estes <aestes@apple.com> 2 21 -
trunk/Source/WebKit/Configurations/FeatureDefines.xcconfig
r262695 r263474 386 386 ENABLE_WEBXR = ; 387 387 388 ENABLE_WEB_API_STATISTICS = ;388 ENABLE_WEB_API_STATISTICS = ENABLE_WEB_API_STATISTICS; 389 389 390 390 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp
r263383 r263474 164 164 } 165 165 RegistrableDomain mainFrameRegistrableDomain { document.topDocument().url() }; 166 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain .string()).isNewEntry)166 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain).isNewEntry) 167 167 shouldCallNotificationCallback = true; 168 168 if (shouldCallNotificationCallback) … … 185 185 RegistrableDomain mainFrameRegistrableDomain { document.topDocument().url() }; 186 186 statistics.canvasActivityRecord.wasDataRead = true; 187 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain .string()).isNewEntry)187 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain).isNewEntry) 188 188 scheduleNotificationIfNeeded(); 189 189 #else … … 204 204 if (statistics.canvasActivityRecord.recordWrittenOrMeasuredText(textWritten)) 205 205 shouldCallNotificationCallback = true; 206 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain .string()).isNewEntry)206 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain).isNewEntry) 207 207 shouldCallNotificationCallback = true; 208 208 if (shouldCallNotificationCallback) … … 228 228 } 229 229 RegistrableDomain mainFrameRegistrableDomain { document.topDocument().url() }; 230 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain .string()).isNewEntry)230 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain).isNewEntry) 231 231 shouldCallNotificationCallback = true; 232 232 if (shouldCallNotificationCallback) … … 252 252 } 253 253 RegistrableDomain mainFrameRegistrableDomain { document.topDocument().url() }; 254 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain .string()).isNewEntry)254 if (statistics.topFrameRegistrableDomainsWhichAccessedWebAPIs.add(mainFrameRegistrableDomain).isNewEntry) 255 255 shouldCallNotificationCallback = true; 256 256 if (shouldCallNotificationCallback) -
trunk/Source/WebKitLegacy/mac/ChangeLog
r263364 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 + Enabled ENABLE_WEB_API_STATISTICS flag 9 10 * Configurations/FeatureDefines.xcconfig: 11 1 12 2020-06-22 Tim Horton <timothy_horton@apple.com> 2 13 -
trunk/Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig
r262695 r263474 386 386 ENABLE_WEBXR = ; 387 387 388 ENABLE_WEB_API_STATISTICS = ;388 ENABLE_WEB_API_STATISTICS = ENABLE_WEB_API_STATISTICS; 389 389 390 390 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO; -
trunk/Tools/ChangeLog
r263472 r263474 1 2020-06-24 Umar Iqbal <uiqbal@apple.com> 2 3 We should resurrect the older patch that collects some statistics of web API calls 4 https://bugs.webkit.org/show_bug.cgi?id=213319 5 6 Reviewed by Brent Fulgham. 7 8 + Enabled ENABLE_WEB_API_STATISTICS flag. 9 10 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: 11 1 12 2020-06-24 Andy Estes <aestes@apple.com> 2 13 -
trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig
r262695 r263474 386 386 ENABLE_WEBXR = ; 387 387 388 ENABLE_WEB_API_STATISTICS = ;388 ENABLE_WEB_API_STATISTICS = ENABLE_WEB_API_STATISTICS; 389 389 390 390 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO;
Note: See TracChangeset
for help on using the changeset viewer.