Diff
Modified: trunk/Source/WTF/ChangeLog (287140 => 287141)
--- trunk/Source/WTF/ChangeLog 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Source/WTF/ChangeLog 2021-12-16 17:17:01 UTC (rev 287141)
@@ -1,3 +1,17 @@
+2021-12-16 Alex Christensen <[email protected]>
+
+ Unreviewed, reverting r287056.
+ <rdar://86519800>
+
+ Caused performance regression...again
+
+ Reverted changeset:
+
+ "Remove properties set by NSURLProtocol on NSURLRequest before
+ serializing"
+ https://bugs.webkit.org/show_bug.cgi?id=232332
+ https://commits.webkit.org/r287056
+
2021-12-15 Darin Adler <[email protected]>
Many call sites use makeNeverDestroyed, but could instead take advantage of the NeverDestroyed deduction guide
Modified: trunk/Source/WTF/wtf/PlatformHave.h (287140 => 287141)
--- trunk/Source/WTF/wtf/PlatformHave.h 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Source/WTF/wtf/PlatformHave.h 2021-12-16 17:17:01 UTC (rev 287141)
@@ -934,7 +934,6 @@
|| (PLATFORM(APPLETV) && __TV_OS_VERSION_MAX_ALLOWED >= 150400) \
|| (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MAX_ALLOWED >= 80400)
#define HAVE_RSA_PSS_OID 1
-#define HAVE_NSURLREQUEST_REMOVE_ALL_PROTOCOL_PROPERTIES 1
#endif
#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101600) \
Modified: trunk/Source/WebCore/PAL/ChangeLog (287140 => 287141)
--- trunk/Source/WebCore/PAL/ChangeLog 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Source/WebCore/PAL/ChangeLog 2021-12-16 17:17:01 UTC (rev 287141)
@@ -1,3 +1,17 @@
+2021-12-16 Alex Christensen <[email protected]>
+
+ Unreviewed, reverting r287056.
+ <rdar://86519800>
+
+ Caused performance regression...again
+
+ Reverted changeset:
+
+ "Remove properties set by NSURLProtocol on NSURLRequest before
+ serializing"
+ https://bugs.webkit.org/show_bug.cgi?id=232332
+ https://commits.webkit.org/r287056
+
2021-12-14 Alex Christensen <[email protected]>
Remove properties set by NSURLProtocol on NSURLRequest before serializing
Modified: trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h (287140 => 287141)
--- trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h 2021-12-16 17:17:01 UTC (rev 287141)
@@ -174,9 +174,6 @@
@end
@interface NSMutableURLRequest ()
-#if HAVE(NSURLREQUEST_REMOVE_ALL_PROTOCOL_PROPERTIES)
-- (void)_removeAllProtocolProperties;
-#endif
- (void)setContentDispositionEncodingFallbackArray:(NSArray *)theEncodingFallbackArray;
- (void)setBoundInterfaceIdentifier:(NSString *)identifier;
- (void)_setPreventHSTSStorage:(BOOL)preventHSTSStorage;
@@ -194,9 +191,6 @@
#endif
@interface NSURLRequest ()
-#if HAVE(NSURLREQUEST_REMOVE_ALL_PROTOCOL_PROPERTIES)
-@property (nonatomic, readonly, nullable, retain) NSDictionary<NSString *, id> *_allProtocolProperties;
-#endif
+ (NSArray *)allowsSpecificHTTPSCertificateForHost:(NSString *)host;
+ (void)setAllowsSpecificHTTPSCertificate:(NSArray *)allow forHost:(NSString *)host;
+ (void)setDefaultTimeoutInterval:(NSTimeInterval)seconds;
Modified: trunk/Source/WebKit/ChangeLog (287140 => 287141)
--- trunk/Source/WebKit/ChangeLog 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Source/WebKit/ChangeLog 2021-12-16 17:17:01 UTC (rev 287141)
@@ -1,3 +1,17 @@
+2021-12-16 Alex Christensen <[email protected]>
+
+ Unreviewed, reverting r287056.
+ <rdar://86519800>
+
+ Caused performance regression...again
+
+ Reverted changeset:
+
+ "Remove properties set by NSURLProtocol on NSURLRequest before
+ serializing"
+ https://bugs.webkit.org/show_bug.cgi?id=232332
+ https://commits.webkit.org/r287056
+
2021-12-15 Darin Adler <[email protected]>
Many call sites use makeNeverDestroyed, but could instead take advantage of the NeverDestroyed deduction guide
Modified: trunk/Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm (287140 => 287141)
--- trunk/Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm 2021-12-16 17:17:01 UTC (rev 287141)
@@ -37,7 +37,6 @@
#import <WebCore/FontCustomPlatformData.h>
#import <WebCore/ResourceRequest.h>
#import <WebCore/TextRecognitionResult.h>
-#import <pal/spi/cf/CFNetworkSPI.h>
#import <pal/spi/cf/CoreTextSPI.h>
#if PLATFORM(IOS_FAMILY)
@@ -626,20 +625,10 @@
// We don't send HTTP body over IPC for better performance.
// Also, it's not always possible to do, as streams can only be created in process that does networking.
- bool hasHTTPBody = [requestToSerialize HTTPBody] || [requestToSerialize HTTPBodyStream];
-#if HAVE(NSURLREQUEST_REMOVE_ALL_PROTOCOL_PROPERTIES)
- bool hasProtocolProperties = [requestToSerialize _allProtocolProperties];
-#else
- bool hasProtocolProperties = false;
-#endif
-
- if (hasHTTPBody || hasProtocolProperties) {
+ if ([requestToSerialize HTTPBody] || [requestToSerialize HTTPBodyStream]) {
auto mutableRequest = adoptNS([requestToSerialize mutableCopy]);
[mutableRequest setHTTPBody:nil];
[mutableRequest setHTTPBodyStream:nil];
-#if HAVE(NSURLREQUEST_REMOVE_ALL_PROTOCOL_PROPERTIES)
- [mutableRequest _removeAllProtocolProperties];
-#endif
requestToSerialize = WTFMove(mutableRequest);
}
Modified: trunk/Tools/ChangeLog (287140 => 287141)
--- trunk/Tools/ChangeLog 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Tools/ChangeLog 2021-12-16 17:17:01 UTC (rev 287141)
@@ -1,3 +1,17 @@
+2021-12-16 Alex Christensen <[email protected]>
+
+ Unreviewed, reverting r287056.
+ <rdar://86519800>
+
+ Caused performance regression...again
+
+ Reverted changeset:
+
+ "Remove properties set by NSURLProtocol on NSURLRequest before
+ serializing"
+ https://bugs.webkit.org/show_bug.cgi?id=232332
+ https://commits.webkit.org/r287056
+
2021-12-15 Darin Adler <[email protected]>
Many call sites use makeNeverDestroyed, but could instead take advantage of the NeverDestroyed deduction guide
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm (287140 => 287141)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm 2021-12-16 17:09:18 UTC (rev 287140)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm 2021-12-16 17:17:01 UTC (rev 287141)
@@ -137,27 +137,5 @@
[webView _test_waitForDidFinishNavigation];
}
-TEST(WebKit, LoadNSURLRequestWithProtocolProperties)
-{
- auto request = adoptNS([[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"test:///"]]);
-
- [NSURLProtocol setProperty:@"world" forKey:@"hello" inRequest:request.get()];
- auto handler = adoptNS([TestURLSchemeHandler new]);
- __block bool done = false;
- handler.get().startURLSchemeTaskHandler = ^(WKWebView *, id<WKURLSchemeTask> task) {
-#if HAVE(NSURLREQUEST_REMOVE_ALL_PROTOCOL_PROPERTIES)
- EXPECT_FALSE([NSURLProtocol propertyForKey:@"hello" inRequest:task.request]);
-#else
- EXPECT_TRUE([NSURLProtocol propertyForKey:@"hello" inRequest:task.request]);
-#endif
- done = true;
- };
- auto configuration = adoptNS([WKWebViewConfiguration new]);
- [configuration setURLSchemeHandler:handler.get() forURLScheme:@"test"];
- auto webView = adoptNS([[WKWebView alloc] initWithFrame:NSZeroRect configuration:configuration.get()]);
- [webView loadRequest:request.get()];
- Util::run(&done);
-}
-
} // namespace TestWebKitAPI