mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Support taking screenshots when a webdriver server is active.
This commit is contained in:
parent
0af9be9429
commit
e19268c04e
3 changed files with 7 additions and 2 deletions
|
@ -1124,7 +1124,9 @@ impl Window {
|
|||
// When all these conditions are met, notify the constellation
|
||||
// that this pipeline is ready to write the image (from the script thread
|
||||
// perspective at least).
|
||||
if (opts::get().output_file.is_some() || opts::get().exit_after_load) && for_display {
|
||||
if (opts::get().output_file.is_some() ||
|
||||
opts::get().exit_after_load ||
|
||||
opts::get().webdriver_port.is_some()) && for_display {
|
||||
let document = self.Document();
|
||||
|
||||
// Checks if the html element has reftest-wait attribute present.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue