mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
temp re-set default url for cef while I figure out wtf is going on
This commit is contained in:
parent
42179cf6e7
commit
8330eabac1
2 changed files with 6 additions and 4 deletions
|
@ -238,9 +238,9 @@ fn browser_host_create(window_info: &cef_window_info_t,
|
|||
if callback_executed {
|
||||
browser_callback_after_created(browser.clone());
|
||||
}
|
||||
if url != ptr::null() {
|
||||
unsafe { browser.downcast().frame.load_url(CefWrap::to_rust(url)); }
|
||||
}
|
||||
//if url != ptr::null() {
|
||||
//unsafe { browser.downcast().frame.load_url(CefWrap::to_rust(url)); }
|
||||
//}
|
||||
BROWSERS.with(|browsers| {
|
||||
browsers.borrow_mut().push(browser.clone());
|
||||
});
|
||||
|
|
|
@ -12,10 +12,11 @@ use util::opts;
|
|||
use std::ffi;
|
||||
use std::str;
|
||||
use browser;
|
||||
use std_url::Url;
|
||||
|
||||
const MAX_RENDERING_THREADS: usize = 128;
|
||||
|
||||
//static HOME_URL: &'static str = "http://s27.postimg.org/vqbtrolyr/servo.jpg";
|
||||
static HOME_URL: &'static str = "http://s27.postimg.org/vqbtrolyr/servo.jpg";
|
||||
|
||||
static CEF_API_HASH_UNIVERSAL: &'static [u8] = b"8efd129f4afc344bd04b2feb7f73a149b6c4e27f\0";
|
||||
#[cfg(target_os="windows")]
|
||||
|
@ -66,6 +67,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 = Url::parse(HOME_URL).unwrap();
|
||||
opts::set(temp_opts);
|
||||
|
||||
init_window();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue