Make it possible to run fxr:// url in non-kiosk mode

This commit is contained in:
Paul Rouget 2020-07-16 06:47:48 +02:00
parent ef4f5e5264
commit 2ac0ccb4d2
4 changed files with 25 additions and 16 deletions

View file

@ -95,10 +95,7 @@ void App::OnActivated(IActivatedEventArgs const &args) {
rootFrame = content.try_as<Frame>();
}
auto page = rootFrame.Content().try_as<BrowserPage>();
page->LoadServoURI(protocolActivatedEventArgs.Uri());
// If Servo was opened as a result of clicking on a fxr:// URL,
// we activate transient mode.
page->SetTransientMode(!isRunning);
page->LoadFXRURI(protocolActivatedEventArgs.Uri());
}
}