The 'Permission denied to access property "type"' error in event handler when page is loading

RESOLVED INVALID

Status

()

Firefox
Untriaged
RESOLVED INVALID
3 years ago
2 years ago

People

(Reporter: alexander, Unassigned)

Tracking

37 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.02 MB, application/x-shockwave-flash
Details
(Reporter)

Description

3 years ago
Created attachment 8601480 [details]
firefox_bug.swf

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36

Steps to reproduce:

Create two pages:
Page "A" has the following code in the <head> tag:

<head runat="server">
    <script>
        window.onerror = function (err) {
            alert(err);
        };
        window.addEventListener('mousemove', function (e) {
            console.log(e.type);
        }, true);
    </script>
<script src="http://httpbin.org/delay/10"></script> <!-- long time load script -->
</head>

Page "B" contains a link to the page "A" with target="_blank".
Publish pages on different domains (for example http://localhost:3000 for the page "A" and http://localhost:3001 for the page "B").

Open the page "B" and click on the link.

Here the markup of the pages:
Page "A":
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script>
        window.onerror = function (err) {
            alert(err);
        };
        window.addEventListener('mousemove', function (e) {
            console.log(e.type);
        }, true);
    </script>
    <script src="http://httpbin.org/delay/10" type="json"></script><!-- long time load script -->
<body>
</body>
</html>

Page "B":
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <a href="http://localhost:3000/pageA" target="_blank">PageA</a>
</body>
</html>



Actual results:

Alert dialog with "Error: Permission denied to access property "type"" appeared


Expected results:

Alert dialog should not appear
Did not reproduce this issue on Firefox 37.0 and on latest Firefox Release, version 43.0.1, buildId: 20151216175450
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0.

Alexander, are you still encounter this problem on the latest release Firefox, 43.0.1? If the problem still reproduces, can you please try to publish the pages on some external IPs and see how it works?
Flags: needinfo?(alexanderMos)
OS: Unspecified → Windows 7
Hardware: Unspecified → x86_64
(Reporter)

Comment 2

2 years ago
Hi,

It's not reproduced on the latest release Firefox, so I'am closing the issue. Thank you for your response.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Flags: needinfo?(alexanderMos)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.