author | Botond Ballo <botond@mozilla.com> |
Fri, 01 Sep 2017 13:19:56 -0400 | |
changeset 378314 | f584ae5d61c4dbc2985338e0d7a5cb32946d69cd |
parent 378313 | 8702d05b5df705ab98ebae1e129d0eea7649ec1c |
child 378315 | 2093d5141fb21195b1f84894b2921bcace8c3cfd |
push id | 32428 |
push user | archaeopteryx@coole-files.de |
push date | Sat, 02 Sep 2017 08:52:28 +0000 |
treeherder | mozilla-central@b01a7e57425b [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | kats |
bugs | 1393424, 1393494 |
milestone | 57.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/toolkit/content/browser-content.js +++ b/toolkit/content/browser-content.js @@ -134,16 +134,22 @@ var ClickEventHandler = { startScroll(event) { this.findNearestScrollableElement(event.originalTarget); 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; if (scrollable instanceof Ci.nsIDOMWindow) { // getViewId() needs an element to operate on. scrollable = scrollable.document.documentElement; } this._scrollId = null;