Opened 5 years ago

Closed 5 years ago

#18976 closed defect (fixed)

Permission denied to access property "getComputedStyle"

Reported by: GibboK Owned by: dylan
Priority: high Milestone: 1.12.2
Component: Core Version: 1.12.1
Keywords: Cc:
Blocked By: Blocking:


Bug related to

Bug is thrown on:

  • Firefox 51.0.1 (32-bit)
  • Firefox 53.0a2 (2017-02-16) (32-bit)

On Chrome 56.0.2924.87 no bug is thrown.

Instructions on how to reproduce the bug:

  • Host index.html on a domain example
  • Host app.html on a subdomain example or a completely different domain as
  • In index.html change src to point to app.html.
  • Run index.html using Firefox.
  • Click button wihtin the iframe.
  • At click dojo will use getComputedStyle() which will cause bug to appears.


  • If index.html and app.html are hosted on the same domain example error is not thrown.

Error Stack trace:

`Permission denied to access property "getComputedStyle" Stack trace: dom-style.js:51:1`

File: bower.json

    "name": "bug on fix #18871",
    "description": "Permission denied to access property \"getComputedStyle\"",
    "private": true,
    "dependencies": {
        "dijit": "1.12.1",
        "dojo": "1.12.1"
    "ignore": [

File: index.html

<!DOCTYPE html>
    <meta charset="utf-8" />
    <iframe src=""></iframe>

File: app.html

<!DOCTYPE html>

    <meta charset="UTF-8">
    <link href="dijit/themes/claro/claro.css" rel="stylesheet" />
        var dojoConfig = {
            parseOnLoad: true,
            isDebug: true,
            locale: 'en-us',
            async: true
    <script src="dojo/dojo.js"></script>
        require(['dijit/form/Button', 'dojo/dom', 'dojo/_base/fx', 'dojo/_base/kernel', 'dojo/domReady!'], function (Button, dom, fx, ke

Attachments (1) (1.1 KB) - added by GibboK 5 years ago.
Test case 18976

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by GibboK

Attachment: added

Test case 18976

comment:1 Changed 5 years ago by dylan

Component: GeneralCore
Milestone: tbd1.12.2
Owner: set to dylan
Priority: undecidedhigh
Status: newassigned

As noted in , unless I am misunderstanding, I think there are two different issues here. The latter issue is such that I don't believe you should be able to use getComputedStyle across domains. Perhaps this was failing silently before and now it's failing via an error? For the former issue, I'm thinking we may need to do something to detect vs. and pick one based on permission/existence perhaps? Regardless, we'll investigate again.

comment:2 Changed 5 years ago by dylan

Resolution: fixed
Status: assignedclosed

I believe this was fixed in . If not, please re-open!

Note: See TracTickets for help on using tickets.