Pass immutable self to HTMLBodyElement::SetOnunload.