diff --git a/components/script/dom/html/htmliframeelement.rs b/components/script/dom/html/htmliframeelement.rs
index 462007e1cba..57986b2cc42 100644
--- a/components/script/dom/html/htmliframeelement.rs
+++ b/components/script/dom/html/htmliframeelement.rs
@@ -3,6 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use std::cell::Cell;
+use std::rc::Rc;
use base::id::{BrowsingContextId, PipelineId, WebViewId};
use bitflags::bitflags;
@@ -48,6 +49,7 @@ use crate::dom::virtualmethods::VirtualMethods;
use crate::dom::windowproxy::WindowProxy;
use crate::script_runtime::CanGc;
use crate::script_thread::ScriptThread;
+use crate::script_window_proxies::ScriptWindowProxies;
#[derive(Clone, Copy, JSTraceable, MallocSizeOf)]
struct SandboxAllowance(u8);
@@ -93,6 +95,8 @@ pub(crate) struct HTMLIFrameElement {
sandbox_allowance: Cell