aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/document_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/document_loader.rs')
-rw-r--r--components/script/document_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs
index f4f6970f6d5..e73a793ce6a 100644
--- a/components/script/document_loader.rs
+++ b/components/script/document_loader.rs
@@ -30,7 +30,7 @@ pub(crate) enum LoadType {
/// created via DocumentLoader::fetch_async) are always removed by the time
/// that the owner is destroyed.
#[derive(JSTraceable, MallocSizeOf)]
-#[crown::unrooted_must_root_lint::must_root]
+#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
pub(crate) struct LoadBlocker {
/// The document whose load event is blocked by this object existing.
doc: Dom<Document>,