Skip to content

Commit

Permalink
Fix register-wait-forever-in-install wpt test (#3273)
Browse files Browse the repository at this point in the history
b/336565076
  • Loading branch information
sherryzy committed May 16, 2024
1 parent dc9bd39 commit a837202
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion cobalt/build/cobalt_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def GetWebPlatformTestFilters(self):
'websockets/WebPlatformTest.Run/websockets_keeping_connection_open_001_html',
'websockets/WebPlatformTest.Run/websockets_opening_handshake_003_html',
'websockets/WebPlatformTest.Run/websockets_opening_handshake_005_html',
'service_workers/WebPlatformTest.Run/service_workers_service_worker_register_wait_forever_in_install_worker_https_html',
]
return filters

Expand Down
4 changes: 1 addition & 3 deletions cobalt/worker/service_worker_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,7 @@ bool ServiceWorkerContext::WaitForAsynchronousExtensions(
if (registration->done_event()->TimedWait(
base::TimeDelta::FromMilliseconds(100)))
break;
#ifndef COBALT_PENDING_CLEAN_UP
base::MessageLoopCurrent::ScopedNestableTaskAllower allow;
#endif
base::CurrentThread::ScopedAllowApplicationTasksInNativeNestedLoop allow;
base::RunLoop().RunUntilIdle();
} while ((base::TimeTicks::Now() - wait_start_time) <
kWaitForAsynchronousExtensionsTimeout);
Expand Down

0 comments on commit a837202

Please sign in to comment.