Bug 182186

Summary: Scripts should always be allowed when calling FrameLoader::stopAllLoaders.
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Per Arne Vollan 2018-01-26 14:24:31 PST
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 ]