Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

When will a memory pressure event be delivered #6

Open
jeisinger opened this issue Apr 10, 2017 · 1 comment
Open

When will a memory pressure event be delivered #6

jeisinger opened this issue Apr 10, 2017 · 1 comment

Comments

@jeisinger
Copy link

e.g. in this chromium issue the time between when the OS gets under memory pressure to when the app dies is shorter than the time it takes for control to return to the message loop. In situations like this, I'd assume that delivering a DOM event won't work either.

I also expect that it's not uncommon that the foreground tab is actually the cause of memory pressure.

How does this API work in these situations?

@Akxe
Copy link

Akxe commented May 26, 2019

It should be upon hitting some treshold. If someone has memory intense loop it might crash even while implementing memorypresureevent.

The treshold will be kept on browser not to leak any user info. I would think it even could be randomised.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants