Web Inspector: adopt Object.awaitEvent in LayoutTests/inspector/page