Tune our tolerance for long running beforeunload / unload scripts
Categories
(Core :: DOM: Content Processes, enhancement, P3)
Tracking
()
People
(Reporter: mconley, Unassigned)
References
Details
Updated•8 years ago
|
Comment 1•7 years ago
|
||
Comment 2•4 years ago
|
||
My understanding would be that the way we handle processes now with fission largely reduces any impact whatsoever on content processes from other domains and thus we do not really need this anymore?
Comment 3•4 years ago
|
||
beforeunload listener can basically block moving to the next page (that is the whole point of it), so we could do something here, in case it takes too much time. unload listener is less an issue these days.
Updated•3 years ago
|
Updated•11 months ago
|
Comment 4•10 months ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #0)
This might affect the performance of other tabs that are running in that same content process.
I assume that after fission (on desktop) that the probability for this has been reduced quite a lot.
We show the ProcessHangNotification after some number of seconds for long running JS, but the time to wait to show that thing might be too high.
I think after 10s currently.
Since at this point in a tabs lifetime, the user has made a clear choice ("I want this to go away now"), we might want to be more aggressive about killing the scripts if they're running too long.
(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #3)
beforeunload listener can basically block moving to the next page (that is the whole point of it), so we could do something here, in case it takes too much time.
I'd assume then that this is about dynamically tuning the dom.max_script_run_time setting for the beforeunload case.
Description
•