Changeset 286971 in webkit
- Timestamp:
- Dec 13, 2021, 12:29:59 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/spi/darwin/dyldSPI.h (modified) (2 diffs)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/cocoa/VersionChecks.h (modified) (2 diffs)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r286958 r286971 1 2021-12-13 Chris Dumez <cdumez@apple.com> 2 3 Regression(r283565) Unable to report private messages as Spam in Twitter app 4 https://bugs.webkit.org/show_bug.cgi?id=234253 5 <rdar://86043227> 6 7 Reviewed by Alex Christensen. 8 9 Add some new iOS / macOS versions. 10 11 * wtf/spi/darwin/dyldSPI.h: 12 1 13 2021-12-13 Elliott Williams <emw@apple.com> 2 14 -
trunk/Source/WTF/wtf/spi/darwin/dyldSPI.h
r282988 r286971 134 134 #define DYLD_IOS_VERSION_14_5 0x000E0500 135 135 #define DYLD_IOS_VERSION_15_0 0x000f0000 136 #define DYLD_IOS_VERSION_15_4 0x000f0400 136 137 #define DYLD_IOS_VERSION_16_0 0x00100000 137 138 … … 146 147 #define DYLD_MACOSX_VERSION_11_3 0x000B0300 147 148 #define DYLD_MACOSX_VERSION_12_00 0x000c0000 149 #define DYLD_MACOSX_VERSION_12_3 0x000c0300 148 150 #define DYLD_MACOSX_VERSION_13_0 0x000d0000 149 151 -
trunk/Source/WebCore/ChangeLog
r286970 r286971 1 2021-12-13 Chris Dumez <cdumez@apple.com> 2 3 Regression(r283565) Unable to report private messages as Spam in Twitter app 4 https://bugs.webkit.org/show_bug.cgi?id=234253 5 <rdar://86043227> 6 7 Reviewed by Alex Christensen. 8 9 Add macro for new linkedOnOrAfter check for sending the Authorization header 10 on same origin redirects. 11 12 * platform/cocoa/VersionChecks.h: 13 1 14 2021-12-13 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Source/WebCore/platform/cocoa/VersionChecks.h
r282988 r286971 73 73 FirstWithApplicationCacheDisabledByDefault = DYLD_IOS_VERSION_15_0, 74 74 FirstWithoutExpandoIndexedPropertiesOnWindow = DYLD_IOS_VERSION_15_0, 75 FirstWithAuthorizationHeaderOnSameOriginRedirects = DYLD_IOS_VERSION_15_4, 75 76 FirstForbiddingDotPrefixedFonts = DYLD_IOS_VERSION_16_0, 76 77 #elif PLATFORM(MAC) … … 100 101 FirstWithApplicationCacheDisabledByDefault = DYLD_MACOSX_VERSION_12_00, 101 102 FirstWithoutExpandoIndexedPropertiesOnWindow = DYLD_MACOSX_VERSION_12_00, 103 FirstWithAuthorizationHeaderOnSameOriginRedirects = DYLD_MACOSX_VERSION_12_3, 102 104 FirstForbiddingDotPrefixedFonts = DYLD_MACOSX_VERSION_13_0, 103 105 #endif -
trunk/Source/WebKit/ChangeLog
r286961 r286971 1 2021-12-13 Chris Dumez <cdumez@apple.com> 2 3 Regression(r283565) Unable to report private messages as Spam in Twitter app 4 https://bugs.webkit.org/show_bug.cgi?id=234253 5 <rdar://86043227> 6 7 Reviewed by Alex Christensen. 8 9 In r283565, we aligned WebKit's behavior with the Fetch specification and with 10 Gecko / Blink by keeping the Authorization header on same origin redirects. 11 12 However, when reporting a private message in the twitter app, it does a 13 same-origin redirect from `https://twitter.com/account/authenticate_web_view?...` 14 to `https://twitter.com/account/authenticate_web_view?...` and the HTTP server 15 reponds with a 401/Unauthorized when we send the Authorization on the post-redirect 16 request. As far as I can tell, our behavior is correct here and I suspect this is an 17 issue with the twitter server. As a result, I am simply gating the new behavior 18 behind a linked-on-or-after check to give twitter a chance to address the issue on 19 their end. 20 21 * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: 22 (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): 23 1 24 2021-12-13 Youenn Fablet <youenn@apple.com> 2 25 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm
r285565 r286971 42 42 #import <WebCore/ResourceRequest.h> 43 43 #import <WebCore/TimingAllowOrigin.h> 44 #import <WebCore/VersionChecks.h> 44 45 #import <pal/spi/cf/CFNetworkSPI.h> 45 46 #import <wtf/BlockPtr.h> … … 496 497 497 498 } else { 498 if (auto authorization = m_firstRequest.httpHeaderField(WebCore::HTTPHeaderName::Authorization); !authorization.isNull() )499 if (auto authorization = m_firstRequest.httpHeaderField(WebCore::HTTPHeaderName::Authorization); !authorization.isNull() && linkedOnOrAfter(WebCore::SDKVersion::FirstWithAuthorizationHeaderOnSameOriginRedirects)) 499 500 request.setHTTPHeaderField(WebCore::HTTPHeaderName::Authorization, authorization); 500 501
Note:
See TracChangeset
for help on using the changeset viewer.