Change Observer: Fix Shared Workers not receiving events
Shared workers weren't receiving events because our check if the render
frame host is active assumes that the current frame has an associate
render frame host. This changes it to assume that if it doesn't have an
associated render frame host, that it is active.
This makes sense since Shared Workers can't enter into the BFCache and
therefore can't be active or inactive.
Enables the shared worker tests in the WPTs to verify.
Fixed: 355659889
Change-Id: I2aa7f1715d6ae561b6e755bb1e5cef27274d97dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5739998
Commit-Queue: Nathan Memmott memmott@chromium.org
Reviewed-by: Daseul Lee dslee@chromium.org
Cr-Commit-Position: refs/heads/main@{#1335066}