Platform

Solutions

Resources

Platform

Solutions

Resources

Platform

Solutions

Resources

Blog

Safari Browser Testing: Common Bugs and How to Test

Adwitiya Pandey

Published on

Safari browser testing

Table of contents

Safari is the browser most enterprise web apps don’t test enough. Its market share looks small until you look at who uses it. Safari is the default browser on iPhone, and the iPhone accounts for a large share of mobile traffic in many Western markets, especially in financial services, healthcare and B2B. On Mac, Safari users often skew towards higher-value customers.

So a Safari bug is rarely just a visual glitch. It’s often a revenue problem hitting the customers who matter most. In this guide, we’ll cover why Safari needs its own testing, how it differs from Chrome, the six most common types of Safari bugs with code fixes, how to debug them, how to test without a Mac on every desk, and what to include in your Safari test plan.


Why Safari Testing Deserves Extra Attention

There are three reasons Safari needs more testing than its market share suggests.


  1. Almost Every Browser on iPhone Uses WebKit

On iPhone and iPad, Apple has long required browsers to use WebKit, the engine behind Safari. So Chrome, Firefox and Edge on iPhone all run on WebKit underneath. Since iOS 17.4, Apple has allowed other engines for users in the EU, but most browsers there still use WebKit.

That means a rendering bug in iOS Safari usually affects every iPhone user, whichever browser icon they tap.


  1. Safari Users Are Often High-Value Users

Safari users tend to include the people enterprise software is built for: senior finance professionals, healthcare staff, creative buyers and executives. A Safari bug in a wealth management dashboard affects a portfolio manager. A Safari bug in a clinical tool affects a consultant making admission decisions. So each broken Safari session can cost more than one on another browser.


  1. New Versions Reach Users Quickly

Major Safari versions arrive once a year, alongside Apple’s autumn iOS and macOS releases, and Apple also ships point releases with new WebKit features and fixes several times a year. Because Safari updates with the operating system on iPhone, most users move to the new version quickly. So if a new Safari version breaks something, it can reach most of your iPhone users within weeks.

Put together, Safari might not be the browser most of your customers use, but it’s often the browser your most valuable customers use. Your testing effort should reflect that.



How Safari is Different from Chrome

Safari isn’t Chrome with a different logo. It’s built on WebKit, which Apple has developed on its own terms for two decades. Five differences explain most Safari bugs:

Difference

What it Means for Testing

A different rendering engine

CSS, fonts, JavaScript behaviour and web APIs all differ from Chrome (Blink) and Firefox (Gecko), sometimes by version and sometimes by Apple’s choice

Intelligent Tracking Prevention (ITP)

Safari blocks third-party cookies by default, splits storage between sites, and can delete storage your scripts wrote after seven days of browsing without the user visiting your site. Login and integration flows that work on Chrome can break

Stricter media rules

Sound can’t play until the user taps or clicks. Videos only autoplay if they’re muted

A changing screen size on iPhone

The visible area changes as the address bar shows and hides while scrolling, which breaks layouts built around 100vh

Updates tied to Apple’s release schedule

New Safari versions arrive with iOS and macOS updates, so changes reach users in waves

That’s why Safari needs its own testing, not just a tick box in a general cross-browser checklist.



iPhone Safari and Mac Safari Aren’t the Same Browser

A common mistake is treating Safari on iPhone and Safari on Mac as one browser with two screen sizes. They share the same engine, but iPhone Safari works under much tighter limits.


iPhone Safari

Mac Safari

Other browsers

Chrome, Firefox and Edge on iPhone all use WebKit too

Other browsers use their own engines

Memory

Strict limits, especially on older iPhones. Heavy pages can crash the tab

Much more memory available

Background tabs

Paused or slowed heavily, which breaks apps that poll for updates

Less aggressive

File uploads

Image uploads open the camera or photo library

A normal file picker

Keyboard

The on-screen keyboard changes the visible area and moves form fields

A physical keyboard

Service workers

More restrictions, especially around installing and updating

Fewer restrictions

Input

Touch

Mouse and trackpad

If you only test Mac Safari, you’ll miss the problems that affect most Safari users, since most Safari traffic comes from iPhones.

If you only test iPhone Safari, you’ll miss Mac-only bugs that affect high-value desktop users. You need both.



Six Types of Safari Bugs, and How to Fix Them


  1. CSS and Layout

Layout bugs are the most visible Safari issues, and usually the easiest to reproduce. Common ones include:

  • The 100vh bug on iPhone: 100vh is calculated as if the address bar is hidden, so when it’s showing, your full-height section spills off the screen.

  • Sticky positioning: position: sticky can behave differently inside nested scrolling areas.

  • Backdrop blur: older Safari versions need the -webkit- prefix for backdrop-filter. Safari 18 and later support it without the prefix.

  • Form controls: date and number inputs look different, and Safari limits how much you can restyle them.

  • Custom scrollbars: scrollbar styling is limited in Safari, especially on iPhone, so designs that depend on it can look different.

The fix for the 100vh bug is to use the newer viewport units, with a fallback for older browsers:

.hero {
  height: 100vh;   /* fallback for older browsers */
  height: 100dvh;  /* adjusts as the address bar shows and hides */
}

.panel {
  -webkit-backdrop-filter: blur(12px);  /* older Safari */
  backdrop-filter: blur(12px);
}
.hero {
  height: 100vh;   /* fallback for older browsers */
  height: 100dvh;  /* adjusts as the address bar shows and hides */
}

.panel {
  -webkit-backdrop-filter: blur(12px);  /* older Safari */
  backdrop-filter: blur(12px);
}
.hero {
  height: 100vh;   /* fallback for older browsers */
  height: 100dvh;  /* adjusts as the address bar shows and hides */
}

.panel {
  -webkit-backdrop-filter: blur(12px);  /* older Safari */
  backdrop-filter: blur(12px);
}
.hero {
  height: 100vh;   /* fallback for older browsers */
  height: 100dvh;  /* adjusts as the address bar shows and hides */
}

.panel {
  -webkit-backdrop-filter: blur(12px);  /* older Safari */
  backdrop-filter: blur(12px);
}

Test layouts on iPhone with the address bar both showing and hidden, and don’t rely on styling Safari doesn’t support.


  1. JavaScript and Web APIs

These bugs are more dangerous, because the code often looks fine and passes checks, then breaks only in Safari.

  • Date parsing: dates written in non-standard formats, like "2024-09-15 14:30", may work in Chrome but fail in Safari. Always use the ISO format with a T, like "2024-09-15T14:30".

  • Newer JavaScript features: make sure your build tools still support the older Safari versions your customers use.

  • Internationalisation: some Intl options, like formatRange and certain date formats, behave differently across Safari versions.

  • Service workers: installing, updating and intercepting requests can behave differently from Chrome.

  • WebRTC: audio and video calls can behave differently, which affects real-time apps.

// Risky: non-standard format, may return Invalid Date in Safari
const meeting = new Date("2024-09-15 14:30");

// Safe: ISO 8601 format works in every modern browser
const meeting = new Date("2024-09-15T14:30:00");
// Risky: non-standard format, may return Invalid Date in Safari
const meeting = new Date("2024-09-15 14:30");

// Safe: ISO 8601 format works in every modern browser
const meeting = new Date("2024-09-15T14:30:00");
// Risky: non-standard format, may return Invalid Date in Safari
const meeting = new Date("2024-09-15 14:30");

// Safe: ISO 8601 format works in every modern browser
const meeting = new Date("2024-09-15T14:30:00");
// Risky: non-standard format, may return Invalid Date in Safari
const meeting = new Date("2024-09-15 14:30");

// Safe: ISO 8601 format works in every modern browser
const meeting = new Date("2024-09-15T14:30:00");

The fix is to test JavaScript end to end in Safari, not just with unit tests, especially for anything to do with dates, times, languages, storage or background work.


  1. Forms and Input

Forms are where Safari’s design choices show up most:

  • Date fields open the iPhone’s own date picker, not your custom JavaScript one.

  • Image upload fields open the camera or photo library instead of a file picker.

  • Autofill for saved passwords and addresses follows Apple’s rules, which don’t always match your autocomplete settings.

  • Validation messages use Safari’s styling, which you can’t fully change.

  • Number fields can behave unexpectedly on iPhone depending on how they’re set up.

