CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 18:25:15 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/jquery/jquery.git
etag: W/"751fb5e10f4ece730dec4764d471925c"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=TGN25DGWyZvDvonjPPSeYx%2FLMQXvlIPue%2Bc6QLHzbYfgFh%2Bbc9QysMzjT0sQOXUGBPhwyZ%2BDkW6FmOX5J0t2OodKORbChtvoxyBXFJLIw%2FpSc2hm6XO5qM9nlvUws6L1OOzQ%2FXnp%2FP6JsJ78wNMrURvPAkWGZ783X%2FocYzSnAuZxi4mq3453qJEpuM2rwshV3655R6A70gVxB0xIh3hriPuU%2FFt5Aqzw75M6u1W3E75mhxW%2B2nCnmqBeTs%2F0ho5yaWuz4tv4E5m1cPYi1lbjuw%3D%3D--0e2LvCvnGodK8FYe--2mDPg5I3R9vNKmS%2FwevBrA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.231133987.1760207114; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 18:25:14 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 18:25:14 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A0C4:19F5EE:94C13C:C2DB76:68EAA10A
Event: Use only one focusin/out handler per matching window & document · jquery/jquery@9e15d6b · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Commit 9e15d6b
authored
Event: Use only one focusin/out handler per matching window & document
The `doc` variable in:
https://github.com/jquery/jquery/blob/3.4.1/src/event/focusin.js#L30
matched `document` for `document` & `window` for `window`, creating two
separate wrapper event handlers & calling handlers twice if at least one
`focusout` or `focusin` handler was attached on *both* `window` & `document`,
or on `window` & another regular node.
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.
Fixes gh-4652
Closes gh-46561 parent 966a709 commit 9e15d6bCopy full SHA for 9e15d6b
File tree
Expand file treeCollapse file tree
2 files changed
+48
-10
lines changedFilter options
- src/event
- test/unit
Expand file treeCollapse file tree
2 files changed
+48
-10
lines changedCollapse file: src/event/focusin.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 |
| |
32 | 35 |
| |
33 | 36 |
| |
| |||
36 | 39 |
| |
37 | 40 |
| |
38 | 41 |
| |
39 |
| - | |
| 42 | + | |
40 | 43 |
| |
41 | 44 |
| |
42 | 45 |
| |
|
Collapse file: test/unit/event.js
+43-8Lines changed: 43 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2555 | 2555 |
| |
2556 | 2556 |
| |
2557 | 2557 |
| |
2558 |
| - | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
2559 | 2561 |
| |
2560 | 2562 |
| |
2561 | 2563 |
| |
2562 | 2564 |
| |
2563 | 2565 |
| |
2564 | 2566 |
| |
2565 | 2567 |
| |
| 2568 | + | |
2566 | 2569 |
| |
2567 | 2570 |
| |
2568 | 2571 |
| |
2569 | 2572 |
| |
2570 |
| - | |
2571 |
| - | |
2572 |
| - | |
2573 |
| - | |
2574 |
| - | |
2575 |
| - | |
2576 |
| - | |
| 2573 | + | |
2577 | 2574 |
| |
2578 | 2575 |
| |
2579 | 2576 |
| |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
2580 | 2587 |
| |
2581 | 2588 |
| |
2582 | 2589 |
| |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
2583 | 2618 |
| |
2584 | 2619 |
| |
2585 | 2620 |
| |
|
You can’t perform that action at this time.
0 commit comments