Truncate long URL fragments in Android page info popup

This replaces percent-encoding whitespace as a method to combat the use
of crafted URL fragments to inject messages into the page info popup. By
truncating the URL so that at most two lines of the fragment are shown,
we prevent lengthy messages from being injected while minimising the
effect on most URLs.

BUG=466351

Review URL: https://codereview.chromium.org/1077483002

Cr-Commit-Position: refs/heads/master@{#325358}
2 files changed