Description[Top Sites] Encoding redirects field in TopSitesDatabase, and adding validations
Previously the redirects field in TopSitesDatabase was encoded as a
space-seprated list of URLs. Problem arises when data URLs such as
"data:text/plain,this text has space" gets added. When decoded, non-URLs
like "text" and "has" trigger DCHECK in URL() downstream, thereby crashing
debug Chrome.
In this CL we encode the redirects field as comma separated values (strings).
For decoding, we keeping old space-delimited list as fallback.
We are also migrating Top Sites database from v3 to v4.
BUG=358034
Patch Set 1 #
Total comments: 16
Patch Set 2 : Setting database to v4, adding migration code. #
Messages
Total messages: 8 (2 generated)
|