]> source.dussan.org Git - jquery.git/commit
CSS: Do not throw on frame elements in FF
authorOleg Gaidarenko <markelog@gmail.com>
Sun, 18 May 2014 16:47:37 +0000 (20:47 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Sun, 15 Jun 2014 23:08:26 +0000 (03:08 +0400)
commite488d985cfb10ab8c684bbc6a9b8ff3eae23bf83
tree46cc46f9520895671ac5432c69ce1f2fd60aff76
parentd837f119c3729565103005d5d7fa89e1dd8110cb
CSS: Do not throw on frame elements in FF

IE9-10 throws on elements created in popups (see #14150), FF meanwhile throws
on frame elements through "defaultView.getComputedStyle" (see #15098)

Use "defaultView" if in the popup which would fix IE issue,
use "window.getComputedStyle" which would fix FF issue.

And everybody wins, except performance, but who cares right?

Fixes #15098
Closes gh-1583
src/css/var/getStyles.js
test/unit/css.js