IDB WPTs: Extend event-dispatch-active-flag IDB WPT to workers
This IndexedDB WPT currently only runs in a window environment. This
change extends it to also run in dedicated, shared, and service worker
environments. As part of this update, repetitive code has been pulled
out into helper methods.
Bug: 41455766
Change-Id: I018cb4649449bf4d7bbdaa9b6b13ee861d53cc0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5951326
Reviewed-by: Abhishek Shanthkumar abhishek.shanthkumar@microsoft.com
Commit-Queue: Rahul Singh rahsin@microsoft.com
Cr-Commit-Position: refs/heads/main@{#1385763}