diff options
Diffstat (limited to 'components/script/dom/serviceworker.rs')
-rw-r--r-- | components/script/dom/serviceworker.rs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/components/script/dom/serviceworker.rs b/components/script/dom/serviceworker.rs index b01fc2a1d97..021192a95fa 100644 --- a/components/script/dom/serviceworker.rs +++ b/components/script/dom/serviceworker.rs @@ -2,6 +2,15 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +use std::cell::Cell; + +use dom_struct::dom_struct; +use js::jsapi::{Heap, JSObject}; +use js::rust::{CustomAutoRooter, CustomAutoRooterGuard, HandleValue}; +use msg::constellation_msg::ServiceWorkerId; +use script_traits::{DOMMessage, ScriptMsg}; +use servo_url::ServoUrl; + use crate::dom::abstractworker::SimpleWorkerErrorHandler; use crate::dom::bindings::cell::DomRefCell; use crate::dom::bindings::codegen::Bindings::MessagePortBinding::PostMessageOptions; @@ -20,13 +29,6 @@ use crate::dom::eventtarget::EventTarget; use crate::dom::globalscope::GlobalScope; use crate::script_runtime::JSContext; use crate::task::TaskOnce; -use dom_struct::dom_struct; -use js::jsapi::{Heap, JSObject}; -use js::rust::{CustomAutoRooter, CustomAutoRooterGuard, HandleValue}; -use msg::constellation_msg::ServiceWorkerId; -use script_traits::{DOMMessage, ScriptMsg}; -use servo_url::ServoUrl; -use std::cell::Cell; pub type TrustedServiceWorkerAddress = Trusted<ServiceWorker>; |