Skip to main content

Bug Tracker

Side navigation

#9773 closed bug (invalid)

Opened July 07, 2011 09:59AM UTC

Closed July 07, 2011 01:32PM UTC

getComputedStyle fails for an element created in another window because elem.ownerDocument == undefined

Reported by: TiTi Owned by:
Priority: low Milestone:
Component: css Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:


Test case to reproduce my issue:

[Allow popups for jsfiddle]

When the popup is opened, mouseover the text.

Basically, an exception occurs at the line :

"if ( !(defaultView = elem.ownerDocument.defaultView) ) {"

because elem.ownerDocument is undefined.

What am I missing?

Attachments (0)
Change History (1)

Changed July 07, 2011 01:32PM UTC by timmywil comment:1

component: unfiledcss
priority: undecidedlow
resolution: → invalid
status: newclosed

delegate callbacks are not passed the element. tr is undefined at that point. Change tr to this and everything works fine:

On a side note, eww popups.