Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1188)

Issue 562993002: [Top Sites] Validating URLs for "redirects" (Closed)

Created:
6 years, 3 months ago by huangs
Modified:
6 years, 3 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, browser-components-watch_chromium.org, Scott Hess - ex-Googler
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M chrome/browser/history/top_sites_database.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
huangs
PTAL at the simpler fix. The more complex fix is https://codereview.chromium.org/560543002/ but it may change ...
6 years, 3 months ago (2014-09-11 17:53:30 UTC) #2
huangs
Ping shess@ for review.
6 years, 3 months ago (2014-09-15 17:04:22 UTC) #3
huangs
Changing reviewer to thestig@, since shess@ is on leave. PTAL.
6 years, 3 months ago (2014-09-23 16:09:13 UTC) #5
Lei Zhang
lgtm
6 years, 3 months ago (2014-09-23 17:20:23 UTC) #6
huangs
Thanks! Submitting.
6 years, 3 months ago (2014-09-23 17:23:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/562993002/1
6 years, 3 months ago (2014-09-23 17:59:11 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as 5ed53b526b0eb829514266b6544c6e6a188708ac
6 years, 3 months ago (2014-09-23 20:56:28 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 20:57:22 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1d8faa9c736dfabfe2b4120c6ca5eef48663199d
Cr-Commit-Position: refs/heads/master@{#296232}

Powered by Google App Engine
This is Rietveld 408576698