---
title: "Testing cookie behavior across hundreds of web surfaces with our in-house auditor"
description: "Dropbox built an automated cookie auditor that uses Playwright to visit its 200+ web surfaces as a fresh, privacy-conscious visitor, running separate US, EU and Global Privacy Control scenarios that record cookies before interaction, decline non-essential cookies via the underlying consent controls (across 22 languages), reload, and verify the preference persists."
url: "https://swe.quest/articles/testing-cookie-behavior-across-hundreds-of-web-surfaces-with-our-in-house-474b16dbccccd373"
canonical: "https://dropbox.tech/security/how-our-inhouse-auditor-tests-cookie-behavior-across-hundreds-of-web-surfaces"
source: "Dropbox Tech"
published: "2026-08-31"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["privacy","testing","browsers"]
---

# Testing cookie behavior across hundreds of web surfaces with our in-house auditor

A post on [Dropbox Tech](https://swe.quest/sources/dropbox.md), published 2026-08-31, 9 min read, Case study. Original: [https://dropbox.tech/security/how-our-inhouse-auditor-tests-cookie-behavior-across-hundreds-of-web-surfaces](https://dropbox.tech/security/how-our-inhouse-auditor-tests-cookie-behavior-across-hundreds-of-web-surfaces)

## Summary

Dropbox built an automated cookie auditor that uses Playwright to visit its 200+ web surfaces as a fresh, privacy-conscious visitor, running separate US, EU and Global Privacy Control scenarios that record cookies before interaction, decline non-essential cookies via the underlying consent controls (across 22 languages), reload, and verify the preference persists. Approved cookies and exceptions live outside the code so the Privacy team can update them without releases, and a companion URL detector deduplicates billions of traffic records into unique paths, then groups pages by consent logic to pick representative URLs. The auditor produces a weekly report separating likely violations from known false positives, and the main lesson is that defining correct behavior, maintaining the page inventory and triaging noise take more work than the browser automation itself.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- HTTP cookies
- browser automation basics

## Keywords

Playwright, Global Privacy Control, Dropbox, cookie banners

## Related posts

- [Hacking Around Safari's 7-day Cookie Limit](https://swe.quest/articles/hacking-around-safari-s-7-day-cookie-limit-511d20c71ebc9e5a.md): Artsy Engineering · 2022-08-23 · Medium · 2 min read · Browsers, Privacy, Frontend, JavaScript
  Safari's Intelligent Tracking Prevention deletes client-side cookies after 7 days, so users in GDPR/CCPA regions get the cookie consent banner again every week.
- [Automated Accessibility Testing at Slack](https://swe.quest/articles/automated-accessibility-testing-at-slack-ada6bed3cb3ffab2.md): Slack Engineering · 2025-01-07 · Medium · 12 min read · Accessibility, Testing, Frontend, CI/CD
  Slack added automated accessibility checks to its desktop end-to-end tests by integrating Axe into Playwright via @axe-core/playwright, after embedding checks in Jest/React Testing Library proved impractical with its custom Jest setup.
- [Catching Compromised Cookies](https://swe.quest/articles/catching-compromised-cookies-83776372ceccd1c9.md): Slack Engineering · 2024-06-24 · Medium · 10 min read · Identity & auth, Threat detection, Application security, System design
  Slack detects stolen session cookies by spotting session forking: a last-access timestamp is stored in both the cookie and the database, and a mismatch on a later request means more than one copy of the cookie is in use.
- [This Month in Ladybird - September 2026](https://swe.quest/articles/this-month-in-ladybird-september-2026-2ff5927acaac0878.md): Ladybird · 2026-09-30 · Medium · 7 min read · Browsers, Sandboxing & isolation, Performance engineering, Memory management, Video & media
  Ladybird spent a week with Trail of Bits engineers, who used frontier models to find bugs and build exploit chains.
- [From a long list to a clear signal: baseline-driven accessibility reporting](https://swe.quest/articles/from-a-long-list-to-a-clear-signal-baseline-driven-accessibility-reporting-076be25a816f999a.md): trivago tech · 2026-03-13 · Medium · 7 min read · Accessibility, Testing, CI/CD, Frontend
  trivago extended its Selenium-based test framework with baseline-driven accessibility reporting built on axe-core-maven-html-selenium.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
