Bug 257298 - Web Inspector: Network Preserve Log loses 302 redirect to same URL
Summary: Web Inspector: Network Preserve Log loses 302 redirect to same URL
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 16
Hardware: Mac (Apple Silicon) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-24 18:11 PDT by Jeff Johnson
Modified: 2023-09-01 08:58 PDT (History)
2 users (show)

See Also:


Attachments
Twitter redirect (2.42 MB, image/png)
2023-05-24 18:11 PDT, Jeff Johnson
no flags Details
Non-Twitter redirect screenshot (1.82 MB, image/png)
2023-05-24 18:11 PDT, Jeff Johnson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnson 2023-05-24 18:11:01 PDT
Created attachment 466489 [details]
Twitter redirect

Steps to reproduce:
1) Open a new Safari private window
2) Open the web inspector to the Network tab
3) Enable Preserve Log
4) Open https://twitter.com/webkit/status/1658940299950039047

Expected Results: The Network log shows the 302 redirect.

Actual Results: The Network log doesn't show the 302 redirect.

Notes: Twitter now requires cookies to be enabled in order to view a tweet. You can see this with curl:

% curl -i 'https://twitter.com/webkit/status/1658940299950039047'
HTTP/2 302 
date: Thu, 25 May 2023 00:59:34 GMT
perf: 7626143928
vary: Accept
server: tsa_b
location: /webkit/status/1658940299950039047
set-cookie: guest_id_marketing=

It tries to set cookies and redirects to the same URL. But the web inspector does not reflect this. It only shows the request with cookies, but doesn't show the initial request without cookies or the 302 redirect. See the attached screenshots, one with a same-URL redirect and one with a regular redirect.
Comment 1 Jeff Johnson 2023-05-24 18:11:33 PDT
Created attachment 466490 [details]
Non-Twitter redirect screenshot
Comment 2 Radar WebKit Bug Importer 2023-09-01 08:58:42 PDT
<rdar://problem/114823280>