Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 728f75c28d6ffdc2ce0dffc46d331321535d2938
      
https://github.com/WebKit/WebKit/commit/728f75c28d6ffdc2ce0dffc46d331321535d2938
  Author: Devin Rousso <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    A LayoutTests/inspector/debugger/breakpoint-action-log-object-expected.txt
    A LayoutTests/inspector/debugger/breakpoint-action-log-object.html
    M Source/WebInspectorUI/UserInterface/Models/Breakpoint.js

  Log Message:
  -----------
  Web Inspector: Log Message breakpoint actions should log objects as rich 
console arguments
https://bugs.webkit.org/show_bug.cgi?id=263110

Reviewed by Timothy Hatcher.

A Log Message breakpoint action containing a `${expression}` placeholder was 
compiled into a single `console.log` template literal.

Coercing every placeholder to a string meant that logging an object showed 
`[object Object]` instead of the rich value.

Compile each placeholder into its own `console.log` argument so objects are 
logged as rich values.

* Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:
(WI.Breakpoint.prototype.optionsToProtocol):

* LayoutTests/inspector/debugger/breakpoint-action-log-object.html: Added.
* LayoutTests/inspector/debugger/breakpoint-action-log-object-expected.txt: 
Added.

Canonical link: https://commits.webkit.org/322733@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to