tests: the same-site control puts its frame in the shown page; CHANGELOG: 0.50.0's entry is 0.50.1's

The e2e of #451 saw a new "Isolated Web Co" once after a.test/plain -> a.test/same-site ([10878] -> [10878,
11208]). Not a process of an earlier test: it was created after the first read and only this worker's
descendants are counted. It is the top-level navigation: when the old document may enter the back-forward
cache, the browsing context is replaced (mReplaceBrowsingContext, dom/ipc/ProcessIsolation.cpp) and the new
one may be placed in another process of the same site (dom.ipc.processCount.webIsolated = 4). Measured on
firefox-62 (candidate #6, Linux): 0 of 30 runs alone (bfcache on and off), 0 of 57 under 4 workers. The test
was written for the frame, so the frame is now added to the page already shown and the top never navigates:
20 of 20 runs green.

0.50.0 never reached the index, so the changelog gate refused its heading; its entry now opens 0.50.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
feder-crandClaude Opus 5.5 committed 2026-11-11 14:47:54 +01:00
1 parent 2bc12eb80b
commit fef0bc5ea7
2 files changed
+20 -17

No files matched your search

+8 -13
View File
@@ -8,19 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
## [0.50.1] - 2026-11-11
0.50.0 was tagged and never published: its end-to-end gate was red on two tests that counted processes. 0.50.1
is 0.50.0 with those tests corrected, and the first of the two on the index. Everything listed under 0.50.0
ships with it.
### Fixed
- The end-to-end tests that count content processes count the ones that host a site, not every content
process that is new. The engine keeps a pool of preallocated processes and refills it whenever it gets
to it, so a refill landing between two reads looked like a process the test had caused (a same-site
frame, a closed context with a service worker that never stops). Measured on firefox-62: a closed context
leaves no process of its site. On Linux the process is named by the site it hosts; elsewhere these
tests skip.
## [0.50.0] - 2026-11-11
0.50.0 was tagged and never published: its end-to-end gate was red on two tests that counted processes.
0.50.1 is 0.50.0 with those tests corrected.
### Changed
- Engine firefox-62 through invisible-core 62.63.0, which this version pins: firefox-61 plus Fission
@@ -51,6 +40,12 @@ ships with it.
(`geolocation`, `persistent-storage`, `push`, `notifications`, `screen-wake-lock`); any other name
raises `Unknown permission`, as it does there, and a grant with no origin is a grant for every
origin.
- The end-to-end tests that count content processes count the ones that host a site, not every content
process that is new. The engine keeps a pool of preallocated processes and refills it whenever it gets
to it, so a refill landing between two reads looked like a process the test had caused (a same-site
frame, a closed context with a service worker that never stops). Measured on firefox-62: a closed context
leaves no process of its site. On Linux the process is named by the site it hosts; elsewhere these
tests skip.
## [0.49.1] - 2026-11-10
+12 -4
View File
@@ -213,12 +213,20 @@ def test_cross_site_iframe_gets_its_own_process(page, cross_site_loop, engine_di
@pytest.mark.e2e
def test_same_site_other_port_stays_in_process(page, cross_site_loop, engine_dir):
"""Green today, the control: a frame of the page's own site adds no process for a site, and the page stays
in the process it was in."""
"""Green today, the control: a frame of the page's own site adds no process for a site.
The frame is put in the page that is already shown, not reached by a navigation of the top. A top-level
navigation whose old document may enter the back-forward cache replaces the browsing context
(`mReplaceBrowsingContext`, dom/ipc/ProcessIsolation.cpp), and the new one may land in another process of
the same site (`dom.ipc.processCount.webIsolated` is 4): seen once on the e2e of #451, [10878] -> [10878,
11208] after a.test/plain -> a.test/same-site, never in 87 local runs. That is the top's process, not the
frame's; a frame of the page's site stays in the page's process."""
page.goto(cross_site_loop["plain"])
before = quiet(engine_dir)
page.goto(cross_site_loop["same_site"], wait_until="load")
assert wait_for(page, lambda: any(r["path"] == "/report/loaded" for r in cross_site_loop["reports"]))
page.evaluate("(u) => { const f = document.createElement('iframe'); f.id = 's'; f.src = u;"
" document.body.appendChild(f); }", cross_site_loop["leaf"])
assert wait_for(page, lambda: any(r["path"] == "/report/loaded" and r["query"]["path"] == ["/leaf"]
for r in cross_site_loop["reports"]))
after = quiet(engine_dir)
assert after == before, "a same-site frame changed the processes of the sites: %s -> %s" % (sorted(before), sorted(after))