Bug 142199

Summary: Web Inspector: Console log level selector loses selection on reload
Product: WebKit Reporter: Phil Dokas <phil>
Component: Web InspectorAssignee: Brian Burg <burg>
Status: RESOLVED FIXED    
Severity: Normal CC: burg, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch timothy: review+

Description Phil Dokas 2015-03-02 16:48:59 PST
In the Console section of the Web Inspector, there are filters for these log levels: All, Errors, Warnings, and Logs. You can select individual filters, or via cmd-clicking you can select multiple options. However, reloading the page causes the inspector to lose this selection setting it back to All. This is an annoying quirk because as I develop pages and debug issues I'll often reload numerous times to test out my latest changes. If I’ve made a change to the selected log level there’s a reason: I don’t want to see those levels.

If this behavior I’m reporting is less a bug and more an intentional feature I’d like to recommend having ⌘R be a trigger for reload-and-preserve-log-level. My intention here is “let me try again” or “let me try my new code”. Filtering my log levels is a common step in debugging to show me only the most relevant information. This would still allow Safari to reset the log level when going to a new page (which seems like a good thing to do - just because I was debugging one page doesn't mean I don't want to be alerted to errors on a new page).
Comment 1 Radar WebKit Bug Importer 2015-03-02 16:49:16 PST
<rdar://problem/20015058>
Comment 2 Brian Burg 2015-03-03 08:14:54 PST
This is a bug. Patch to come shortly.
Comment 3 Brian Burg 2015-03-03 08:30:13 PST
Created attachment 247761 [details]
Patch
Comment 4 Brian Burg 2015-03-03 08:52:31 PST
Committed r180935: <http://trac.webkit.org/changeset/180935>