| Summary: | Web Inspector: Sources tab empty, sidebar nonfunctional | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jeff Johnson <opendarwin> | ||||||||
| Component: | Web Inspector | Assignee: | BJ Burg <bburg> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | bburg, greggy, hi, inspector-bugzilla-changes, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | Safari 13 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | macOS 10.15 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Jeff Johnson
2020-07-21 12:32:44 PDT
Created attachment 404850 [details]
Screenshot
Can you try with the latest Safari Technical Preview? I couldn't reproduce this in 109. *Technology... stupid autocorrect Unfortunately STP 109 is not available for macOS 10.14 Can you try with the Safari 14 beta? Created attachment 404891 [details]
Minimal test case
This example reproduces the problem in Safari 13.1.2 on macOS 10.15.6
I can't install the beta, but I found a reproduction case that works in the latest Safari on Catalina. I debugged the web inspector and found that this._issueMessage had _text: "Failed to load resource: Could not connect to the server." From there, it was essentially a process of elimination. The reason I was seeing the problem with cnn.com is that I have Little Snitch installed (on Mojave) and configured to block a bunch of advertising/tracking domains. My reduced test case simply loads an iframe with a 404 src from example.org Nice. Repro achieved. Created attachment 404936 [details]
Proposed fix
I'm still running a build to test this out myself, but this is the anticipated fix for the issue.
Comment on attachment 404936 [details] Proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=404936&action=review r=me, looks reasonable > Source/WebInspectorUI/UserInterface/Views/IssueTreeElement.js:64 > + var lineNumberLabel; NIT: this can be `let` too :) > Source/WebInspectorUI/UserInterface/Views/IssueTreeElement.js:70 > + this.mainTitle = `${lineNumberLabel} ${this._issueMessage.text}`; NIT: I personally prefer not using a template string for simple combinations like this, as it's harder to notice the space vs when it's explicitly done as `" "` with an addition Committed r264717: <https://trac.webkit.org/changeset/264717> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404936 [details]. |