allow_navigation: use channel to send response

This commit is contained in:
Paul Rouget 2017-06-26 08:13:10 +02:00
parent d8ba8cad58
commit cd3172c913
7 changed files with 16 additions and 9 deletions

View file

@ -509,10 +509,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
}
(Msg::AllowNavigation(url, response_chan), ShutdownState::NotShuttingDown) => {
let allow = self.window.allow_navigation(url);
if let Err(e) = response_chan.send(allow) {
warn!("Failed to send allow_navigation result ({}).", e);
}
self.window.allow_navigation(url, response_chan);
}
(Msg::Recomposite(reason), ShutdownState::NotShuttingDown) => {