mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make it possible to run fxr:// url in non-kiosk mode
This commit is contained in:
parent
ef4f5e5264
commit
2ac0ccb4d2
4 changed files with 25 additions and 16 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue