Repository navigation
refactor(helpers): remove Internet Explorer detection from isURLSameOrigin - #11174
Merged
Merged
Conversation
wittachai-as
force-pushed
the
remove-msie-check
branch
from
August 28, 2026 16:44
c5ca676 to
bcfcb1d
Compare
Contributor
|
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.
Summary
Remove obsolete Internet Explorer user-agent detection from browser same-origin checks. Native
URL.hostalready includes non-default ports, so the existing host comparison rejects cross-port URLs even with an MSIE/Trident user-agent string. This removes redundant compatibility logic without changing origin decisions in supported environments.Linked issue
No separate issue. The rationale is removing the leftover user-agent branch after the native URL migration in #6714; current browser support excludes Internet Explorer.
Changes
msie|tridentsniff and always compare protocol, host, and port.v1.x, preservingdocument.baseURI || platform.originfrom fix: align request handling across runtimes (v1.x) #11242 and its existing cross-origin document-base/XSRF tests.PRE_RELEASE_CHANGELOG.md.Validation
Local validation used Node 26.8.1, npm 11.19.0, and Vitest 4.1.11 on macOS.
npm ci --ignore-scripts: passed; package manifest and lockfile unchanged.npx playwright install: passed.npx prettier --check lib/helpers/isURLSameOrigin.js tests/unit/helpers/isURLSameOrigin.test.js tests/browser/isURLSameOrigin.browser.test.js tests/browser/xsrf.browser.test.js PRE_RELEASE_CHANGELOG.md: passed.npm run lint: passed.npm run build: passed for all configured bundles.npm run test:vitest:unit -- tests/unit/helpers/isURLSameOrigin.test.js: 7 passed.npm run test:vitest:unit: 1,611 passed across 70 files.npm run test:vitest:browser:headless: 876 passed, 3 existing skips, across 75 browser/file combinations in Chromium, Firefox, and WebKit. This includes the existing document-base protection and explicitwithXSRFTokencases.git diff --check: passed.GitHub Actions for head
b6c3e537: fork-run approval was granted for all four workflows. Workflow security analysis, build reproducibility, and bundle size passed; Continuous integration is still running. Track Continuous integration, build reproducibility, bundle size, and workflow security analysis. The old head's failed runs and passing review/security bot checks are not build/test evidence for this update.Compatibility and documentation
Patch impact. No supported-environment behavior change, new configuration, public API, or type change. Cross-origin XSRF attachment still requires explicit
withXSRFToken: true; the current document-base handling remains intact. No changes toindex.d.ts/index.d.cts, README, or migration guidance are needed. There is no deferred public documentation work to record inPRE_RELEASE_DOCS.md; the internal cleanup is recorded inPRE_RELEASE_CHANGELOG.md.Checklist
PRE_RELEASE_CHANGELOG.mdentry added or updated