The fix is to test forms on real iPhones with realistic data, not just emulators, because the keyboard, camera, photo library and autofill all depend on the real operating system.


  1. Storage, Cookies and ITP

ITP has the biggest effect on how you build your app, because no other major browser is quite as strict:

  • Storage your scripts write, like localStorage and IndexedDB, can be cleared after seven days of browsing without a visit to your site.

  • Third-party cookies are blocked by default.

  • Storage is split by the site the user is on.

  • Single sign-on that hops between domains can break in Safari while working fine in Chrome.

The fix is to design around ITP, not against it. Use first-party cookies set by your server, with the right attributes:

For the rare cases where you really need cross-site access, use the Storage Access API, and build login flows that don’t rely on third-party cookies.


  1. Media and Autoplay

Audio and video follow stricter rules in Safari:

  • Sound can’t play until the user taps or clicks something.

  • Videos only autoplay if they’re muted, and users can change autoplay settings.

  • Picture-in-picture and fullscreen behave differently on iPhone, and on iPhone fullscreen mostly works for video only.

  • Some codecs aren’t supported in every Safari version.

const audioContext = new AudioContext();

// Safari keeps audio suspended until the user interacts
document.querySelector("#play").addEventListener("click", async () => {
  if (audioContext.state === "suspended") {
    await audioContext.resume();
  }
  playSound();
});
const audioContext = new AudioContext();

// Safari keeps audio suspended until the user interacts
document.querySelector("#play").addEventListener("click", async () => {
  if (audioContext.state === "suspended") {
    await audioContext.resume();
  }
  playSound();
});
const audioContext = new AudioContext();

// Safari keeps audio suspended until the user interacts
document.querySelector("#play").addEventListener("click", async () => {
  if (audioContext.state === "suspended") {
    await audioContext.resume();
  }
  playSound();
});
const audioContext = new AudioContext();

// Safari keeps audio suspended until the user interacts
document.querySelector("#play").addEventListener("click", async () => {
  if (audioContext.state === "suspended") {
    await audioContext.resume();
  }
  playSound();
});

The fix is to start audio and video from a user action, test on real iPhones, and never assume autoplay will just work.


  1. Performance and Memory

iPhone Safari has hard limits on memory and timers that desktop developers rarely hit:

  • Tabs that run for a long time can crash on iPhones with less memory.

  • JavaScript in background tabs is slowed down heavily, which breaks apps that check for updates on a timer.

  • Service workers are paused more often in the background.

The fix is to test on realistic devices, especially older iPhones your customers still use, and design for those limits rather than for a powerful desktop.



How to Debug Safari Bugs

You can’t fix a Safari bug you can’t reproduce. Here are the main tools:

Tool

What It’s For

Notes

Safari Web Inspector

Safari’s version of Chrome DevTools

On Mac, turn on the Develop menu in Safari settings. For iPhone, connect it to a Mac with a cable and turn on Web Inspector in the iPhone’s Safari settings

Responsive Design Mode

Quickly checking iPhone screen sizes on a Mac

It doesn’t copy iPhone memory limits, system features or the exact WebKit version, so it’s not a substitute for real devices

Source maps and error tracking

Making sense of Safari errors

Safari’s error messages can be less detailed than Chrome’s, so good error capture matters more

Safari Technology Preview

Spotting problems before the next Safari release

It gets upcoming WebKit changes early, so you can catch issues before customers do

Debugging Safari takes a bit more set-up than Chrome. But teams that use these tools routinely find Safari bugs early, rather than from support tickets.



How to Test Safari Without a Mac on Every Desk

If your engineers use Linux or Windows laptops and your test setup runs in the cloud, you still need a way to test Safari at scale.

Option

Pros

Cons

Cloud device grids

Remote access to real iPhones and Macs for manual and automated testing, with no hardware to manage

Costs scale with usage

Your own device lab

Full control and fast response

You have to buy, update and maintain the devices

macOS virtual machines

Useful for some automated testing

Apple’s licence only allows macOS virtual machines on Apple hardware, so you still need Macs

