Add blacklist checks for javascript:// ulrs

Investigation in
https://bugs.chromium.org/p/chromium/issues/detail?id=913334 showed that
blacklists (URLBlacklist and URLWhitelist policies) are applied only to
“normal” urls, not ones with “javascript” scheme. This is because this
URLs (and some more, like “chrome://crash”) are so-called Renderer Debug
URLs, they don't need network fetch or something like that, and they are
just passed into renderer.

So to make blacklists work for such URLs we have to make additional
check.

Bug: 913334
Change-Id: I109cf27640d641fc35f449ef0bfd622d19a6c27b
Reviewed-on: https://chromium-review.googlesource.com/c/1436372
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Sergey Poromov <poromov@chromium.org>
Commit-Queue: Oleg Davydov <burunduk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629135}
7 files changed