Fix regression that no update to Page.fragment_node.

This commit is contained in:
Tetsuharu OHZEKI 2014-06-01 17:24:23 +09:00
parent 68e3fb26a7
commit b38f39ebe4

View file

@ -1043,8 +1043,7 @@ impl ScriptTask {
let _ = wintarget.dispatch_event_with_target(Some((*doctarget).clone()), let _ = wintarget.dispatch_event_with_target(Some((*doctarget).clone()),
&mut *event); &mut *event);
let mut fragment_node = page.fragment_node.get(); page.fragment_node.assign(fragment.map_or(None, |fragid| page.find_fragment_node(fragid)));
fragment_node.assign(fragment.map_or(None, |fragid| page.find_fragment_node(fragid)));
let ConstellationChan(ref chan) = self.constellation_chan; let ConstellationChan(ref chan) = self.constellation_chan;
chan.send(LoadCompleteMsg(page.id, url)); chan.send(LoadCompleteMsg(page.id, url));