diff --git a/components/script/page.rs b/components/script/page.rs index 83c0c609a93..563cbae1006 100644 --- a/components/script/page.rs +++ b/components/script/page.rs @@ -11,7 +11,6 @@ use dom::window::Window; use msg::constellation_msg::PipelineId; use std::cell::Cell; use std::rc::Rc; -use url::Url; /// Encapsulates a handle to a frame in a frame tree. #[derive(JSTraceable)] @@ -22,11 +21,6 @@ pub struct Page { /// The outermost frame containing the document and window. frame: DOMRefCell>, - /// Cached copy of the most recent url loaded by the script, after all redirections. - /// TODO(tkuehn): this currently does not follow any particular caching policy - /// and simply caches pages forever (!). - url: Url, - /// Indicates if reflow is required when reloading. needs_reflow: Cell, @@ -61,11 +55,10 @@ impl IterablePage for Rc { } impl Page { - pub fn new(id: PipelineId, url: Url) -> Page { + pub fn new(id: PipelineId) -> Page { Page { id: id, frame: DOMRefCell::new(None), - url: url, needs_reflow: Cell::new(true), children: DOMRefCell::new(vec!()), } diff --git a/components/script/script_task.rs b/components/script/script_task.rs index f2c07735d89..49f9ecdfa2d 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1196,7 +1196,7 @@ impl ScriptTask { }); // Create a new frame tree entry. - let page = Rc::new(Page::new(incomplete.pipeline_id, final_url.clone())); + let page = Rc::new(Page::new(incomplete.pipeline_id)); if !root_page_exists { // We have a new root frame tree. *self.page.borrow_mut() = Some(page.clone());