mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Add url getter to Page and fix users of Page url with it.(fixes #1762)
This commit is contained in:
parent
94a12469f0
commit
8fc5ba5dc6
5 changed files with 13 additions and 7 deletions
|
@ -33,6 +33,7 @@ use std::ptr;
|
|||
use std::to_bytes::Cb;
|
||||
|
||||
use extra::serialize::{Encoder, Encodable};
|
||||
use extra::url::{Url};
|
||||
|
||||
pub enum TimerControlMsg {
|
||||
TimerMessage_Fire(~TimerData),
|
||||
|
@ -96,6 +97,9 @@ impl Window {
|
|||
pub fn get_cx(&self) -> *JSObject {
|
||||
self.page.js_info.get_ref().js_compartment.cx.ptr
|
||||
}
|
||||
pub fn get_url(&self) -> Url {
|
||||
self.page.get_url()
|
||||
}
|
||||
}
|
||||
|
||||
#[unsafe_destructor]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue