From 9fc1381e11a0a6adcd3be93b1d0524fd5336282b Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 26 Jul 2018 21:45:34 +0200 Subject: Fix #include and potentially undefined Capture.options object. --- toolkit/components/thumbnails/BackgroundPageThumbs.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit/components/thumbnails/BackgroundPageThumbs.jsm') diff --git a/toolkit/components/thumbnails/BackgroundPageThumbs.jsm b/toolkit/components/thumbnails/BackgroundPageThumbs.jsm index b2aa646f7..e743c4dd9 100644 --- a/toolkit/components/thumbnails/BackgroundPageThumbs.jsm +++ b/toolkit/components/thumbnails/BackgroundPageThumbs.jsm @@ -368,7 +368,7 @@ Capture.prototype = { tel("CAPTURE_QUEUE_TIME_MS", this.startDate - this.creationDate); // timeout timer - let timeout = typeof(this.options.timeout) == "number" ? + let timeout = this.options && typeof(this.options.timeout) == "number" ? this.options.timeout : DEFAULT_CAPTURE_TIMEOUT; this._timeoutTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); -- cgit v1.2.3