| Summary: | New test added in 265747@main hits assertion failure: ScriptDisallowedScope::InMainThread::isScriptAllowed() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Rackler <rackler> |
| Component: | New Bugs | Assignee: | Ryosuke Niwa <rniwa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ahmad.saleem792, rniwa, webkit-bot-watchers-bugzilla, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=261339 | ||
|
Description
Karl Rackler
2023-09-07 17:24:08 PDT
Test gardening commit 267760@main (66f969fb7c23): <https://commits.webkit.org/267760@main> Reviewed commits have been landed. Closing PR #17562 and removing active labels. 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
}
@Rniwa - should I do PR with proposed changes? (In reply to Ahmad Saleem from comment #4) > @Rniwa - should I do PR with proposed changes? Yes, please. I can do it too but I have other test failures to investigate at the moment. (In reply to Ryosuke Niwa from comment #5) > (In reply to Ahmad Saleem from comment #4) > > @Rniwa - should I do PR with proposed changes? > > Yes, please. I can do it too but I have other test failures to investigate > at the moment. No worries, will do in next few hours. 👍 PR - https://github.com/WebKit/WebKit/pull/17639 Locally confirmed that it does indeed not crash while running: run-webkit-tests --debug --iterations=1 -1 editing/inserting/break-out-of-nested-lists.html and yes, I removed test expectation before running the above. :-) Pull request: https://github.com/WebKit/WebKit/pull/17691 *** Bug 261339 has been marked as a duplicate of this bug. *** Committed 267935@main (f33e99829e4f): <https://commits.webkit.org/267935@main> Reviewed commits have been landed. Closing PR #17691 and removing active labels. |