Clean up cross-origin check in StyleSheetContents.

The code was using a combination of the request URL and response URL.
It can just use ResourceResponse::IsCorsSameOrigin().

This is covered by the existing WPT test:
service-workers/service-worker/fetch-request-css-cross-origin.https.html

Bug: 911974
Change-Id: I3a136fe8a0f99507610ccc8ae49eab7828a96f4f
Reviewed-on: https://chromium-review.googlesource.com/c/1366461
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614853}
1 file changed