Custom Query (18300 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (25 - 27 of 18300)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Ticket Resolution Summary Owner Reporter
#18978 fixed request/util/deepCopy does not handle Date objects correctly dylans <dylan@…> Michael Schall
Description

When calling util.deepCopy properties of type Date do not get copied.

example: http://plnkr.co/edit/ebYbu9nQ5m3rAbyQbMP1?p=preview

#18976 fixed Permission denied to access property "getComputedStyle" dylan GibboK
Description

Bug related to https://github.com/dojo/dojo/commit/bfea978ffd6e7a0606ad677e457e7079e42a937d

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 www.a.com
  • Host app.html on a subdomain example sub.a.com or a completely different domain as www.b.com.
  • 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.

Notes:

  • If index.html and app.html are hosted on the same domain example www.a.com 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": [
        "**/.*",
        "node_modules",
        "bower_components",
        "",
        "test",
        "tests"
    ]
}

File: index.html

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
</head>
<body>
    <iframe src="http://sub.a.com/index.html"></iframe>
</body>
</html>

File: app.html

<!DOCTYPE html>
<html>

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

Per two reports on the mailing list:

From Jan Misker:

I noticed a bug in dojo/dom-style in combination with Firefox (51.0.1). When I call getComputedStyle execution halts, and I get a warning

Permission denied to access property "getComputedStyle"

Note that this happens only cross-domain, so check this test-case (difficult to create one on JSFiddle): http://dev.prettigparkeren.nl/test-embed/test.html The issues seems to be resolved by not referencing window.parent but just the window (which makes sense from a same-origin perspective). I described it here as well https://github.com/dojo/dojo/commit/bfea978ffd6e7a0606ad677e457e7079e42a937d#commitcomment-20895564

But I don't know whether the code references .parent for a reason?

and:

From Nick Fenwick:

I upgraded to Dojo 1.12 from 1.10 recently and have found an exception in Internet Explorer (I'm running 11.0.9600). We embed our app in an iframe and the attempt to access the parent window object is throwing Permission Denied. This seems like a legitimate exception and since it's in core Dojo code I'm not sure of the best way forward. In dom-style.js:

getComputedStyle = function(node){

var dv = node.ownerDocument.defaultView,

w = dv.opener ? dv : win.global.window.parent;

return node.nodeType == 1 /* ELEMENT_NODE*/ ?

w.getComputedStyle(node, null) : {};

};

When this is executed, w is assigned to the parent window object, then the call to w.getComputedStyle() causes the Permission Denied exception.

I have put together a very simple example http://cvt.winwebconnect.com/ui_src/test/iframetest.html - it loads a simple Dojo test page from a different domain (qat.winwebconnect.com). The attempt to getComputedStyle for the '#thediv' element crashes. If I change the dojo version to 1.11 or 1.10 there is no exception.

I can try replacing or wrapping domStyle.getComputedStyle() to avoid this behaviour but this is a workaround to what feels like a genuine bug. I've yet to dig back in Dojo history to see how/why it used to work.

Is there something I'm missing about IE that can work around this problem, or should I raise a Trac ticket?

Advice greatly appreciated

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Note: See TracQuery for help on using queries.