We should be able to add 'RELEASE_ASSERT(ScriptDisallowedScope::InMainThread::isScriptAllowed())' to FrameLoader::stopAllLoaders, but there are currently tests where this assert fails. See the following list of failing tests for mac-WK2. Regressions: Unexpected crashes (12) css3/shapes/shape-outside/shape-image/shape-image-003.html [ Crash ] css3/shapes/shape-outside/shape-image/shape-image-008.html [ Crash ] css3/shapes/shape-outside/shape-image/shape-image-014.html [ Crash ] fast/shapes/shape-outside-floats/shape-outside-image-fit-002.html [ Crash ] fast/shapes/shape-outside-floats/shape-outside-image-set.html [ Crash ] http/tests/security/text-track-crossorigin.html [ Crash ] imported/blink/fast/text-autosizing/print-autosizing.html [ Crash ] imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-inline-items-003.html [ Crash ] imported/w3c/web-platform-tests/css/css-shapes/shape-outside/shape-image/shape-image-009.html [ Crash ] imported/w3c/web-platform-tests/css/css-shapes/shape-outside/shape-image/shape-image-015.html [ Crash ] imported/w3c/web-platform-tests/css/css-shapes/shape-outside/shape-image/shape-image-021.html [ Crash ] svg/custom/empty-mask.svg [ Crash ]