microsoft / microsoft/playwright-java

[Bug]: Edge channel browser process crashes/closes page context during cross-origin SAML/OIDC redirect in v1.62.0

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

Chưa có ai nhận issue này.

Ngôn ngữ chính
Java
Star
1.6k
Fork
298
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
14

Mô tả

Version

1.62.0

Steps to reproduce
  1. Configure Playwright 1.62.0 in Java using the Microsoft Edge channel:
BrowserType.LaunchOptions launchOptions = new BrowserType.LaunchOptions()
        .setHeadless(false)
        .setChannel("msedge");
  1. Navigate to an enterprise application URL protected by an OIDC / SAML 2.0 gateway (IBM Security Access Manager integrated with Microsoft Entra ID / Azure AD).

  2. Fill in user credentials and submit the form.

  3. On the Entra ID "Keep Me Signed In" (KMSI) screen (login.microsoftonline.com/kmsi), click the final submit button (#idSIButton9).

  4. Observe the browser context behavior as Entra ID executes the top-level POST redirect back to the application's OIDC authorization endpoint (/oidc/endpoint/default/authorize).

Expected behavior

The Edge browser tab should process the top-level OIDC authorization redirect cleanly, remain open, and navigate to the target application URL.

Actual behavior

During the SAML/OIDC POST redirect handoff immediately following the KMSI submission, the active browser page target closes unexpectedly (PageImpl.didClose event fires). Any subsequent Playwright navigation waiter or frame listener fails immediately with:
com.microsoft.playwright.PlaywrightException: Target page, context or browser has been closed

Note: This failure is isolated strictly to the Edge channel binary on 1.62.0. Running the exact same test flow on 1.62.0 using bundled Chromium, Google Chrome (chrome), or Firefox (firefox) works as expected without closing the page target.

Additional context
  • Regression Window: Works cleanly in Playwright 1.59.0 (all channels). Fails in 1.62.0 when using setChannel("msedge").

  • Telemetry Observation: Console logs show Microsoft BSSO telemetry attempting native broker calls prior to the crash: BSSO Telemetry: {"result":"Error","error":"bssoNotSupported"... "window.navigator.msLaunchUri is not available"}.

Trace Snippet:

[WARN] Redirect to: https://login.microsoftonline.com/kmsi
[WARN] Redirect to: https://miloginwidev.michigan.gov/oidc/endpoint/default/authorize...
[WARN] Page closed from thread: main
    at com.microsoft.playwright.impl.PageImpl.didClose(PageImpl.java:255)
    at com.microsoft.playwright.impl.PageImpl.handleEvent(PageImpl.java:242)
    at com.microsoft.playwright.impl.Connection.dispatch(Connection.java:314)
    at com.microsoft.playwright.impl.FrameImpl.waitForURLImpl(FrameImpl.java:1044)
    at com.microsoft.playwright.impl.PageImpl.waitForURL(PageImpl.java:1647)
com.microsoft.playwright.PlaywrightException: Target page, context or browser has been closed
  • Due to state government security policies and internal network constraints, live test credentials and internal domain URLs cannot be publicly provided.
Environment
  • Playwright Version: 1.62.0
  • Operating System: Windows 11
  • Browser: Microsoft Edge (Channel: msedge) > playwright chromium v1234
  • Language/JDK: Java 17

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Bắt đầu với cấu hình khởi chạy Java sử dụng setChannel("msedge") và tái hiện luồng chuyển hướng OIDC/SAML thông qua màn hình KMSI của Entra ID. So sánh Edge 1.62.0 với Chromium đi kèm, Chrome, Firefox và Playwright 1.59.0, sử dụng trace PageImpl.didClose làm tín hiệu lỗi. Hoàn tất khi trang Edge vẫn mở và đến được ứng dụng đích sau khi chuyển hướng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
testing-qa
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

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.