diff options
Diffstat (limited to 'src/components/servo/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | src/components/servo/dom/bindings/codegen/CodegenRust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/servo/dom/bindings/codegen/CodegenRust.py b/src/components/servo/dom/bindings/codegen/CodegenRust.py index 01257749017..624018c394e 100644 --- a/src/components/servo/dom/bindings/codegen/CodegenRust.py +++ b/src/components/servo/dom/bindings/codegen/CodegenRust.py @@ -3615,7 +3615,7 @@ class CGClassConstructHook(CGAbstractExternMethod): // or through unwrapping a slot or something). We'll punt and get the Window // from the context for now. let script_context = task_from_context(cx); - let global = (*script_context).window.get(); + let global = (*script_context).root_frame.get_ref().window; let obj = global.get_wrappercache().get_wrapper(); """ preArgs = ["global"] |