Bug Tracker

Opened 12 years ago

Closed 12 years ago

#1779 closed bug (fixed)

javascript error in FF when running an animation in a hidden iframe

Reported by: davidserduke Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:

Description

When animation code is placed in an iframe that is hidden, there is the following javascript error.

document.defaultView.getComputedStyle(elem,null).getPropertyValue has no properties
jquery.js
Line: 731

Interestingly enough, while this might seem like an obscure bug, this is exactly the code we are using in the wiki for demos. Attached is an example of the bug.

Attachments (2)

bug.html (1.8 KB) - added by davidserduke 12 years ago.
test case for the bug
1779.diff (561 bytes) - added by davidserduke 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by davidserduke

Attachment: bug.html added

test case for the bug

Changed 12 years ago by davidserduke

Attachment: 1779.diff added

comment:1 Changed 12 years ago by davidserduke

I think this patch might fix the problem. It does fix the test case. As you can see, all it does is check to make sure the getComputedStyle has a value before trying to call its getPropertyValue() function.

comment:2 Changed 12 years ago by joern

Resolution: fixed
Status: newclosed

Fixed in revision [3644]. Thanks for the patch David!

Note: See TracTickets for help on using tickets.