diff --git a/components/script/dom/bindings/cell.rs b/components/script/dom/bindings/cell.rs index 81085256821..18ea62d7106 100644 --- a/components/script/dom/bindings/cell.rs +++ b/components/script/dom/bindings/cell.rs @@ -94,7 +94,9 @@ impl DOMRefCell { impl JSTraceable for DOMRefCell { fn trace(&self, trc: *mut JSTracer) { - (*self).borrow().trace(trc) + unsafe { + (*self).borrow_for_gc_trace().trace(trc) + } } }