---
title: "Growing Pains: Migrating Slack’s Desktop App to BrowserView"
description: "Slack rewrote its Electron desktop app (Slack 3.0) to replace the buggy Chromium webview, which sometimes failed to render after being hidden, with BrowserView, a window-like API that can only be created from the main process."
url: "https://swe.quest/articles/growing-pains-migrating-slack-s-desktop-app-to-browserview-f50a911d01b50f04"
canonical: "https://slack.engineering/growing-pains-migrating-slacks-desktop-app-to-browserview/"
source: "Slack Engineering"
published: "2017-10-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["frontend","refactoring","typescript","javascript","testing"]
---

# Growing Pains: Migrating Slack’s Desktop App to BrowserView

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2017-10-30, 11 min read, Case study. Original: [https://slack.engineering/growing-pains-migrating-slacks-desktop-app-to-browserview/](https://slack.engineering/growing-pains-migrating-slacks-desktop-app-to-browserview/)

## Summary

Slack rewrote its Electron desktop app (Slack 3.0) to replace the buggy Chromium webview, which sometimes failed to render after being hidden, with BrowserView, a window-like API that can only be created from the main process. A per-process Redux store synchronized via electron-redux IPC kept actions process-agnostic, redux-observable epics acted as a cross-process event bus for side effects, and TypeScript made the large refactor safe. Moving the lightweight 'slim-Slack' pages for unloaded workspaces into the main process cut process count and memory. The team reused over 70% of the existing code and doubled test coverage, and the post includes examples of testing epics with marble diagrams.

Written by swe.quest, not by the author.

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

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- Electron main/renderer processes
- Redux
- RxJS Observables

## Keywords

Electron, BrowserView, webview, Redux, electron-redux, redux-observable, RxJS, TypeScript

## Related posts

- [Introducing the Replit Desktop App](https://swe.quest/articles/introducing-the-replit-desktop-app-991be13f80ab4152.md): Replit · 2023-09-14 · Medium · 6 min read · Developer tools, JavaScript, CI/CD, Deployment
  Replit now ships a native desktop app for macOS, Windows and Linux, centered on the IDE workspace, with multiple windows, editor shortcuts the browser would intercept (Cmd/Ctrl+T/W), deep linking and native Chromium devtools.
- [Why the big rewrite?](https://swe.quest/articles/why-the-big-rewrite-ec307a4c7f73f459.md): Zed · 2024-01-23 · Easy · 21 min read · Rust, Frontend, Refactoring & migrations, Developer tools
  Zed rewrote its Rust UI framework from GPUI 1 to GPUI 2 because the original design blocked fast UI work: a Flutter-style constraints-down/sizes-up layout model, styles split between Rust element code and TypeScript-generated JSON "themes" loaded at runtime, model code entangled with presentation (a legacy of an early Electron/JSON architecture), and weakly typed geometry (raw f32s and usizes).
- [Shopify’s platform is the Web platform](https://swe.quest/articles/shopify-s-platform-is-the-web-platform-7efe3322420f447d.md): Shopify Engineering · 2023-07-26 · Medium · 10 min read · Frontend, Browsers, React, Developer tools, E-commerce
  Remix is now Shopify's recommended framework for building Admin apps, backed by a rewritten, final version of App Bridge that makes cross-origin iframes behave like a normal web environment.
- [Porting a cross-platform GUI application to Rust](https://swe.quest/articles/porting-a-cross-platform-gui-application-to-rust-ea27ecd8be540e13.md): Mozilla Hacks · 2024-04-23 · Medium · 20 min read · Rust, Frontend, Refactoring & migrations, Testing
  Firefox's crash reporter was rewritten in Rust, replacing three separate native GUI implementations (Win32, GTK, macOS) and their C++/Objective-C glue, which had no test suite, with a small custom UI abstraction.
- [How AI-assisted development helped us build the new Dropbox experience](https://swe.quest/articles/how-ai-assisted-development-helped-us-build-the-new-dropbox-experience-87aa82f0afa45830.md): Dropbox Tech · 2026-11-05 · Easy · 8 min read · AI for coding, Frontend, React, Accessibility, Testing
  Dropbox shipped its new AI-powered experience on a fixed launch deadline by using AI coding agents to handle integration, accessibility and test work.

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)
