Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Use only one focusin/out handler per matching window & document #4657

Merged
merged 2 commits into from Apr 27, 2020

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 6, 2020

Summary

Backport tests from a jQuery 3.x fix that's not needed on master.

Also, fix the "focusin from an iframe" test to actually verify the behavior
from commit 1cecf64 - the commit that
introduced the regression - to make sure we don't regress on either front.

The main part of the modified test was checking that focusin handling in an
iframe works and that's still checked. The test was also checking that it
doesn't propagate to the parent document, though, and, apparently, in IE it
does. This one test is now blacklisted in IE.

(cherry picked from 9e15d6b)
(cherry picked from 1a4f10d)

Ref gh-4652
Ref gh-4656

Checklist

Backport tests from a jQuery 3.x fix that's not needed on `master`.

Also, fix the "focusin from an iframe" test to actually verify the behavior
from commit 1cecf64 - the commit that
introduced the regression - to make sure we don't regress on either front.

The main part of the modified test was checking that focusin handling in an
iframe works and that's still checked. The test was also checking that it
doesn't propagate to the parent document, though, and, apparently, in IE it
does. This one test is now blacklisted in IE.

(cherry picked from 9e15d6b)
(cherry picked from 1a4f10d)

Ref jquerygh-4652
Ref jquerygh-4656
@mgol mgol added the Tests label Apr 6, 2020
@mgol mgol added this to the 4.0.0 milestone Apr 6, 2020
@mgol mgol self-assigned this Apr 6, 2020
@mgol mgol marked this pull request as ready for review April 6, 2020 21:46
@mgol
Copy link
Member Author

mgol commented Apr 8, 2020

I've noticed I was missing a cleanup for window & document handlers in the newly added test. Fixed here, I'll need to backport that to 3.x-stable as well.

@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Apr 23, 2020
@mgol mgol removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Apr 27, 2020
@mgol mgol merged commit 9b73204 into jquery:master Apr 27, 2020
@mgol mgol deleted the focusin-window-document branch April 27, 2020 19:37
mgol added a commit that referenced this pull request Apr 27, 2020
The "focusin on document & window" test didn't cleanup `focusout` handlers
on `window` & `document`. This has been fixed.

Ref gh-4657
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants