mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
14e3a5c944
commit
557f40f1a8
@ -286,6 +286,9 @@ let AboutReaderListener = {
|
||||
},
|
||||
|
||||
get isAboutReader() {
|
||||
if (!content) {
|
||||
return false;
|
||||
}
|
||||
return content.document.documentURI.startsWith("about:reader");
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user