Skip to content

Commit 35c3148

Browse files
todorprtimmywil
authored andcommitted
CSS: Make sure elem.ownerDocument.defaultView is not null
Fixes gh-2866 Close gh-2867
1 parent 1de8346 commit 35c3148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/css/var/getStyles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ define( function() {
66
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
77
var view = elem.ownerDocument.defaultView;
88

9-
if ( !view.opener ) {
9+
if ( !view || !view.opener ) {
1010
view = window;
1111
}
1212

0 commit comments

Comments
 (0)