browser design · lesson 1 of 6 · sources checked 2026-11-20
engines and the process model
This lesson shows the main browser engines, the processes of a browser, and why the browser build sets the TLS form of a connection.
status of this lesson: from a public sourcepurpose
A browser is not one program. Its engine draws the page and runs the scripts, but a different part of the browser opens the connection. Thus a client can claim one browser in its headers and still show the transport fingerprint of a different browser.
objectives
- Name the main browser engines and the JavaScript engine of each one.
- Describe the processes of a browser and the signals that each process gives.
- Explain why the network part of a browser, not the render engine, sets the transport form.
- Identify a mismatch between the browser that a client claims and its transport form.
new terms
- engine
- The part of a browser that parses, lays out, and renders a page and runs its scripts.
- transport fingerprint
- A normalized string that a server computes from the TLS handshake or the HTTP/2 preface of a client.
- browser build
- A browser binary that a tool ships or patches.
- signal
- One observed value that a detector uses as evidence.
- render
- To build the visible page from HTML, CSS, and scripts.
- TLS handshake
- The exchange of messages that agrees on keys and parameters before encrypted data flows.
- TLS stack
- The TLS software of a client. It builds the handshake and sets the TLS form of the connection.
- ClientHello
- The first TLS message from the client, which lists its versions, cipher suites, and extensions in cleartext.
- milestone
- One numbered major release of a browser.
- release cadence
- The time between two milestone releases of a browser.
- transport baseline
- The recorded transport fingerprint of one named browser release, with its date and its source.
how it works
A browser build is a set of parts that work together. Each part gives a different signal to a site. The method of this course has two steps:
- Select an engine for the task.
- Predict the signals that the choice sets, before the first run.
the engines
Three engine families make the main browsers. Each family has a render engine and a JavaScript engine:
| browser | render engine | javascript engine |
|---|---|---|
| Chrome and other Chromium browsers | Blink | V8 |
| Firefox | Gecko | SpiderMonkey |
| Safari | WebKit | JavaScriptCore |
Each source of the table is a statement of a project about its own browser or engine: claim of a company
- Chromium names Blink as the rendering engine of Chromium Chromium, source 1.
- The V8 project states that Chrome and Node.js use V8 V8 project, source 2.
- Mozilla states that Firefox uses SpiderMonkey Mozilla, source 3.
- Apple states that Safari uses WebKit Apple, source 4. JavaScriptCore is the built-in JavaScript engine of WebKit WebKit project, source 5.
In my model, Gecko is the render engine of Firefox.
A page script can see the JavaScript engine in the text of an error. For example, V8 gives the template Cannot read properties of % (reading '%') for a read of a property of undefined V8, source 6. A different engine can give a different text for the same fault.
the processes
A modern browser runs in many processes. Chromium documents these parts Chromium, source 7: claim of a company
- The browser process runs the user interface and manages the other processes.
- Renderer processes handle web content.
- A separate GPU process, a network service, and a storage service do other work.
- The only access of a renderer to the network is through the network service.
claim of a company Mozilla documents a similar plan for Firefox Mozilla, source 8. Its parent process holds the core functions. Its content processes load web content, and only they and the parent process can run JavaScript. Its GPU process does the compositing.
Each process gives different signals to a page. For example, a page script runs in a renderer process. But the WebGL renderer string that it reads comes from the GPU path of the host.
the network part sets the transport form
The renderer does not open the connection. Thus the TLS handshake and the HTTP/2 settings come from the network code of the build, not from the render engine. The TLS stack of each browser family is different.
Mozilla and Apple state the TLS stack of their own browsers: claim of a company
- Mozilla states that Firefox uses NSS, an open-source set of crypto libraries with TLS Mozilla, source 9.
- Apple states that Safari uses the TLS of iOS, iPadOS, and macOS Apple, source 10.
A WebKit build on Linux has the render engine of Safari, but not its TLS stack.
claim of a company Microsoft states that the WebKit of Playwright comes from the WebKit main branch, and that macOS gives the result nearest to Safari Microsoft, source 11.
example A client sends the user agent of Safari. Its ClientHello comes from a WebKit build on Linux. The ClientHello is not the ClientHello of Safari on macOS.
the build follows the release
The transport form can change with each milestone.
claim of a company Chromium states that Chrome ships a new milestone to the stable channel every two weeks Chromium, source 12. This interval is the release cadence of Chrome.
Thus a transport baseline has a date and a release. For example, a baseline of one milestone can be wrong for the next milestone.
the claim and the transport form
A detector can compare the browser that the headers claim with the transport form. This test is cheap, because the server has both values before the page loads.
example For example, the User-Agent header claims Firefox, and the ClientHello has the form of a Chromium build. The server sees this mismatch on the first request.
In my model, an engine is not a weak or a strong choice by itself. A detector compares each client with the clients of its claimed browser. Thus the choice of engine is also a choice of the group of clients that a detector compares you with.
the two sides
| automation side | detection side |
|---|---|
| The engine choice fixes the TLS and HTTP/2 form of each connection. The render engine and the network code come together in one build. A change of the user agent does not change the transport form. | A mismatch between the claimed browser and the transport form is a cheap test of two values. The server sees both values on the first request, before a page script runs. |
design decisions
| option | gain | cost | when it is correct |
|---|---|---|---|
| A Chromium build with Blink and V8 | The render engine, the JavaScript engine, and the network code come from one project. | The transport form changes with each milestone. A baseline must follow the build. | Tasks that must have the behavior of a Chromium browser |
| A Firefox build with Gecko and SpiderMonkey | The TLS stack is NSS, and the form agrees with a Firefox user agent. | The automation tools of a Firefox build can differ from those of Chromium. | Tasks that must have the behavior of Firefox |
| A WebKit build on Linux | It shows the layout and the scripts of WebKit in your lab. | It does not have the TLS stack of Safari. A Safari user agent gives a mismatch. | Tests of WebKit page behavior in your own lab only |
| A record of each build with each result | You can find the build that changed a signal. | Each result must store the build and its milestone. | Each run of a measurement |
diagram
the processes of a browser and the signals that a site can read from each one
- Browser processRuns the user interface and manages the other processes. Signals: the window size and the launch options of the build.
- Renderer processRuns the render engine and the JavaScript engine of the page. Signals: the page values, the error texts of the engine, and timing.
- GPU processDraws and composites the page with the GPU path of the host. Signals: the WebGL renderer string and the canvas output.
- Network serviceOpens each connection for the renderer. Signals: the TLS ClientHello, the HTTP/2 settings, and the header order.
failure modes
| problem | cause | correction |
|---|---|---|
| A test expects the transport form of Safari from a WebKit build on Linux. | The TLS stack belongs to the platform, not to the render engine. | Predict the transport form from the build and its platform, not from the engine name. |
| A transport baseline does not agree with a new run. | The browser is now on a newer milestone. | Record the build and the milestone with each baseline. Make a new baseline after each update. |
| A result does not show which part of the browser gave a signal. | The record has the page values only. | Record the build, the platform, and the launch options with each result. |
| A change of the user agent gives more refusals, not fewer. | The headers claim a browser that the transport form does not agree with. | Keep the claimed browser and the build of the same family in your lab tests. Record both. |
check questions
Name the render engine and the JavaScript engine of Chrome, Firefox, and Safari.
sample answer
Chrome uses Blink and V8. Firefox uses Gecko and SpiderMonkey. Safari uses WebKit and JavaScriptCore.
Describe the browser process, the renderer process, the GPU process, and the network service of a Chromium browser. Give one signal that each one gives to a site.
sample answer
The browser process runs the user interface and manages the other processes. It sets the window size. A renderer process runs the page scripts, and the error texts of its JavaScript engine show to the page. The GPU process gives the WebGL renderer string. The network service opens the connections and sends the ClientHello.
Explain why a WebKit build on Linux does not send the ClientHello of Safari on macOS.
sample answer
The renderer does not open the connection. The network code of the build sends the TLS handshake. Safari uses the TLS of the Apple platforms, and a WebKit build on Linux does not have that TLS stack.
Which client shows a mismatch between the claimed browser and the transport form?
- A Firefox build that claims Firefox
- A Chromium build that claims Firefox
- A Chromium build that claims Chrome
answer
b. A Chromium build that claims Firefox
The transport form comes from the network code of the build. A Chromium build sends a Chromium form, and a Firefox claim does not agree with it.
When can a server see a mismatch between the User-Agent header and the transport form?
- Only after a page script runs
- Only after a challenge
- On the first request
answer
c. On the first request
The server has the ClientHello and the headers of the first request. It does not have to wait for a page script.
exercise
exercise Do this task on paper or in a text file, with synthetic records only. Do not send a request to a site.
- Write four synthetic client records. Each record has a claimed browser and a build with its platform.
- Make record A: claimed Firefox, a Firefox build on Linux.
- Make record B: claimed Safari, a WebKit build on Linux.
- Make record C: claimed Chrome, a Chromium build on Linux.
- Make record D: claimed Firefox, a Chromium build on Windows.
- For each record, write the family of the transport form that the build sends.
- Mark each record "agrees" or "mismatch".
sample answer
This sample answer uses the four synthetic records only.
Record A agrees, because a Firefox build sends the TLS form of NSS. Record B is a mismatch, because a WebKit build on Linux does not have the TLS stack of Safari. Record C agrees, because the claim and the build are both of the Chromium family. Record D is a mismatch, because the transport form is that of a Chromium build. A detector sees records B and D on the first request.
sources
- Blink (rendering engine), Chromium, documentation, read 2026-11-20
- V8 JavaScript engine, V8 project, documentation, read 2026-11-20
- SpiderMonkey, Mozilla, documentation, read 2026-11-20
- WebKit, Apple, documentation, read 2026-11-20
- JavaScriptCore, WebKit project, documentation, read 2026-11-20
- message-template.h, V8, source code, read 2026-11-20
- Multi-process Architecture, Chromium, documentation, read 2026-11-20
- Process Model, Mozilla, documentation, read 2026-11-20
- Overview of NSS, Mozilla, source code, read 2026-11-20
- TLS security, Apple, documentation, read 2026-11-20
- Browsers, Microsoft, documentation, read 2026-11-20
- Chrome release cycle, Chromium, documentation, read 2026-11-20
- My model of the processes of a browser and the signals of each process, 2026-11 (not public).