mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
allow_navigation: use channel to send response
This commit is contained in:
parent
d8ba8cad58
commit
cd3172c913
7 changed files with 16 additions and 9 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue