Bug 145468 - Web Inspector: Console.messagesCleared should include a reason (frame navigated, console-api, etc)
Summary: Web Inspector: Console.messagesCleared should include a reason (frame navigat...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-29 13:34 PDT by Joseph Pecoraro
Modified: 2016-12-13 15:36 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-05-29 13:34:36 PDT
* SUMMARY
Console.messagesCleared should include a reason (frame navigated, console-api, etc)

The frontend handles console clears differently for reloads then navigations, command line clear(), and console.clear() calls. The frontend would like to avoid clearing the console log buffer on page reloads but that is currently not easy to determine. Having a "reason" associated with the event would let the frontend be smarter about how it handles this message.

* NOTES
- Current reasons: frameNavigated, console-api (console.clear), CommandLineAPI (js> clear)
- Alternatively, it may be enough to just have the backend not even send messagesCleared for frame navigations, and let the frontend just do it on its own.
- We still need to worry about Legacy backends that won't have the reason
Comment 1 Joseph Pecoraro 2015-05-29 13:34:44 PDT
<rdar://problem/13767079>