Validation workaround `xhr-events`: JsRuntimeHost XMLHttpRequest event semantics

Đang mở
#2,014 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@bkaradzic-microsoft đang làm issue này rồi.

Từ ngày 3/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Affected tests (2)

  • Procedural textures playground
  • Clustered Light Serialization

What the workaround does

Patches XMLHttpRequest behavior. JsRuntimeHost XHR (Polyfills/XMLHttpRequest/Source/XMLHttpRequest.cpp) never raises load (only readystatechange/error/loadend), raises error for non-2xx status, and open() throws synchronously. Introduced in #1936. (Procedural textures playground is additionally excluded for a ~24% noise-hash diff.)

Recommended fix

Fix in JsRuntimeHost: dispatch load on completion, treat HTTP error statuses as completed loads (status set, load + loadend, no error), and report open failures asynchronously. Earlier JsRuntimeHost PRs #260 and #221 were closed without merge; reland. Then remove the workaround.


Workaround implementations live in Apps/Playground/Scripts/validation_native.js (WORKAROUNDS map); tests opt in via the workarounds array in Apps/Playground/Scripts/config.json. See Documentation/AddingNewValidationTests.md.

Ngôn ngữ chính
C++
Star
931
Fork
169
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
66

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của BabylonJS/BabylonNative

Tất cả issue của BabylonJS/BabylonNative

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.