diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-07-26 21:45:34 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-07-26 21:45:34 +0200 |
commit | 9fc1381e11a0a6adcd3be93b1d0524fd5336282b (patch) | |
tree | eea166c25d29bc8fce100435982051b4b8d6b960 /toolkit/components/thumbnails/BackgroundPageThumbs.jsm | |
parent | 1de0d64e0f08d3cc3d3970666126aff33eb06115 (diff) | |
download | UXP-9fc1381e11a0a6adcd3be93b1d0524fd5336282b.tar UXP-9fc1381e11a0a6adcd3be93b1d0524fd5336282b.tar.gz UXP-9fc1381e11a0a6adcd3be93b1d0524fd5336282b.tar.lz UXP-9fc1381e11a0a6adcd3be93b1d0524fd5336282b.tar.xz UXP-9fc1381e11a0a6adcd3be93b1d0524fd5336282b.zip |
Fix #include and potentially undefined Capture.options object.
Diffstat (limited to 'toolkit/components/thumbnails/BackgroundPageThumbs.jsm')
-rw-r--r-- | toolkit/components/thumbnails/BackgroundPageThumbs.jsm | 2 |
1 files changed, 1 insertions, 1 deletions
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); |