Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix gonk port
  • Loading branch information
brson committed May 10, 2015
1 parent d1b0a4b commit bc28469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions ports/gonk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions ports/gonk/src/lib.rs
Expand Up @@ -122,17 +122,8 @@ impl Browser {
devtools_chan,
storage_task);

// Send the URL command to the constellation.
let cwd = env::current_dir().unwrap();
let url = match url::Url::parse(&opts.url) {
Ok(url) => url,
Err(url::ParseError::RelativeUrlWithoutBase)
=> url::Url::from_file_path(&*cwd.join(&opts.url)).unwrap(),
Err(_) => panic!("URL parsing failed"),
};

let ConstellationChan(ref chan) = constellation_chan;
chan.send(ConstellationMsg::InitLoadUrl(url)).unwrap();
chan.send(ConstellationMsg::InitLoadUrl(opts.url.clone())).unwrap();

// The compositor coordinates with the client window to create the final
// rendered page and display it somewhere.
Expand Down

0 comments on commit bc28469

Please sign in to comment.