]> source.dussan.org Git - jquery.git/commit
CSS: Do not throw on frame elements in FF
authorOleg Gaidarenko <markelog@gmail.com>
Sun, 15 Jun 2014 21:26:49 +0000 (01:26 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Sun, 15 Jun 2014 23:21:34 +0000 (03:21 +0400)
commit76294e1e9e25665b22467c099ed406402f784e2a
treec86fc3e16047472b6cb3bd56ecd2cd0d06bcc4b9
parentd05f4bda1cc0b1ef76dce41a53c17f75c105a377
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
Ref e488d985cfb10ab8c684bbc6a9b8ff3eae23bf83
src/css/curCSS.js
test/unit/css.js