Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

isSafari regex check doesn't catch WebKit webview in Tauri browser #7476

Closed
Assignees
camdecoster
@camdecoster

Description

@camdecoster

Description

As discussed in theprivate repo issue plotly/plotly-studio#1123, some logic isn't working properly in the WebKit webview in Tauri because the user agent string regex check that plotly.js performs doesn't return true. We should update the regex check to match in this case.

Steps to reproduce

  • Copy this code into a DevTools or Node console (based onthis plotly.js code):
    letuserAgentString="SOME_STRING";/Version\/[\d\.]+.*Safari/.test(userAgentString);
  • Update the tested string to"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15"
  • Run the test and note that it returns true
  • Update the tested string to"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"
  • Run the test and note that it returns false

Notes

  • There's some discussion of the problem inthis Tauri issue report

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp