Sign in
webkit
/
WebKit
/
c71295638f595a4ed7f2a4a5cfd89dd2298b8a83
/
.
/
LayoutTests
/
inspector
/
worker
/
resources
/
worker-utilities.js
blob: ae17aa3c9249e55cb3ec7b6b115ae5b0ecbf9a6f [
file
] [
log
] [
blame
]
TestPage
.
registerInitializer
(()
=>
{
window
.
awaitTargetMainResource
=
function
(
workerTarget
)
{
if
(
workerTarget
.
mainResource
)
return
Promise
.
resolve
();
return
workerTarget
.
awaitEvent
(
WI
.
Target
.
Event
.
MainResourceAdded
);
}
});