- addScriptToEvaluateOnNewDocument is used a lot to pre-setup page environment
for future automation (e.g. to inject helpers).
- addScriptToEvaluateOnNewDocument is also used to create isolated worlds as
the page navigates to different origins. Isolated worlds are used later on with `Runtime.evaluate` protocol method
- Page's javascript is oftentimes disabled to make pages more predictable
With this in mind, it is very desirable to make addScriptToEvaluateOnNewDocument to work
even with disabled javascript.
Comment 1 by bugdroid1@chromium.org
, Jan 20 (2 days ago)