mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects: Check for anonymous content being exposed via document.activeElement. Fixes #8288 - Regression: jquery-ui animations focus fix causes Firefox Security Manager veto.
This commit is contained in:
parent
650fe5c5db
commit
a7e143b4fe
9
ui/jquery.effects.core.js
vendored
9
ui/jquery.effects.core.js
vendored
@ -428,6 +428,15 @@ $.extend( $.effects, {
|
|||||||
},
|
},
|
||||||
active = document.activeElement;
|
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 );
|
element.wrap( wrapper );
|
||||||
|
|
||||||
// Fixes #7595 - Elements lose focus when wrapped.
|
// Fixes #7595 - Elements lose focus when wrapped.
|
||||||
|
Loading…
Reference in New Issue
Block a user