Skip to content

Selector: Use shallow document comparisons in uniqueSort #4512

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

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

mgol
Copy link
Member

@mgol mgol commented Oct 14, 2019

Summary

IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (=== & !==). Funnily enough, shallow comparisons
(== & !=) work without crashing.

The change to shallow comparisons in src/selector.js was done in gh-4471 but
relevant changes in src/selector/uniqueSort.js were missed. Those changes
have landed in Sizzle in jquery/sizzle#459.

+1 byte

Fixes gh-4441
Ref gh-4471
Ref jquery/sizzle#459

Checklist

Sorry, something went wrong.

IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

The change to shallow comparisons in `src/selector.js` was done in jquerygh-4471 but
relevant changes in `src/selector/uniqueSort.js` were missed. Those changes
have landed in Sizzle in jquery/sizzle#459.

Fixes jquerygh-4441
Closes jquerygh-4471
Ref jquery/sizzle#459
@mgol mgol added this to the 4.0.0 milestone Oct 14, 2019
@mgol mgol self-assigned this Oct 14, 2019
@mgol mgol merged commit 15750b0 into jquery:master Oct 21, 2019
@mgol mgol deleted the doc-shallow-compare-followup branch October 21, 2019 17:04
@mgol mgol removed the Needs review label Oct 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

IE & Edge crash with "Permission denied" on the contents() for <frame /> test
2 participants