mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
make Opts.url an Option<> type, only emit initial url load if url exists
this is a necessary change for embedded apps to prevent an initial about:blank page load from overwriting whatever the app was actually trying to load
This commit is contained in:
parent
fcf449517d
commit
b1ae5e7523
3 changed files with 11 additions and 7 deletions
|
@ -168,10 +168,13 @@ fn create_constellation(opts: opts::Opts,
|
|||
storage_task);
|
||||
|
||||
// Send the URL command to the constellation.
|
||||
{
|
||||
let ConstellationChan(ref chan) = constellation_chan;
|
||||
chan.send(ConstellationMsg::InitLoadUrl(opts.url.clone())).unwrap();
|
||||
}
|
||||
match opts.url {
|
||||
Some(url) => {
|
||||
let ConstellationChan(ref chan) = constellation_chan;
|
||||
chan.send(ConstellationMsg::InitLoadUrl(url.clone())).unwrap();
|
||||
},
|
||||
None => ()
|
||||
};
|
||||
|
||||
constellation_chan
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue