Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Dropbox Tech 9 min read Case study mediumAdept

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

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.

Assumes: HTTP cookiesbrowser automation basics

Related posts

  • Hacking Around Safari's 7-day Cookie Limit

    Artsy Engineering mediumAdept

    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. Artsy works around this by having the client send its consent cookie value to a same-domain Express endpoint, which re-sets a cookie with the same name as a secure server-side cookie with a long maxAge. Safari then keeps the preference past the 7-day limit. The fix is a few lines of code, prompted by a WebKit engineer's note that same-domain secure server-set cookies are exempt from the limit, though the post admits the exact mechanism is not fully understood.

  • Automated Accessibility Testing at Slack

    Slack Engineering mediumAdept

    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. Hooking Axe into Playwright's interaction methods was also ruled out, because Locator auto-waiting only guarantees element readiness, not full-page render. The team instead exposed a `runAxeAndSaveViolations` helper on its custom `slack` fixture, scoped to WCAG 2.1 A/AA, excluding known-issue selectors, and reporting only deduplicated critical violations. Results feed a non-blocking 91-test suite gated by an A11Y_ENABLE flag, with screenshots in the Playwright HTML reporter, daily Buildkite runs alerting into Slack, and a Jira workflow for triage with the accessibility team.

  • Catching Compromised Cookies

    Slack Engineering mediumAdept

    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. Early false positives from clients that never received refreshed cookies were cut by matching IP addresses and by a two-phase, idempotent "session candidate" cookie that is promoted only after the client proves it stored the new value. In-flight request races are handled by ignoring timestamps right after an update. Database reads are skipped while a cookie is freshly issued. High-risk detections, scored using device and network signals, go to the audit log for customers' SIEMs.

  • This Month in Ladybird - September 2026

    Ladybird mediumAdept

    Ladybird spent a week with Trail of Bits engineers, who used frontier models to find bugs and build exploit chains. In response the browser now treats a compromised renderer as untrusted: cookies are handled in the network process, renderers requesting privileged access are killed, macOS and Linux sandboxes are tightened, and cross-site iframes can run in separate processes. Other September work added VideoToolbox hardware decoding in a dedicated media process, fixed timer clamping, hidden-tab throttling and document leaks that let background tabs reach 15 GB, and moved more animations and OffscreenCanvas rendering off the main thread. Speedometer 3 rose about 50% and StyleBench about 80%, alongside force-dark mode, auto-updating filter lists and a crash reporter ahead of alpha.

  • From a long list to a clear signal: baseline-driven accessibility reporting

    trivago tech mediumAdept

    trivago extended its Selenium-based test framework with baseline-driven accessibility reporting built on axe-core-maven-html-selenium. Each violation is fingerprinted by hashing its rule ID, HTML snippet, CSS selector and impact level, with normalization so small DOM or text changes still match. Pull request results are then compared against a baseline generated from main on every merge and classified as new, fixed or persisting. GitHub Actions workflows store baselines and reports with screenshots in a GCP bucket and fail the PR status whenever new issues appear, while persisting debt is handled separately, with the caveat that automation catches only about 30-50% of accessibility issues.

The quest for software engineering knowledge.

Look:
Layout: