diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2021-05-19 11:43:11 +0200 |
---|---|---|
committer | Morten Sørvig <morten.sorvig@qt.io> | 2021-06-23 08:57:27 +0200 |
commit | 2e12c2caf5e32a3deda4c01afd96b362748b7c3e (patch) | |
tree | 4bd2a9c380e4aa8b98cbd5fe9b2dc48c0e85bec9 /tests/benchmarks/corelib/text/qstringlist/main.cpp | |
parent | 53eb44906c73997335e702d3eef40dec8f6b9cf7 (diff) |
wasm: do not quit() on beforeunload()
This is the wrong event: exiting the app here it is not
compatible with the back/forward cache for instance. See the
the MDN docs for the “Window: unload” event.
Instead, make the Qt default be that we assume the
app process will live “forever” until the browser
terminates it, much like modern process handling on
e.g. iOS.
We may want to come back to app lifecycle handling
at a later point. This might require changes to application
code: implementing main() in such that it supports
clean shutdowns and auditing showdown code to make
sure it is web-compatible.
Change-Id: I0f32026a3af76c9cc79e3aab31e8aaed7b8f8023
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'tests/benchmarks/corelib/text/qstringlist/main.cpp')
0 files changed, 0 insertions, 0 deletions