This commit is contained in:
Alistair Smith
2025-06-16 17:33:30 -07:00
parent b7ba06152c
commit b2fa37add0

View File

@@ -216,7 +216,7 @@ bool ScriptExecutionContext::ensureOnMainThread(Function<void(ScriptExecutionCon
return false;
}
if (context && context->isContextThread()) {
if (WTF::isMainThread()) {
task(*context);
return true;
}