Currently DocumentWriteEvaluatorTest would fail when V8ScriptRunner::CompileScript() adds a execution context. EnsureEvaluationContext() needs adding a script state to itself to prevent that.
https://chromium-review.googlesource.com/c/580401/
Here's the situation that make DocumentWriteEvaluatorTest fails. Running the webkit_unit_tests causes the failures that I will send you in Email.
By looking at the failure, it looks like it's because DocumentWriteEvaluator doesn't generate a script state, so when it tries to execute ScriptState::From(v8::context), it causes a failure.
csharrison@, please assign me back if you happened to abandon your CL. Otherwise, please remove DocumentWriteEvaluator and close this issue either of Fixed or WontFix as you like.
Comment 1 by maxlg@chromium.org
, Jul 20 2017