| Index: Source/core/inspector/AsyncCallTracker.cpp
|
| diff --git a/Source/core/inspector/AsyncCallTracker.cpp b/Source/core/inspector/AsyncCallTracker.cpp
|
| index 256fdcc3ed3006f6ac2b8fe846cec3516d4d5a32..bbaed4b924e4e45fc556141117fe2807b558028a 100644
|
| --- a/Source/core/inspector/AsyncCallTracker.cpp
|
| +++ b/Source/core/inspector/AsyncCallTracker.cpp
|
| @@ -310,6 +310,9 @@ void AsyncCallTracker::didEnqueueMutationRecord(ExecutionContext* context, Mutat
|
| ExecutionContextData* data = createContextDataIfNeeded(context);
|
| if (data->m_mutationObserverCallChains.contains(observer))
|
| return;
|
| + Optional<ScriptForbiddenScope::AllowUserAgentScript> allowScripting;
|
| + if (isMainThread())
|
| + allowScripting.emplace();
|
| int operationId = m_debuggerAgent->traceAsyncOperationStarting(enqueueMutationRecordName);
|
| data->m_mutationObserverCallChains.set(observer, operationId);
|
| }
|
|
|