Parent reload: if the following number changes then the parent page (this yellow page) has reloaded:

1751396486

The goal:

The goal of this pattern is to obtain a reload of the iframe red content and only a reload of the yellow parent

Description:

  1. Click the link inside the iframe
  2. This click call a back.php page that only reload the content iframe whith a param "reload=true" in the querystring

    back.php:

    <?php
        Header ('Location: ifrmBoxLogin.php?reload=true');
    ?>
        
  3. In ifrmBoxLogin.php: if param "reload == 'true' then print a script thar reload the parent page:

    ifrmBoxLogin.php:

    <?php
    if(isset($_GET['reload']))
    	$reload=$_GET['reload'];
    
    if($reload=='true'){
    ?>
    <script type="text/javascript">
        top.location.reload(true);
    </script>
    <?php
    }
    ?>
    <script type="text/javascript">
    alert('window.location.search = '+window.location.search);
    </script>
    </head>
    <body style="background-color:red;">
    <h1>Iframe content</h1>
    <a href="back.php">Submit this then come back here and reload the yellow parent page</a>
    </body></html>
        
  4. the desired result: after iframe content will reload, it would reload the parent yellow page. This work fine in all browsers except firefox latest version.

The issue:

This pattern works fine in all browsers except Mozilla Firefox (reload cause a infinite loop)

It seem that firefox ignore the src="ifrmBoxLogin.php?reload=false" iframe param in the parent yellow page (see the alert: always reload is equal to 'true' only in firefox)

Please note that in very older Firefox version (before 2.0 maybe - i don't remember sorry) this script works fine

(sorry for my bad english)