As explained in bug 84796, Fullscreen and <dialog> share the top layer.
*** This bug has been marked as a duplicate of bug 84798 ***