Fix a dynamic borrow failure with iframes