Repository navigation
Phase 9: coverage to 100% - #631
Merged
Merged
Conversation
Cover the IE HTTPS iframe source via document.URL and the response-read catch via a stubbed denial.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 9 of
docs/plans/modernization.md: 100% lines, branches, functions and statements, enforced bynpm test. No/* v8 ignore */comments and no compatibility change.docs/research/coverage-gaps.md): the|| ""and|| []fallbacks, the always-trueserializedData[i]andif (a)checks, the never-truetimedOutflag, the always-presents.successcheck, and the dead XML branch with the wholetoXmlhelper.javascript:false(IE on HTTPS): the check readsdocument.URLinstead ofwindow.location.href(the same value for a page's own document). The suite can redefinedocument.URL, so a test reaches the branch without an HTTPS test project.catch: now covered by a stubbed IE8 access denial; its|| statusfallback is gone.dataType: "script"now evaluates iframe responses, as$.ajaxdoes. Itsit.failsis anit; recorded in4x-behavior-changes.md.main(3 alerts), and the Phase 10 decisions on advisories and the custom CodeQL query.Verified locally:
npm testand the suite on jQuery 1.7.2, 3.7.1 and 4.0.0. Medians of 5 runs:npm test5.0 s wall, suite 3.45 s in-runner (3.9 s wall).🤖 Generated with Claude Code