Closed Bug 1797205 Opened 3 years ago Closed 3 years ago

WPT test pages in different origin should be in different processes

Categories

(Core :: DOM: Content Processes, enhancement, P2)

Unspecified
Linux
enhancement

Tracking

()

RESOLVED INVALID

People

(Reporter: chunmin, Unassigned)

References

(Blocks 1 open bug)

Details

D159546 adds a wpt to check the VideoFrame cannot be posted across processes. Surprisingly, the test results in try server show that the WPT pages in different origins are actually in the same process on webrender-enabled Linux and Android machines. IIUC, fission should isolate the pages into the processes dedicated to their origins.

I am not able to reproduce this locally by setting both gfx.webrender.all and fission.autostart to true so it's possible that some settings in CI make that test failed (e.g., using --disable-e10s).

Blocks: 1774302

Webrender is always enabled now (there is only webrender), so DOM: Content Processes might be a better place to start this.

Component: Graphics: WebRender → DOM: Content Processes

Android doesn't use fission by default, and will only use separate processes if it believes you've logged into the site in the past, IIRC.

It may be possible to force android to use strict fission via a pref.

Severity: -- → S4
Type: defect → enhancement
Flags: needinfo?(nika)
Priority: -- → P2
Hardware: x86_64 → Unspecified

(In reply to Randell Jesup [:jesup] (needinfo me) from comment #3)

Android doesn't use fission by default, and will only use separate processes if it believes you've logged into the site in the past, IIRC.

What's the status for Linux? From the test result, the WPT pages in different origins are in the same process on Linux 18.04 x64 WebRender debug machine. Is that expected?

(In reply to C.M.Chang[:chunmin] from comment #4)

(In reply to Randell Jesup [:jesup] (needinfo me) from comment #3)

Android doesn't use fission by default, and will only use separate processes if it believes you've logged into the site in the past, IIRC.

What's the status for Linux? From the test result, the WPT pages in different origins are in the same process on Linux 18.04 x64 WebRender debug machine. Is that expected?

Looking at https://treeherder.mozilla.org/jobs?repo=try&revision=a79cca2d2a75914166164811671fdd562550a448&selectedTaskRun=F8mvStGcShu6XeOV4PrFdg.0 the test seems to fail for linux only when nofis (that is: no fission enabled) ?

(In reply to Jens Stutte [:jstutte] from comment #5)

Looking at https://treeherder.mozilla.org/jobs?repo=try&revision=a79cca2d2a75914166164811671fdd562550a448&selectedTaskRun=F8mvStGcShu6XeOV4PrFdg.0 the test seems to fail for linux only when nofis (that is: no fission enabled) ?

Aha, that explains.

(In reply to Randell Jesup [:jesup] (needinfo me) from comment #3)

Android doesn't use fission by default, and will only use separate processes if it believes you've logged into the site in the past, IIRC.

We don't have even that mode of fission enabled for android yet by default. There are some tests which are run with android fission though. If you need to know about the status of android fission, I'd probably ping :chutten.

The pref to enable is the usual fission.autostart = true and fission.webContentIsolationStrategy = 1 (IsolateEverything https://searchfox.org/mozilla-central/rev/59f0bf3c13dd455d9f5415b89178de701ea6b850/dom/ipc/ProcessIsolation.cpp#62)

Flags: needinfo?(nika)

I am going to close this bug since (1) fission is not yet supported in Android by default (2) nofis means "no fission"

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID

We should probably behave the same way regardless of process isolation? As in, the test should ideally fail even with fission disabled.

Flags: needinfo?(cchang)

D160155 has been added to make sure the test behaves the same even when fission is disabled.

Flags: needinfo?(cchang)
You need to log in before you can comment on or make changes to this bug.