Add tests for data URLs with reference fragments.

If a data URL has a reference fragment, the '#' separator and the fragment
identifier should not be part of the data URL's data.

It can be very ambiguous, for instance in this URL:
data:text/html,<html><head><style type='text/css'>body
{color:#000000}</style></head><body>first</body></html>

The data is: "<html><head><style type='text/css'>body {color:"
The reference fragment is "#000000}</style></head><body>first</body></html>"

Bug: 793647, 123004
Change-Id: I95183b607daedde4e0bbc8697c543fdd293e71d4
Reviewed-on: https://chromium-review.googlesource.com/822392
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Brett Wilson <brettw@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#527590}
3 files changed