Bug 263108

Summary: Web Inspector: Display "Navigated To:" in the Web Inspector Console when accessing a website
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, rcaliman, webkit-bug-importer
Priority: P2 Keywords: GoodFirstBug, InRadar
Version: Safari 17   
Hardware: All   
OS: All   
Attachments:
Description Flags
developer tools in safari, firefox, chrome none

Karl Dubost
Reported 2023-10-12 21:42:19 PDT
Created attachment 468197 [details] developer tools in safari, firefox, chrome When Preserve logs is activated for the Console in Web Inspector. Having a Navigated To: with the URL of the Website, helps having a better understanding of what is happening for which site. See the screenshot. Steps to Reproduce. 1. Open STP 2. Open Web Inspector 3. Open the Console 4. Go to https://apple.com/ Result: STP: The Console displays a "Page navigated at [time]" Firefox/Chrome: Navigated to https://apple.com/
Attachments
developer tools in safari, firefox, chrome (520.40 KB, image/png)
2023-10-12 21:42 PDT, Karl Dubost
no flags
Radar WebKit Bug Importer
Comment 1 2023-10-12 21:42:27 PDT
Karl Dubost
Comment 3 2025-05-29 18:55:03 PDT
https://searchfox.org/wubkat/rev/717f9adc97dd16bf639d27addbe0faf420f7dfce/Source/WebInspectorUI/UserInterface/Views/ConsoleSession.js#48-50 ```js case WI.ConsoleSession.NewSessionReason.PageNavigated: headerText = WI.UIString("Page navigated at %s"); break; ``` URL of the current main frame is accessible via: WI.networkManager.mainFrame.url There is an event that’s fired called when the main frame navigates: WI.NetworkManager.Event.MainFrameDidChange. The handler for this event changes the URL in the title bar of Web Inspector in WI.updateWindowTitle : https://github.com/WebKit/WebKit/blob/main/Source/WebInspectorUI/UserInterface/Base/Main.js#L818
Alexsander Borges Damaceno
Comment 4 2025-05-29 23:18:26 PDT
EWS
Comment 5 2025-06-03 12:17:16 PDT
Committed 295764@main (62dfa4f50d48): <https://commits.webkit.org/295764@main> Reviewed commits have been landed. Closing PR #46106 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.