Sanitize https:// URLs before sending them to PAC scripts.

This additionally strips the path and query components for https:// URL (embedded identity and reference fragment were already being stripped).

For debugging purposes this behavior can be disabled with the command line flag --unsafe-pac-url.

BUG=593759
R=mmenke@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#395266}
6 files changed