Add meta-referrer support for documents

This commit is contained in:
Rebecca 2016-05-21 18:02:45 -04:00
parent d0f5a5fd74
commit 687d0cd7c3
56 changed files with 136 additions and 263 deletions

View file

@ -144,8 +144,9 @@ impl HTMLIFrameElement {
pub fn process_the_iframe_attributes(&self) {
let url = self.get_url();
// TODO - loaddata here should have referrer info (not None, None)
self.navigate_or_reload_child_browsing_context(Some(LoadData::new(url, None, None)));
let document = document_from_node(self);
self.navigate_or_reload_child_browsing_context(
Some(LoadData::new(url, document.get_referrer_policy(), Some(document.url().clone()))));
}
#[allow(unsafe_code)]