Bug 142199 - Web Inspector: Console log level selector loses selection on reload
Summary: Web Inspector: Console log level selector loses selection on reload
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Brian Burg
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-03-02 16:48 PST by Phil Dokas
Modified: 2015-03-03 08:52 PST (History)
8 users (show)

See Also:


Attachments
Patch (4.06 KB, patch)
2015-03-03 08:30 PST, Brian Burg
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>