whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.07k stars 2.65k forks source link

Do not execute scripts in navigated-away-from documents #1989

Open domenic opened 7 years ago

domenic commented 7 years ago

Spinning off from https://github.com/whatwg/html/issues/1956#issuecomment-256521393, we should investigate to what extent browsers execute scripts in navigated-away-from documents. (The difference between "active" and "fully active" is also worth testing here.)

Right now the spec only stops script execution if the document does not have a browsing context. But this should probably be extended, based at least on some preliminary tests.

Also we should consider different types of scripts, like event handler attributes.

bzbarsky commented 7 years ago

Happy to describe what Gecko does wheneveer that would be useful.