* SUMMARY Special Logs to Console that do not have an expression should be styled differently, looks like code. * STEPS TO REPRODUCe 1. Inspect <http://webkit.org> 2. Show DOM Tree 3. Right click <body> and "Log Element" => The "Selected Element" text in the console should be visually distinct, it looks identical to it having been code but it is not
<rdar://problem/20575321>
Created attachment 256492 [details] Patch
Comment on attachment 256492 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256492&action=review > Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.css:32 > +.console-user-command.special-user-log { I am not sure that this is the best styling here, but it's a start and doesn't look to bad at that.
Comment on attachment 256492 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256492&action=review >> Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.css:32 >> +.console-user-command.special-user-log { > > I am not sure that this is the best styling here, but it's a start and doesn't look to bad at that. A token (rounded box with colored background) is something we talked about doing here. Like email addresses in Mail.
Created attachment 256495 [details] Patch
Created attachment 256496 [details] After Patch is applied
Comment on attachment 256495 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256495&action=review > Source/WebInspectorUI/UserInterface/Controllers/JavaScriptLogViewController.js:126 > - var commandMessageView = new WebInspector.ConsoleCommandView(text); > + var commandMessageView = new WebInspector.ConsoleCommandView(text, "special-user-log"); Two called of appendImmediateExecutionWithResult actually pass a JS property path as the text, so those cases should not get "special-user-log". You likely need to add a parameter to appendImmediateExecutionWithResult to toggle this class as needed. The callers do this: var text = isImpossible ? WebInspector.UIString("Selected Value") : propertyPath.displayPath(this.propertyPathType());
Created attachment 256507 [details] Patch
Comment on attachment 256507 [details] Patch Clearing flags on attachment: 256507 Committed r186634: <http://trac.webkit.org/changeset/186634>
All reviewed patches have been landed. Closing bug.