Skip to content

Commit 75ccfe3

Browse files
committed
update comment with more specific browser notes
1 parent e3cb3fe commit 75ccfe3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inst/www/shared/shiny.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
if (el.currentStyle)
3636
x = el.currentStyle[styleProp];
3737
else if (window.getComputedStyle) {
38-
// On some browsers, getComputedStyle can return null for elements that
39-
// aren't visible; don't attempt to retrieve style props in this case.
38+
// getComputedStyle can return null when we're inside a hidden iframe on
39+
// Firefox; don't attempt to retrieve style props in this case.
40+
// https://bugzilla.mozilla.org/show_bug.cgi?id=548397
4041
var style = document.defaultView.getComputedStyle(el, null);
4142
if (style)
4243
x = style.getPropertyValue(styleProp);

0 commit comments

Comments
 (0)