Bug 1186346 - Add a null-check for content to avoid a JS error in tab-content.js when pages disappear quickly, r=gijs

This commit is contained in:
Giovanny Andres Gongora Granada 2015-08-09 20:20:00 +01:00
parent 14e3a5c944
commit 557f40f1a8

View File

@ -286,6 +286,9 @@ let AboutReaderListener = {
},
get isAboutReader() {
if (!content) {
return false;
}
return content.document.documentURI.startsWith("about:reader");
},