Open OrKoN opened 2 weeks ago
The Browser Testing and Tools Working Group just discussed Include stacktrace into log messages
.
As mentioned by @whimboo during the meeting, in Firefox we indeed only have stacktraces available for a few console message types. For log
and warn
, the only information available from platform at the moment is the filename/linenumber/columnnumber.
So I think this spec change does not depend on the behavior of the main Console spec because we are defining WebDriver BiDi-specific steps here. It should be possible to only compute stacktraces if there is a WebDriver BiDi connection and report them as WebDriver BiDi events without necessarily affecting the behavior in other instances of console use.
This would align behavior in Chrome and the spec and support the following use case:
As a user I want to filter out console messages from third party libraries. For this, I could use the URLs in the stack trace.
Related discussions:
Low-priority and we can discuss later.
Preview | Diff