aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/window.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 5ee70b8b068..691d4c7606f 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -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.