pause-document icon indicating copy to clipboard operation
pause-document copied to clipboard

How does frame pausing interact with page lifetime events?

Open bzbarsky opened this issue 8 years ago • 1 comments

What happens if a paused frame is removed from the document? Does beforeunload fire? Does unload fire? Do they fire in this situation currently?

bzbarsky avatar Sep 16 '17 07:09 bzbarsky

I'm inclined to say that if the frame isn't unpaused before unloading then it shouldn't get to run beforeunload. If it's important that a frame be unloaded, then the embedding page can unpause it in its beforeunload.

jkarlin avatar Oct 03 '17 14:10 jkarlin