Open Bug 926762 Opened 11 years ago Updated 2 years ago

Firefox permits arbitrarily large numbers of javascript redirects.

Categories

(Core :: DOM: Navigation, defect)

24 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: Kiefer.Hicks, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130911155223

Steps to reproduce:

Load this page:

<html>
        <head>
                <script>
                        window.location = 'file:///home/khicks/client.html';
                </script>
        </head>
        <body>
        </body>
</html>

(where "file:///home/khicks/client.html" is replaced by the location of the file on disk, or the URL.)


Actual results:

The page redirects to itself continuously and indefinitely.


Expected results:

Firefox should emit an error after a pre-set (and preferably configurable) count of redirects, similar to it's handling of server side redirect loops.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.