Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Sep 26, 2019

The PR is a version of jquery/jquery#4471 for Sizzle which will be needed to fix it for jQuery 3.x (jQuery 4 doesn't use Sizzle anymore so the fix was in jQuery itself).

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

Fixes jquery/jquery#4441
Closes jquery/jquery#4471

@mgol mgol force-pushed the doc-shallow-compare branch from 2893b72 to dd17d06 Compare September 30, 2019 17:00
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Fixes jquery/jquery#4441
Closes jquery/jquery#4471
@mgol mgol force-pushed the doc-shallow-compare branch from dd17d06 to 72b0f99 Compare October 1, 2019 00:30
@mgol mgol changed the title Selector: Use shallow document comparisons to avoid IE/Edge crashes Selector: Use shallow document comparisons to avoid IE/Edge cras… Oct 1, 2019
@mgol mgol merged commit cd0239b into jquery:master Oct 1, 2019
@mgol mgol deleted the doc-shallow-compare branch October 1, 2019 00:38
mgol added a commit to mgol/jquery that referenced this pull request Oct 14, 2019
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 added a commit to jquery/jquery that referenced this pull request Oct 21, 2019
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.

Fixes gh-4441
Closes gh-4512
Ref gh-4471
Ref jquery/sizzle#459
@mgol mgol added this to the 2.3.5 milestone Feb 28, 2020
mgol added a commit to mgol/jquery that referenced this pull request Sep 8, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Sep 12, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Sep 19, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Sep 21, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Oct 3, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Oct 4, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Nov 17, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Dec 1, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
mgol added a commit to mgol/jquery that referenced this pull request Dec 13, 2022
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

Ref jquerygh-4441
Ref jquerygh-4471
Ref jquery/sizzle#459
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants