Invoke ResourceLoadObserver when using WorkerMainScriptLoader to load
main script for workers Currently, we are using WorkerMainScriptLoader to load the main script for PlzWorkers when kLoadMainScriptForPlzDedicatedWorkerByParams is enabled. So the whole loading process will not go through a normal flow of network request, which means that ResourceLoadObserverForWorker doesn't get invoked and the network inspector isn't notified. This patch will pass ResourceLoadObserver to the WorkerMainScriptLoader when starting to load the main script, thus we could call the ResourceLoadObserver at the proper timing and send the notifications to the inspector finally. Bug: 860403 Change-Id: I51e2bbdf3f9185cf2640d21183bf641e0cf8b6af Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2309093Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:
Makoto Shimazu <shimazu@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Minggang Wang <minggang.wang@intel.com> Cr-Commit-Position: refs/heads/master@{#793202}
Showing
This diff is collapsed.
Please register or sign in to comment