Changeset 276164 in webkit
- Timestamp:
- Apr 16, 2021, 1:41:08 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/Scripts/Preferences/WebPreferences.yaml (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/cocoa/VersionChecks.h (modified) (2 diffs)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Shared/WebPreferencesDefaultValues.cpp (modified) (1 diff)
-
Source/WebKit/Shared/WebPreferencesDefaultValues.h (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebKit/WKPreferences.cpp (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm (modified) (2 diffs)
-
Tools/WebKitTestRunner/TestOptions.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r276154 r276164 1 2021-04-16 Alex Christensen <achristensen@webkit.org> 2 3 Disable ApplicationCache with linkedOnOrAfter check 4 https://bugs.webkit.org/show_bug.cgi?id=224629 5 6 Reviewed by Brady Eidson. 7 8 * Scripts/Preferences/WebPreferences.yaml: 9 1 10 2021-04-16 Alex Christensen <achristensen@webkit.org> 2 11 -
trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml
r275912 r276164 1599 1599 default: false 1600 1600 WebKit: 1601 default: true1601 default: WebKit::defaultOfflineWebApplicationCacheEnabled() 1602 1602 WebCore: 1603 1603 default: false -
trunk/Source/WebCore/ChangeLog
r276159 r276164 1 2021-04-16 Alex Christensen <achristensen@webkit.org> 2 3 Disable ApplicationCache with linkedOnOrAfter check 4 https://bugs.webkit.org/show_bug.cgi?id=224629 5 6 Reviewed by Brady Eidson. 7 8 ApplicationCache has been deprecated for two years in WebKit with a message to developers since r227225. 9 10 Firefox removed support in https://bugzilla.mozilla.org/show_bug.cgi?id=1619673 which shipped with Firefox 84 on Dec 15, 2020. 11 12 Chrome removed support in https://bugs.chromium.org/p/chromium/issues/detail?id=582750 by default in Chrome 85 on August 25, 2020 13 but they have a reverse origin trial program running right now so that some origins have it working, but they are planning to remove 14 even that support October 2021. 15 16 We have kept it working for a reason related to rdar://38505756, specifically the 4th and 5th comment in that bug. 17 That reason is now passed. 18 19 This patch removes support for new apps but keeps it working for 3rd party apps linked with existing SDKs. Once those apps update 20 to a new SDK, they will be unable to use ApplicationCache. They will need to migrate to use fetch service workers instead. 21 22 * platform/cocoa/VersionChecks.h: 23 1 24 2021-04-16 Commit Queue <commit-queue@webkit.org> 2 25 -
trunk/Source/WebCore/platform/cocoa/VersionChecks.h
r275485 r276164 73 73 FirstWithSharedNetworkProcess = DYLD_IOS_VERSION_14_5, 74 74 FirstWithBlankViewOnJSPrompt = DYLD_IOS_VERSION_14_5, 75 FirstWithApplicationCacheDisabledByDefault = DYLD_IOS_VERSION_15_0, 75 76 #elif PLATFORM(MAC) 76 77 FirstWithNetworkCache = DYLD_MACOSX_VERSION_10_11, … … 95 96 FirstWithDOMWindowReuseRestriction = DYLD_MACOSX_VERSION_11_3, 96 97 FirstWithBlankViewOnJSPrompt = DYLD_MACOSX_VERSION_11_3, 98 FirstWithApplicationCacheDisabledByDefault = DYLD_MACOSX_VERSION_12_00, 97 99 #endif 98 100 }; -
trunk/Source/WebKit/ChangeLog
r276160 r276164 1 2021-04-16 Alex Christensen <achristensen@webkit.org> 2 3 Disable ApplicationCache with linkedOnOrAfter check 4 https://bugs.webkit.org/show_bug.cgi?id=224629 5 6 Reviewed by Brady Eidson. 7 8 * Shared/WebPreferencesDefaultValues.cpp: 9 (WebKit::defaultOfflineWebApplicationCacheEnabled): 10 * Shared/WebPreferencesDefaultValues.h: 11 1 12 2021-04-16 Ada Chan <ada.chan@apple.com> 2 13 -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
r275418 r276164 130 130 } 131 131 132 bool defaultOfflineWebApplicationCacheEnabled() 133 { 134 #if PLATFORM(COCOA) 135 static bool newSDK = linkedOnOrAfter(WebCore::SDKVersion::FirstWithApplicationCacheDisabledByDefault); 136 return !newSDK; 137 #else 138 // FIXME: Other platforms should consider turning this off. 139 // ApplicationCache is on its way to being removed from WebKit. 140 return true; 141 #endif 142 } 143 132 144 #if ENABLE(GPU_PROCESS) 133 145 -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h
r275077 r276164 67 67 bool defaultAsyncFrameScrollingEnabled(); 68 68 bool defaultAsyncOverflowScrollingEnabled(); 69 bool defaultOfflineWebApplicationCacheEnabled(); 69 70 70 71 #if ENABLE(GPU_PROCESS) -
trunk/Tools/ChangeLog
r276152 r276164 1 2021-04-16 Alex Christensen <achristensen@webkit.org> 2 3 Disable ApplicationCache with linkedOnOrAfter check 4 https://bugs.webkit.org/show_bug.cgi?id=224629 5 6 Reviewed by Brady Eidson. 7 8 * TestWebKitAPI/Tests/WebKit/WKPreferences.cpp: 9 (TestWebKitAPI::TEST): 10 * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: 11 (TEST): 12 * WebKitTestRunner/TestOptions.cpp: 13 (WTR::TestOptions::defaults): 14 1 15 2021-04-16 Tyler Wilcock <twilco.o@protonmail.com> 2 16 -
trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPreferences.cpp
r264580 r276164 75 75 EXPECT_TRUE(WKPreferencesGetJavaScriptEnabled(preference)); 76 76 EXPECT_TRUE(WKPreferencesGetLoadsImagesAutomatically(preference)); 77 EXPECT_ TRUE(WKPreferencesGetOfflineWebApplicationCacheEnabled(preference));77 EXPECT_FALSE(WKPreferencesGetOfflineWebApplicationCacheEnabled(preference)); 78 78 EXPECT_TRUE(WKPreferencesGetLocalStorageEnabled(preference)); 79 79 EXPECT_TRUE(WKPreferencesGetXSSAuditorEnabled(preference)); -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm
r275267 r276164 34 34 #import <JavaScriptCore/JSCConfig.h> 35 35 #import <WebKit/WKHTTPCookieStorePrivate.h> 36 #import <WebKit/WKPreferencesPrivate.h> 36 37 #import <WebKit/WKPreferencesRef.h> 37 38 #import <WebKit/WKProcessPoolPrivate.h> … … 659 660 660 661 auto webView = adoptNS([[TestWKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:webViewConfiguration.get()]); 662 [webView.get().configuration.preferences _setOfflineApplicationCacheIsEnabled:YES]; 661 663 [webView synchronouslyLoadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://127.0.0.1:%d/index.html", server.port()]]]]; 662 664 -
trunk/Tools/WebKitTestRunner/TestOptions.cpp
r275810 r276164 99 99 { "NeedsSiteSpecificQuirks", false }, 100 100 { "NeedsStorageAccessFromFileURLsQuirk", false }, 101 { "OfflineWebApplicationCacheEnabled", true }, 101 102 { "OffscreenCanvasEnabled", true }, 102 103 { "PageVisibilityBasedProcessSuppressionEnabled", false },
Note:
See TracChangeset
for help on using the changeset viewer.