Add UseCounter to track use of octothorpes ('#') in data URIs

Chrome currently violates the URI spec by treating '#' characters in
data URIs as both part of the data body and also as the start of the URI
ref section. By the URI spec a '#' character immediately stops the data
body and indicates the start of the URI ref section.

Ahead of trying to align Chrome to the spec, we should attempt to
measure how often developers are trying to use data URIs with '#'
characters in them. This UseCounter attempts to do this, but is not
perfect measure. It will count spec-compliant usecases and will miss
cases that don't use FrameFetchContext to do their resource fetching.

Bug: 123004
Change-Id: I4babf89912d738c0c63affa56e39cd8a53933c38
Reviewed-on: https://chromium-review.googlesource.com/748806
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513468}
6 files changed