aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 23467215da4..480514b36b2 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -287,6 +287,8 @@ impl Drop for StackRootTLS {
/// Information for an entire page. Pages are top-level browsing contexts and can contain multiple
/// frames.
#[derive(JSTraceable)]
+// ScriptTask instances are rooted on creation, so this is okay
+#[allow(unrooted_must_root)]
pub struct ScriptTask {
/// A handle to the information pertaining to page layout
page: DOMRefCell<Option<Rc<Page>>>,