Open Bug 1901082 Opened 2 years ago Updated 2 years ago

FetchChild should monitor Window's shutdown for main thread Fetch requests.

Categories

(Core :: Networking, task, P3)

task
Points:
3

Tracking

()

People

(Reporter: smayya, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [necko-triaged])

This bug focuses on supporting Main thread Fetch requests through PFetch.

We need to make FetchChild monitor the Window's shutdown. On Window shutdown, for non-keepalive requests we need to first cancel the fetch request first followed by actor termination.

Severity: -- → N/A
Points: --- → 3
Rank: 8
Priority: -- → P3
Whiteboard: [necko-triaged]

Just because there's a lot of legacy code that potentially does this a bad way (observer service, manually maintained lists), GlobalTeardownObserver is probably the best choice of learning about the window global shutting down (and also works on workers!).

Blocks: 1918015
You need to log in before you can comment on or make changes to this bug.