Add support for selecting which frame is requesting a navigation.

This allows iframes to navigate their own history.
This commit is contained in:
Glenn Watson 2015-03-17 15:01:51 +10:00
parent 1092ca1019
commit 3fb3e66ada
3 changed files with 16 additions and 11 deletions

View file

@ -946,7 +946,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
windowing::WindowNavigateMsg::Back => NavigationDirection::Back,
};
let ConstellationChan(ref chan) = self.constellation_chan;
chan.send(ConstellationMsg::Navigate(direction)).unwrap()
chan.send(ConstellationMsg::Navigate(None, direction)).unwrap()
}
fn on_key_event(&self, key: Key, state: KeyState, modifiers: KeyModifiers) {