Description[Top Sites] Validating URLs for "redirects"
Redirects field in TopSitesDatabase is encoded as a space-seprated list
of URLs. But data URLS like "data:text/plain,this text has space" adds
extra space, so that when decoded, non-URLs like "text" and "has" would
trigger DCHECK in URL() downstream, and crash debug Chrome.
This CL validates redirects URLs when they are read. It is not foolproof
(e.g., "data:text/plan,hidden http://extra.url"), but now we can ponder
how to best fix the root cause, without keeping the crashing bug around.
BUG=358034
Committed: https://crrev.com/1d8faa9c736dfabfe2b4120c6ca5eef48663199d
Cr-Commit-Position: refs/heads/master@{#296232}
Patch Set 1 #
Messages
Total messages: 11 (3 generated)
|