Skip the Service Worker CORS fallback for same origin requests. [2/2 chromium]

We are sending CORS fallback response from the browser process to the page's renderer process, when the ServiceWorker doesn't handle the CORS fetch request.
But when the request URL's origin is same as the page's security origin, we can skip the fallback and send the request from the browser process.

This change will improve the delay of the CORS fallback for same origin requests, especially when the renderer main thread is busy.

1/2 blink: https://codereview.chromium.org/1243353002/
2/2 chromium: this cl.

BUG=512764

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

Cr-Commit-Position: refs/heads/master@{#341482}
1 file changed