Skip to content
Permalink
Browse files

Effects: Check for anonymous content being exposed via document.activ…

…eElement. Fixes #8288 - Regression: jquery-ui animations focus fix causes Firefox Security Manager veto.
  • Loading branch information
scottgonzalez committed May 7, 2012
1 parent 650fe5c commit a7e143b4fe395baeda297ea96ef39921ea7f5a5d
Showing with 9 additions and 0 deletions.
  1. +9 −0 ui/jquery.effects.core.js
@@ -428,6 +428,15 @@ $.extend( $.effects, {
},
active = document.activeElement;

// support: Firefox
// Firefox incorrectly exposes anonymous content
// https://bugzilla.mozilla.org/show_bug.cgi?id=561664
try {
active.id;
} catch( e ) {
active = document.body;
}

element.wrap( wrapper );

// Fixes #7595 - Elements lose focus when wrapped.

0 comments on commit a7e143b

Please sign in to comment.
You can’t perform that action at this time.