Auto merge of #26205 - jdm:no-shutdown, r=Manishearth

Don't shutdown the app when it's suspended.

Fixes #26162. Fixes https://github.com/servo/webxr/issues/155.
This commit is contained in:
bors-servo 2020-04-16 18:56:14 -04:00 committed by GitHub
commit d1f1371509
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,10 +103,14 @@ void App::OnActivated(IActivatedEventArgs const &args) {
}
void App::OnSuspending(IInspectable const &, SuspendingEventArgs const &) {
auto content = Window::Current().Content();
// FIXME: Apps can be suspended for various reasons, not just closing them.
// * Figure out how to save state like the current URL so it can be
// restored if necessary.
// * Determine if the user has actually closed the app and shutdown.
/*auto content = Window::Current().Content();
Frame rootFrame = content.try_as<Frame>();
auto page = rootFrame.Content().try_as<BrowserPage>();
page->Shutdown();
page->Shutdown();*/
}
void App::OnNavigationFailed(IInspectable const &,