- Notifications
You must be signed in to change notification settings - Fork20.6k
Commit87467a6
authored
Selector: Only attach the unload handler in IE & Edge Legacy
Both IE & Edge Legacy need the workaround of calling `setDocument()` in an`unload` handler to avoid "permission denied" errors. However, due to not beingpossible to feature-detect this issue, the handler has been applied in allbrowsers for windows different than the one in which jQuery was loaded.jQuery 4.0, which drops Edge Legacy support, guards this workaround witha `document.documentMode` check. This won't work in the 3.x line due to stillsupporting Edge Legacy but we can check for`document.documentElement.msMatchesSelector` instead as that API issupported in IE 9+ and all Edge Legacy versions.Fixesgh-5281Closesgh-5282Refgh-47921 parent3c18c1f commit87467a6
1 file changed
+11
-6
lines changedLines changed: 11 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
532 | 537 |
| |
533 | 538 |
| |
534 | 539 |
| |
|
0 commit comments
Comments
(0)