author | Jared Wein <jwein@mozilla.com> |
Mon, 14 Dec 2015 10:21:00 +0100 | |
changeset 276731 | 5ce3cd50888850c0cd599fe0c818ee39a1290da8 |
parent 276730 | 01cff68d5e39022df92399bd8eb00b7165027e17 |
child 276732 | 22aa3e580b1d2ba89cca4bd4ef32de2378ec978a |
push id | 69273 |
push user | cbook@mozilla.com |
push date | Thu, 17 Dec 2015 11:03:52 +0000 |
treeherder | mozilla-inbound@565d7ae436ba [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | gijs |
bugs | 1230087 |
milestone | 46.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/browser/base/content/tab-content.js +++ b/browser/base/content/tab-content.js @@ -329,17 +329,17 @@ var AboutReaderListener = { /** * NB: this function will update the state of the reader button asynchronously * after the next mozAfterPaint call (assuming reader mode is enabled and * this is a suitable document). Calling it on things which won't be * painted is not going to work. */ updateReaderButton: function(forceNonArticle) { if (!ReaderMode.isEnabledForParseOnLoad || this.isAboutReader || - !(content.document instanceof content.HTMLDocument) || + !content || !(content.document instanceof content.HTMLDocument) || content.document.mozSyntheticDocument) { return; } this.scheduleReadabilityCheckPostPaint(forceNonArticle); }, cancelPotentialPendingReadabilityCheck: function() {