Web Inspector: dispatch console-message-added and console-messages-cleared events on UISourceCode. Those events are related to specific UISourceCode. See bug 82224 for more details.
Created attachment 134284 [details] Patch
Comment on attachment 134284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=134284&action=review > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:280 > + uiLocation.uiSourceCode.consoleMessageAdded(presentationMessage); I know this is not related to this patch, but switching to pretty-print mode and back adds more and more messages to uiSourceCode because they are never removed from it (unless console is cleared / navigation happens).
Committed r112402: <http://trac.webkit.org/changeset/112402>