add handling for favicon link elements

fixes #6166
This commit is contained in:
Mike Blumenkrantz 2015-05-29 14:34:41 -04:00
parent 05212b702d
commit 12f20f1ecc
10 changed files with 69 additions and 1 deletions

View file

@ -454,6 +454,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
self.composite_if_necessary(CompositingReason::Headless);
}
(Msg::NewFavicon(url), ShutdownState::NotShuttingDown) => {
self.window.set_favicon(url);
}
// When we are shutting_down, we need to avoid performing operations
// such as Paint that may crash because we have begun tearing down
// the rest of our resources.