Skip to content

Commit

Permalink
context capture screenshot: add optional focus top-level context step
Browse files Browse the repository at this point in the history
CDP's Page.captureScreenshot command[1] is blocked until the active context
gets focus.

[1]: https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-captureScreenshot

Follow-up-of: #183
  • Loading branch information
Thiago Perrotta committed Jun 2, 2023
1 parent 5d3ee40 commit 455d03c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2175,6 +2175,9 @@ The [=remote end steps=] with <var ignore>session</var> and |command parameters|
Issue: This ought to be integrated into the update rendering algorithm
in some more explicit way.

1. An implementation may invoke the [=/focusing steps=] on the
[=top-level browsing context=] of |context|.

1. Let |root rect| be |document|’s [=document element=]'s [=rectangle=].

1. Let |canvas| be the result of [=trying=] to [=draw a bounding box from the
Expand Down

0 comments on commit 455d03c

Please sign in to comment.