Skip to main content

Bug Tracker

Side navigation

#1779 closed bug (fixed)

Opened October 06, 2007 08:34PM UTC

Closed October 12, 2007 09:47AM UTC

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)
  • 1779.diff (0.5 KB) - added by davidserduke October 06, 2007 08:38PM UTC.
  • bug.html (1.8 KB) - added by davidserduke October 06, 2007 08:35PM UTC.

    test case for the bug

Change History (2)

Changed October 06, 2007 08:43PM UTC by davidserduke comment:1

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.

Changed October 12, 2007 09:47AM UTC by joern comment:2

resolution: → fixed
status: newclosed

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