closes #585: check parse-on-load is enabled first

This commit is contained in:
Cameron Kaiser 2020-01-25 14:47:55 -08:00
parent 581cb94a73
commit 0d448f2baa
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ var Readerable = {
if (!(uri.schemeIs("http") || uri.schemeIs("https"))) {
return false;
}
if (!(this.isEnabledForParseOnLoad())) {
// TenFourFox issue 585
// Do this check here as well.
return false;
}
if (!isBaseUri) {
// Sadly, some high-profile pages have false positives, so bail early for those:
let asciiHost = uri.asciiHost;