This test requires window.internals. If you use content_shell, "--expose-internals-for-testing" command flag enables it.
You has the right.