Deny unsafe blocks in script.

As a first start, this allows them indiscriminately where used.
This commit is contained in:
Ms2ger 2015-01-08 17:33:34 +01:00
parent d9751c0fbb
commit edc1d89251
14 changed files with 27 additions and 0 deletions

View file

@ -47,6 +47,7 @@ impl BrowserContext {
self.window_proxy
}
#[allow(unsafe_blocks)]
fn create_window_proxy(&mut self) {
let win = self.active_window().root();
let win = win.r();
@ -117,6 +118,7 @@ static PROXY_HANDLER: ProxyTraps = ProxyTraps {
trace: None
};
#[allow(unsafe_blocks)]
pub fn new_window_proxy_handler() -> WindowProxyHandler {
unsafe {
WindowProxyHandler(CreateWrapperProxyHandler(&PROXY_HANDLER))