Currently, document.write() intervention is implemented by creating a new ScriptLoader for sending asynchronous request to blocked scripts.
However,
- This makes ScriptLoaders NOT correspond one by one to script elements,
- The asynchronous request should not cause script execution but
ScriptLoader is the core class for script execution.
This issue decouples document.write() intervention from ScriptLoader, and
makes ScriptLoader and ScriptElementBase correspond one by one.
Main CL: https://chromium-review.googlesource.com/c/chromium/src/+/722162
Comment 1 by hirosh...@chromium.org
, Oct 23 2017