Changeset 271283 in webkit
- Timestamp:
- Jan 7, 2021, 7:59:24 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
NetworkProcess/cocoa/NetworkSessionCocoa.mm (modified) (1 diff)
-
Shared/Cocoa/DefaultWebBrowserChecks.h (modified) (1 diff)
-
Shared/Cocoa/DefaultWebBrowserChecks.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r271282 r271283 1 2021-01-07 Kate Cheney <katherine_cheney@apple.com> 2 3 Error in layout tests: "Passed ITP enabled state (0) does not match TCC setting (1)" 4 https://bugs.webkit.org/show_bug.cgi?id=220385 5 <rdar://problem/70730482> 6 7 Reviewed by Darin Adler. 8 9 No new tests, this has no behavior change. It will fix excessive 10 logging when running tests. 11 12 We do not need to log a discrepancy between these states 13 for WebKitTestRunner or TestWebKitAPI because they are sometimes treated 14 like web browsers but need to turn ITP on/off for specific tests, so 15 these states will not always match. 16 17 * NetworkProcess/cocoa/NetworkSessionCocoa.mm: 18 (WebKit::activateSessionCleanup): 19 * Shared/Cocoa/DefaultWebBrowserChecks.h: 20 * Shared/Cocoa/DefaultWebBrowserChecks.mm: 21 (WebKit::isRunningTest): 22 (WebKit::isParentProcessAFullWebBrowser): 23 (WebKit::isFullWebBrowser): 24 (WebKit::shouldBeTreatedAsFullBrowser): Deleted. 25 1 26 2021-01-07 Alex Christensen <achristensen@webkit.org> 2 27 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r271040 r271283 1198 1198 bool passedEnabledState = session.isResourceLoadStatisticsEnabled(); 1199 1199 1200 if (itpEnabled != passedEnabledState) 1200 // We do not need to log a discrepancy between states for WebKitTestRunner or TestWebKitAPI. 1201 if (itpEnabled != passedEnabledState && !isRunningTest(WebCore::applicationBundleIdentifier())) 1201 1202 WTFLogAlways("Passed ITP enabled state (%d) does not match TCC setting (%d)\n", passedEnabledState, itpEnabled); 1202 1203 session.setResourceLoadStatisticsEnabled(passedEnabledState); -
trunk/Source/WebKit/Shared/Cocoa/DefaultWebBrowserChecks.h
r265202 r271283 38 38 bool hasProhibitedUsageStrings(); 39 39 Optional<Vector<WebCore::RegistrableDomain>> getAppBoundDomainsTesting(const String&); 40 bool shouldBeTreatedAsFullBrowser(const String& bundleID);40 bool isRunningTest(const String& bundleID); 41 41 void determineITPState(); 42 42 bool doesAppHaveITPEnabled(); -
trunk/Source/WebKit/Shared/Cocoa/DefaultWebBrowserChecks.mm
r271267 r271283 47 47 static bool isFullWebBrowser(const String&); 48 48 49 bool shouldBeTreatedAsFullBrowser(const String& bundleID)49 bool isRunningTest(const String& bundleID) 50 50 { 51 51 return bundleID == "com.apple.WebKit.TestWebKitAPI"_s || bundleID == "com.apple.WebKit.WebKitTestRunner"_s || bundleID == "org.webkit.WebKitTestRunnerApp"_s; … … 224 224 }); 225 225 226 return fullWebBrowser || shouldBeTreatedAsFullBrowser(WebCore::applicationBundleIdentifier());226 return fullWebBrowser || isRunningTest(WebCore::applicationBundleIdentifier()); 227 227 } 228 228 … … 233 233 static bool fullWebBrowser = WTF::processHasEntitlement("com.apple.developer.web-browser"); 234 234 235 return fullWebBrowser || shouldBeTreatedAsFullBrowser(bundleIdentifier);235 return fullWebBrowser || isRunningTest(bundleIdentifier); 236 236 } 237 237
Note:
See TracChangeset
for help on using the changeset viewer.