Skip to content

fix(env): detect AppleWebKit instead of just Safari - #3067

Merged
zbynekstara merged 3 commits into
clientIO:masterfrom
zbynekstara:env-tests-applewebkit
Sep 23, 2025
Merged

zbynekstara merged 3 commits into
clientIO:masterfrom
zbynekstara:env-tests-applewebkit

Conversation

@zbynekstara

@zbynekstara zbynekstara commented Sep 22, 2025 •

Copy link
Copy Markdown
Contributor

Description

Builds on top of #2677 (v4.0.4). Instead of checking for Safari (plus iOS), we should check for AppleWebKit minus Chrome.

Motivation and Context

The offending bug (https://bugs.webkit.org/show_bug.cgi?id=268376) also affects browsers using WkWebView, which were previously omitted by the Safari check. The new check identifies:

  1. macOS Safari
  2. any WKWebView (new)
  3. any iOS browser (including Mobile Safari, CriOS, EdgiOS, OPR, FxiOS)

@zbynekstara zbynekstara changed the title fix(env): detect appleWebKit instead of just Safari fix(env): detect AppleWebKit instead of just Safari Sep 22, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates the browser detection logic to check for AppleWebKit instead of just Safari to properly handle WebKit-based bugs across more browsers. This change addresses a WebKit bug that affects not only Safari but also browsers using WKWebView.

  • Renamed isSafari function to isAppleWebKit with improved detection logic
  • Updated all references to use the new function name
  • Modified comments to reflect the broader scope of affected browsers

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/joint-core/src/env/index.mjs Replaced Safari-specific detection with AppleWebKit detection that excludes Chromium-based browsers
packages/joint-core/src/dia/LinkView.mjs Updated function calls and method names to use the new WebKit detection logic

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/joint-core/src/dia/LinkView.mjs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zbynekstara
zbynekstara requested a review from Copilot September 22, 2025 17:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@zbynekstara
zbynekstara merged commit aa66557 into clientIO:master Sep 23, 2025
3 checks passed
@zbynekstara
zbynekstara deleted the env-tests-applewebkit branch September 23, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants