[Webkit-unassigned] [Bug 47397] TextResourceDecoder::checkForHeadCharset can look way past the limit.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 8 16:05:34 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=47397





--- Comment #7 from Dmitry Titov <dimich at chromium.org>  2010-10-08 16:05:33 PST ---
(In reply to comment #5)
> If the sniffer thinks that it's in script, then the below test should fail, since we ignore tags in <script>. But it doesn't fail for me:
> 
> <script> < </script><meta charset=koi8-r><script>alert(document.charset)</script>

This particular test will succeed because the net effect is that the sniffer forever thinks it's in head section - so the detection of charset works fine, however if there is no charset, the detection never stop and detector accumulates the whole page (scanning through whole of it multiple times perhaps) before giving it to parser when the data load finished.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list