diff --git a/toolkit/content/browser-content.js b/toolkit/content/browser-content.js index f478618c1b5b..ea830c8e8cdb 100644 --- a/toolkit/content/browser-content.js +++ b/toolkit/content/browser-content.js @@ -139,6 +139,12 @@ var ClickEventHandler = { if (!this._scrollable) return; + // In some configurations like Print Preview, content.performance + // (which we use below) is null. Autoscrolling is broken in Print + // Preview anyways (see bug 1393494), so just don't start it at all. + if (!content.performance) + return; + let domUtils = content.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIDOMWindowUtils); let scrollable = this._scrollable;