Bug Tracker

Modify

Ticket #1779 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

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

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

Change History

Changed 6 years ago by davidserduke

test case for the bug

Changed 6 years ago by davidserduke

comment:1 Changed 6 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 6 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.