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:
Mike Blumenkrantz 2015-05-26 21:18:32 -04:00
parent fcf449517d
commit b1ae5e7523
3 changed files with 11 additions and 7 deletions

View file

@ -74,6 +74,7 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
temp_opts.hard_fail = false;
temp_opts.enable_text_antialiasing = true;
temp_opts.resources_path = None;
temp_opts.url = None;
opts::set(temp_opts);
if unsafe { (*settings).windowless_rendering_enabled != 0 } {