Support taking screenshots when a webdriver server is active.

This commit is contained in:
Josh Matthews 2016-10-18 19:51:32 -04:00
parent 0af9be9429
commit e19268c04e
3 changed files with 7 additions and 2 deletions

View file

@ -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.