Closed Bug 1257906 Opened 8 years ago Closed 6 years ago

Abort network loads on shutdown to prevent hangs in sync XHR from unload

Categories

(Core :: DOM: Core & HTML, defect, P3)

Unspecified
Windows NT
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: BenWa, Unassigned)

Details

(Keywords: crash, Whiteboard: btpp-backlog)

Crash Data

This bug was filed from the Socorro interface and is 
report bp-ccc41702-dea7-4db7-8685-3a3462160311.
=============================================================

Looking at this report we're the website is doing a sync XHR from the unload event on shutdown. Hitting the network can take an arbitrary amount of time. This causes us to hit the shutdownhang code before the user has a tab that force an XHR request on shutdown.

We should consider giving website a budget for how much time they can spend in their unload before we move on. Ideally this would be a subset of the shutdownhang trigger time so that we can survive having at least a few bad apples before we take down the browser.
khuey mentions that:
1) Web workers have some kind script timeout on shutdown.
2) We could abort network loads on shutdown.
Should we morph this into the budget or timeout ideas?
Flags: needinfo?(khuey)
Whiteboard: btpp-backlog
Sure, why not.
Flags: needinfo?(khuey)
Summary: crash in shutdownhang | ntdll.dll@0xa5154 | Hang in Sync XHR from unload on shutdown. → Abort network loads on shutdown to prevent hangs in sync XHR from unload
Priority: -- → P3
Closing because no crash reported since 12 weeks.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.