feat(runtime): adapt for xul36 (closes #4683, closes #4684)