Remove ExecutionContext dependency in WillSendRequest() for replay XHR

In off-the-main-thread worker script fetch, worker scripts are
fetched on the worker thread, but WorkerGlobalScope shouldn't be
referenced there as it is not yet fully initialized and
it is not the fetch client's settings object.

To reduce dependency to WorkerGlobalScope=ExecutionContext
during fetch, this CL removes ExecutionContext usage from
InspectorNetworkAgent::WillSendRequestInternal()
and instead supplies ExecutionContext for replayXHR from
WillLoadXHR(), and stores ExecutionContext
in XHRReplayData instead of NetworkResourceData.

The ExecutionContext Member was moved from XHRReplayData
to NetworkResourceData by
https://chromium-review.googlesource.com/c/chromium/src/+/833344/
but after
https://chromium-review.googlesource.com/c/chromium/src/+/950304/
we no longer need ExecutionContext in NetworkResourceData.

This CL also makes the reference to ExecutionContext weak.

This CL also removes unused parameters of WillLoadXHR().

Bug: 880027
Change-Id: I173a8a0e3d66ec26572e2ae738c29d62f8d76d39
Reviewed-on: https://chromium-review.googlesource.com/c/1383908
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633913}
6 files changed