Mark the page source as loaded only after parsing is done

This commit is contained in:
Anthony Ramine 2017-01-18 14:04:19 +01:00
parent d5442b87fc
commit 0f244d6948
10 changed files with 54 additions and 43 deletions

View file

@ -71,6 +71,10 @@ impl Tokenizer {
pub fn end(&mut self) {
self.inner.end()
}
pub fn url(&self) -> &ServoUrl {
&self.inner.sink().sink().base_url
}
}
#[allow(unsafe_code)]