[Webkit-unassigned] [Bug 261305] [ New Test ] (265747 at main): [ macOS debug wk1 ] ASSERTION FAILED: ScriptDisallowedScope::InMainThread::isScriptAllowed()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Sep 10 11:15:31 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=261305
--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org> ---
This is an issue with the assertion. We just need to disable it in WebKit1 like this in ScriptDisallowedScope.h:
static bool isScriptAllowed()
{
ASSERT(isMainThread());
if ()
#if PLATFORM(IOS_FAMILY)
return isInWebProcess() || !s_count || webThreadDelegateMessageScopeCount;
#else
return isInWebProcess() || !s_count;
#endif
}
We can then isEventDispatchAllowedInSubtree like this:
static bool isEventDispatchAllowedInSubtree(Node& node)
{
#if ASSERT_ENABLED || ENABLE(SECURITY_ASSERTIONS)
return isScriptAllowed() || EventAllowedScope::isAllowedNode(node);
#else
UNUSED_PARAM(node);
return true;
#endif
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230910/7c72e4f7/attachment.htm>
More information about the webkit-unassigned
mailing list