| Summary: | WKWebView console.logs don't appear in Web Inspector on iOS 16.4 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Milo Wyner <milowyner> | ||||
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Major | CC: | inspector-bugzilla-changes, pangle | ||||
| Priority: | P2 | ||||||
| Version: | Safari 16 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | iOS 16 | ||||||
| Attachments: |
|
||||||
Older versions of Safari on macOS are not necessarily compatible with newer versions of iOS (we do try to keep it working, but it’s not a supported setup - we do actively support inspecting older versions of iOS from newer versions of Safari, though). it seems that may indeed be the case with console messages here. Can you please try inspecting the iOS device using either Safari 16.4 on macOS 13.3, or using the latest Safari Technology Preview? Ah, for some reason my macOS Software Update was showing no updates available, so I thought I was already on the latest version. I just checked again and was able to update to macOS 13.3.1 which has Safari 16.4 as you mentioned, and now console.logs show as expected. Thanks! |
Created attachment 465803 [details] Screenshot of Web Inspector console showing nothing logged after entering console.log("hello") After updating to iOS 16.4 and figuring out how to re-enable the Web Inspector by setting my WKWebView's isInspectable to true, I noticed console.log messages don't appear in the console anymore. They do if I inspect a regular website on macOS Safari, but they don't show when inspecting a WKWebView app, whereas this worked find in iOS 16.3 and the previous macOS/Safari version. I made sure that "All" was selected, no filters were enabled, and the search bar was empty. Errors and warnings still appear, and entering code in the console still logs the output, but typing console.log("anything") or even console.info("anything") into the console just only logs the "undefined" result. I'm on macOS 13.2.1, Safari 16.3, and iOS 16.4.