News for hackers. Stuff that matters.
Re:No to Chrome by brianzelip on Friday December 06, 2019 @09:47AM (#21722168)
Oh, by "js contexts" do they mean "all the javascripts related to the page?" If so, then I guess this file tree-like explorer of js is the Firefox equivalent?

https://imgur.com/a/YvA9Hdw

Re:No to Chrome by playpause on Friday December 06, 2019 @10:15AM (#21722461)
No, each context can contain multiple scripts. Each browser tab has a single top-level context called 'top', plus it will have extra contexts for any frames or iframes within the page, as well as for any browser extensions running on the page.

Only script elements in the HTML of the top-level page (i.e. in the HTML served directly from the URL you see in the location bar) get to be in the 'top' context.