[PR #1120] [MERGED] test(browser): pin DOM and source-map URL policy classifications #2665

Closed
opened 2026-10-17 21:08:48 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/1120
Author: @rizvihasan
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @morluto

Base: main ← Head: test/pin-url-policy-classifications-829


📝 Commits (2)

  • 57edda0 test(browser): pin DOM and source-map URL policy classifications
  • 56cf37a test(browser): assert exact sanitized credentialed DOM URL

📊 Changes

2 files changed (+69 additions, -0 deletions)

View changed files

📝 src/browser/CdpCaptureDocuments.baseUrl.test.ts (+38 -0)
📝 tests/boundary/browser/webSourceMapFetcher.test.ts (+31 -0)

📄 Description

Refs #829

Adds tests pinning how the DOM destination policy and the source-map fetch policy classify non-http(s) URLs, other origins and URLs with credentials, so a later unification shows what changes.

Worth noting: the DOM policy treats a same-origin URL with credentials as approved (and strips them), while the source-map policy rejects it. The tests record that as-is.

Tests only, no production changes. Ran both test files, plus oxfmt and oxlint.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/1120 **Author:** [@rizvihasan](https://github.com/rizvihasan) **Created:** 10/8/2026 **Status:** ✅ Merged **Merged:** 10/8/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `test/pin-url-policy-classifications-829` --- ### 📝 Commits (2) - [`57edda0`](https://github.com/morluto/rea/commit/57edda02b3fb0958733c312dd4cd0731187778fb) test(browser): pin DOM and source-map URL policy classifications - [`56cf37a`](https://github.com/morluto/rea/commit/56cf37a2a9f0e9f0b348d566747e7ec9f5a8da57) test(browser): assert exact sanitized credentialed DOM URL ### 📊 Changes **2 files changed** (+69 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/browser/CdpCaptureDocuments.baseUrl.test.ts` (+38 -0) 📝 `tests/boundary/browser/webSourceMapFetcher.test.ts` (+31 -0) </details> ### 📄 Description Refs #829 Adds tests pinning how the DOM destination policy and the source-map fetch policy classify non-http(s) URLs, other origins and URLs with credentials, so a later unification shows what changes. Worth noting: the DOM policy treats a same-origin URL with credentials as approved (and strips them), while the source-map policy rejects it. The tests record that as-is. Tests only, no production changes. Ran both test files, plus oxfmt and oxlint. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-17 21:08:48 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#2665
No description provided.