Grids built into your test platform

Safari testing without managing any devices, alongside your other browsers

Depends on the browsers and versions your platform supports

Most enterprises combine options. A small set of in-house devices covers exploratory testing and tricky edge cases, and a cloud grid covers automated testing at scale.



What to Include in Your Safari Test Plan

You don’t need to test every Safari version equally. Here’s a practical Safari test matrix:

Target

Testing Depth

Why

Latest Safari on Mac

Full

Most of your current Mac users

Latest Safari on iPhone

Full

Most of your Safari traffic

Previous major Safari on Mac and iPhone

Smoke tests

Customers who haven’t updated yet

Safari on the latest iPad

Functional

Different screen sizes and layouts

Safari on older iPhones with less memory

Performance

Memory limits that crash heavy pages

Safari Technology Preview

Regression

An early warning of upcoming changes

This list is shorter than a full cross-browser matrix, because Safari versions differ from each other less than Safari differs from Chrome. But iPhone and Mac Safari still need testing as separate browsers.

For the wider picture across Chrome, Edge, Firefox and Safari, see our roundup of the best cross-browser testing tools.



Why AI-Written Code Makes Safari Bugs More Likely

AI coding assistants tend to write code that works in Chrome first. That’s because the code they learned from, like Stack Overflow answers and GitHub projects, was mostly tested in Chrome.

So AI-written code can:

  • Use features Safari doesn’t support yet, because Chrome already does

  • Skip the -webkit- prefix where older Safari versions still need it

  • Use date formats that work in Chrome but not Safari

  • Ignore ITP, building storage that breaks after seven days of inactivity, a bug you’ll never see in development

  • Assume Chrome’s autoplay rules, so sound or video fails silently on iPhone

The answer isn’t to stop using AI coding tools. It’s to test in Safari on every release, so these problems get caught before customers find them.



Where Virtuoso QA Fits

Virtuoso QA runs the same tests across Safari, Chrome, Edge and Firefox, using integrated grid providers, so your team doesn’t have to manage any devices. Tests can run across 2,000+ browser and OS combinations, including Safari on Mac and mobile Safari.

  • One test for every browser: You write the journey once in plain English, and the same test runs in Safari and every other browser, without separate scripts for each.

  • Fixes you approve: When a front-end change breaks a step, Virtuoso QA suggests a fix for your team to accept or reject, so Safari tests don’t fail every time the UI is refactored.

  • Clear failure details: When a Safari run fails, you get the failing step, screenshots and logs, so you can quickly compare it with the same step in Chrome and see whether the problem is Safari-specific.

  • Safari in your pipeline: Tests run from Jenkins, Azure DevOps or GitHub Actions, so Safari issues are caught before a release ships.

  • Functional, visual and API checks together: One test can check the screen, the layout and the API responses in the same Safari session.

To see how Virtuoso QA runs the same tests across Safari and every other browser you support, take a look at cross-browser testing.



Safari Testing Checklist

  • Your test plan covers the current and previous major Safari versions on Mac and iPhone

  • You test iPad Safari separately from iPhone Safari

  • Older iPhones with less memory are included for performance-heavy apps

  • Date and time handling is tested in Safari with realistic formats

  • Storage and login flows are tested against ITP, not Chrome behaviour

  • Audio and video are tested with Safari’s user action and autoplay rules

  • Forms are tested on real iPhones, not just simulators

  • Service worker installs and updates are tested on iPhone Safari

  • Safari Technology Preview is part of your regression testing

  • Visual checks cover iPhone Safari with the address bar showing and hidden

  • Safari failures come with enough detail to diagnose quickly

  • Safari tests run in your CI/CD pipeline and block releases when they fail



Related Reads

Safari Browser Testing FAQs

Why is Safari testing important?

Do all iPhone browsers use Safari?

What are the most common Safari bugs?

Can you test Safari without a Mac?

Is iPhone Safari different from Mac Safari?

How do you debug Safari on iPhone?

Written by

Adwitiya Pandey

Senior Test Evangelist

Adwitiya works directly with QA teams adopting the platform and turns what he sees into practical guides on test design, regression strategy and keeping coverage honest.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA