Bug 275606 - Web Inspector: Preserve log loses message after window.open and navigation
Summary: Web Inspector: Preserve log loses message after window.open and navigation
Status: CLOSED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 17
Hardware: Mac (Apple Silicon) All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 06:54 PDT by Jeff Johnson
Modified: 2024-06-19 05:40 PDT (History)
1 user (show)

See Also:


Attachments
Sample HTML demonstrating the bug (455 bytes, text/html)
2024-06-18 06:54 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 2024-06-18 06:54:46 PDT
Created attachment 471698 [details]
Sample HTML demonstrating the bug

Safari 17.5 and Safari Technology Preview 196 on macOS Sonoma 14.5. (I haven't tested on any other configurations.)

Steps to reproduce:
1. Open the attached sample HTML in Safari
2. Open the web inspector to the Console tab
3. Enable Preserve Log
4. Click the window.open() button
5. Wait 5 seconds until the new tab navigates to https://webkit.org/
6. Select the new tab
7. Open the web inspector to the Console tab

Expected results: Log message "Hello world!"

Actual results: No log message

However, you can see the log message if you skip step 5 and quickly do steps 6 and 7 before the timeout.