Bug 282976
Summary: | [WebDriver][BiDi] Support formatting strings in log.entryAdded events | ||
---|---|---|---|
Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bburg, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 271956 | ||
Bug Blocks: |
Lauro Moura
The Initial patch in bug271956 will support only space-separated arguments, implementing step 5 from the spec:
Spec: https://w3c.github.io/webdriver-bidi/#event-log-entryAdded
4. If Type(args[0]) is String, and args[0] contains a formatting specifier, let formatted args be Formatter(args). Otherwise let formatted args be args.
Note: The formatter operation is underdefined in the console specification, formatting can be inconsistent between different implementations.
5. For each arg in formatted args:
1. If arg is not the first entry in args, append a U+0020 SPACE to text.
1. If arg is a primitive ECMAScript value, append ToString(arg) to text. Otherwise append an implementation-defined string to text.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/140186490>