mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
UWP: allow servo's initial URL to be set before Servo starts
This commit is contained in:
parent
d93e67a0bf
commit
79ecc7e216
5 changed files with 26 additions and 13 deletions
|
@ -379,6 +379,8 @@ void ServoControl::TryLoadUri(hstring input) {
|
|||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
mInitUrl = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -398,8 +400,8 @@ void ServoControl::Loop() {
|
|||
log(L"Entering loop");
|
||||
ServoDelegate *sd = static_cast<ServoDelegate *>(this);
|
||||
EGLNativeWindowType win = GetNativeWindow();
|
||||
mServo = std::make_unique<Servo>(mArgs, mPanelWidth, mPanelHeight, win,
|
||||
mDPI, *sd);
|
||||
mServo = std::make_unique<Servo>(mInitUrl, mArgs, mPanelWidth, mPanelHeight,
|
||||
win, mDPI, *sd);
|
||||
} else {
|
||||
// FIXME: this will fail since create_task didn't pick the thread
|
||||
// where Servo was running initially.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue