WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
268881
Web Inspector: Infos and Debugs buttons don't appear in Console tab until new console messages are displayed
https://bugs.webkit.org/show_bug.cgi?id=268881
Summary
Web Inspector: Infos and Debugs buttons don't appear in Console tab until new...
Jeff Johnson
Reported
2024-02-06 17:56:27 PST
Created
attachment 469754
[details]
Screenshot of Console tab with missing Infos and Debugs Steps to reproduce: 1) Open
https://www.apple.com
2) Open web inspector console Expected results: The Infos and Debugs categories should appear after All, Evaluations, Errors, Warnings, Logs. Actual results: The Infos and Debugs categories don't appear. See screenshot Console1.png. If you scroll down the page a little so that new console messages are logged, then Infos and Debugs appear. See screenshot Console2.png.
Attachments
Screenshot of Console tab with missing Infos and Debugs
(1.23 MB, image/png)
2024-02-06 17:56 PST
,
Jeff Johnson
no flags
Details
Screenshot of Console tab with Infos and Debugs
(1.47 MB, image/png)
2024-02-06 17:56 PST
,
Jeff Johnson
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Jeff Johnson
Comment 1
2024-02-06 17:56:49 PST
Created
attachment 469755
[details]
Screenshot of Console tab with Infos and Debugs
Radar WebKit Bug Importer
Comment 2
2024-02-13 17:57:19 PST
<
rdar://problem/122923625
>
Qianlang Chen
Comment 3
2024-02-15 17:20:46 PST
Pull request:
https://github.com/WebKit/WebKit/pull/24565
EWS
Comment 4
2024-03-11 11:31:51 PDT
Committed
275914@main
(eaa47ea7c85e): <
https://commits.webkit.org/275914@main
> Reviewed commits have been landed. Closing PR #24565 and removing active labels.
Jeff Johnson
Comment 5
2024-03-28 11:22:54 PDT
I'm testing with Safari Technology Preview 191, released today, and I don't see how this bug is fixed?
Qianlang Chen
Comment 6
2024-03-28 13:01:45 PDT
Thank you so much for verifying, Jeff! The behavior seems to not have changed in the new release because we have kept the Infos and Debugs category buttons to only appear with their corresponding console.info and console.debug messages. While analyzing this bug, we considered making the buttons always appear, but we eventually opted against it to favor a more minimal UI. The Infos and Debugs categories aren't as frequently used as the default message types. But also, our inspector's UI currently suffers from bugs involving small screen sizes where the category bar can't display all of its contents. Keeping the Infos and Debugs categories only conditionally visible helps mitigate these display issues until we implement further improvements. However, your original report did identify a critical bug with the two category buttons: they didn't appear with corresponding message types, but they showed up with messages that came from other channels/sources. What we ended up fixing was that inconsistency, so if you try running this code in the console console.info("my info"), console.debug("my debug"); You should see the Infos and Debugs buttons appear. (See the
https://github.com/WebKit/WebKit/pull/24565
if you're interested in our full discussion on deciding this fix.) Thanks again for reporting the bug and verifying, Jeff!
Jeff Johnson
Comment 7
2024-03-29 06:01:03 PDT
> The Infos and Debugs categories aren't as frequently used as the default message types.
This could be in part because those categories don't appear in the tab. I'm a Safari extension developer and would like to use console.debug to distinguish my extension's messages from page's own messages. Frequently the console can get deluged with tons of messages from the page. What I'd like to do is make Debugs the default selection in the web inspector. Fortunately, the Debugs selection is retained when you close and reopen the console. However, if you switch to another catgory (say, Errors) to check it, then the Debugs category disappears if there are no debug messages, or if the console is cleared. This makes it very difficult to keep Debugs as the default. Could you make it so that once the Debugs and/or Infos categories have appeared in the console, the categories won't disappear while the console is still open?
Qianlang Chen
Comment 8
2024-03-29 11:19:48 PDT
Hi Jeff, thank you for the follow-up and suggestion! I see where you're coming from and I can totally understand how our fix can be an inconvenience. I have created a new report at
https://webkit.org/b/271894
for our potential new fix or adjustment. We will keep this bug on our radar. Thanks again!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug