Closed Bug 1731574 Opened 3 years ago Closed 2 years ago

Emit cached log entries when subscribing for `log.entryAdded` events

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task
Points:
8

Tracking

(firefox97 fixed)

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: whimboo, Assigned: jdescottes)

References

Details

(Whiteboard: [bidi-m2-mvp], [wptsync upstream])

Attachments

(4 files, 2 obsolete files)

When subscribing to log.entryAdded events we have to emit cached log entries that haven't yet been sent out to the client. While some log entries might be cached by the platform itself, for some others we might have to add cache support on our own. But that needs to be investigated.

In DevTools we have 2 entry points to retrieve cached messages:

  • retrieveConsoleEvents for console messages
  • Services.console.getMessageArray() for the rest (css messages, error message, platform messages, although I'd need to check if all of those really get cached)
Points: --- → 8
Priority: -- → P2
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Attachment #9245344 - Attachment is obsolete: true

Depends on D132845

Using a page error built into the URL makes testing difficult with log event buffer enabled

Attachment #9252319 - Attachment is obsolete: true
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e21ddddb74f7
[remote] Emit cached messages from ConsoleAPIListener r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/c3b4ac5546af
[remote] Emit cached messages from ConsoleListener r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/bd35daf060fa
[wdspec] Update wdspec tests to create javascript errors without navigation r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/bb212c328f71
[wdspec] Add wdspec tests for log entryAdded event buffer r=webdriver-reviewers,whimboo,jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/31952 for changes under testing/web-platform/tests
Whiteboard: [bidi-m2-mvp] → [bidi-m2-mvp], [wptsync upstream]
Regressions: 1744966
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: