1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

update fix for #3507: look even farther for charset

This commit is contained in:
Raymond Hill 2018-02-13 06:14:25 -05:00
parent f484461d2e
commit aadcfcdaf3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -745,7 +745,7 @@ var filterDocument = (function() {
utf8TextDecoder = new TextDecoder();
}
doc = domParser.parseFromString(
utf8TextDecoder.decode(filterer.buffer.slice(0, 2048)),
utf8TextDecoder.decode(filterer.buffer.slice(0, 4096)),
'text/html'
);
filterer.charset = µb.textEncode.normalizeCharset(charsetFromDoc(doc));