Safari bug - hidden iframes

Safari doesn't count iframes with display: none at all. They are not represented in the frames array and refreshing the pages in them is impossible, too.

First check self.frames.length. Safari only counts the iframes when they have display: block, which you can toggle below.

Try to load a page into a hidden iframe: Safari doesn't do it.

Show iframe 1
Load page 2 in iframe 1

Show iframe 2
Load page 2 in iframe 2