跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Apple] Safari 的 bug 真是茫茫多

发表于

自己做了个小的 SaaS 产品,PPResume,之后又花了一些精力改进了注册登录的流程。上个月开始发现大概 1% 的用户登录时会出现 app crash 的情况,查了下 user agent ,发现全部是 Safari ,而且限定是 Safari 17 (不太确定 Safari 16 有没有这个问题,手头没 Safari 16 的环境),issue

花了好几天的时间调试这个问题,最终发现这个似乎是 Safari 自身的一个 cookie 有关的 bug ,还是很诡异:

  • Safari 15 没有问题
  • Safari 17 ,macOS/iOS 都有这个问题
  • http/https 环境中报的错误也不一致

网上的一些资料:

另外发现就是 Safari 的 devtools 相较于 Firefox 也太弱了,相较于 Chrome 就不能比了……

  • devtools 中没有办法 unregister 一个 service worker
  • network panel 中偶尔会吞请求,有些请求在 chrome devtools 中可以看到但是 safari 中就是看不到。

当然,除了我遇到的这个 cookie 有关的问题,网上还有别的 bug ,比如这个:

再就是写的东西基本上都要在 Safari 上单独测,因为经常会出现布局错位的问题。

唉,说多了都是泪,难怪有人说 Safari 是当代的 IE 6……

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.