[Webkit-unassigned] [Bug 282979] New: [WebDriver][BiDi] Support getting the stack trace for assert, error, trace and warn messages log.entryEvents
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 12 02:41:09 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=282979
Bug ID: 282979
Summary: [WebDriver][BiDi] Support getting the stack trace for
assert, error, trace and warn messages log.entryEvents
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebDriver
Assignee: webkit-unassigned at lists.webkit.org
Reporter: lmoura at igalia.com
CC: bburg at apple.com
https://w3c.github.io/webdriver-bidi/#event-log-entryAdded
> 11. If method is "assert", "error", "trace", or "warn", let stack be the current stack trace. Otherwise let stack be null.
https://w3c.github.io/webdriver-bidi/#current-stack-trace
The current stack trace is the result of construct a stack trace given a list of stack frames representing the callstack of the running execution context.
https://w3c.github.io/webdriver-bidi/#construct-a-stack-trace
To construct a stack trace, with a list of stack frames stack:
1. Let call frames be a new list.
2. For each stack frame frame in stack, starting from the most recently executed frame, run the following steps:
1. Let url be the result of running the URL serializer, given the URL of frame’s script url.
2. Let frame info be a new map matching the script.StackFrame production, with the url field set to url, the functionName field set to frame’s function, the lineNumber field set to frame’s line number and the columnNumber field set to frame’s column number.
3. Append frame info to call frames.
4. Let stack trace be a new map matching the script.StackTrace production, with the callFrames property set to call frames.
5. Return stack trace.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241112/df1d70d9/attachment.htm>
More information about the webkit-unassigned
mailing list