es it. */ /* globals exportFunction */ console.info( "documentElement.clientHeight has been overridden for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1999198 for details." ); const proto = Element.prototype.wrappedJSObject; const clientHeightDesc = Object.getOwnPropertyDescriptor(proto, "clientHeight"); const origHeight = clientHeightDesc.get; clientHeightDesc.get = exportFunction(function () { if (this === document.documentElement) { return this.scrollHeight; } return origHeight.call(this); }, window); Object.defineProperty(proto, "clientHeight", clientHeightDesc); PK