Skip to content

Commit b93b4c0

Browse files
committed
Revert "chore(config): remove site-per-process disabling"
This reverts commit 212b2f1.
1 parent 212b2f1 commit b93b4c0

File tree

2 files changed

+40
-45
lines changed

2 files changed

+40
-45
lines changed

Cargo.lock

Lines changed: 34 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

headless_browser_lib/src/conf.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use std::sync::atomic::{AtomicBool, AtomicU64};
22

33
/// The performance arg count.
44
#[cfg(not(feature = "physical_gpu"))]
5-
pub(crate) const PERF_ARGS: usize = 97;
5+
pub(crate) const PERF_ARGS: usize = 96;
66

77
/// The performance arg count.
88
#[cfg(feature = "physical_gpu")]
9-
pub(crate) const PERF_ARGS: usize = 95;
9+
pub(crate) const PERF_ARGS: usize = 94;
1010

1111
lazy_static::lazy_static! {
1212
/// The chrome args to use test ( basic without anything used for testing ).
@@ -352,6 +352,7 @@ lazy_static::lazy_static! {
352352
"--disable-libassistant-logfile",
353353
"--ip-protection-proxy-opt-out",
354354
"--unsafely-disable-devtools-self-xss-warning",
355+
"--enable-features=Vulkan,PdfOopif,SharedArrayBuffer,NetworkService,NetworkServiceInProcess",
355356
"--metrics-recording-only",
356357
"--use-mock-keychain",
357358
"--force-color-profile=srgb",
@@ -371,15 +372,13 @@ lazy_static::lazy_static! {
371372
"--disable-oopr-debug-crash-dump",
372373
"--disable-pnacl-crash-throttling",
373374
"--disable-renderer-accessibility",
374-
"--incognito",
375375
&crate::render_conf::RENDER_PROCESS_LIMIT,
376376
"--disable-pushstate-throttle",
377377
"--disable-blink-features=AutomationControlled",
378378
"--disable-ipc-flooding-protection", // we do not need to throttle navigation for https://github.com/spider-rs/spider/commit/9ff5bbd7a2656b8edb84b62843b72ae9d09af079#diff-75ce697faf0d37c3dff4a3a19e7524798b3cb5487f8f54beb5d04c4d48e34234R446.
379379
// --deterministic-mode 10-20% drop in perf
380380
// "--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4",
381-
"--enable-features=Vulkan,PdfOopif,SharedArrayBuffer,NetworkService,NetworkServiceInProcess,IsolateOrigins",
382-
"--disable-features=PaintHolding,HttpsUpgrades,DeferRendererTasksAfterInput,LensOverlay,ThirdPartyStoragePartitioning,IsolateSandboxedIframes,ProcessPerSiteUpToMainFrameThreshold,WebUIJSErrorReportingExtended,DIPS,InterestFeedContentSuggestions,PrivacySandboxSettings4,AutofillServerCommunication,CalculateNativeWinOcclusion,OptimizationHints,AudioServiceOutOfProcess,ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate",
381+
"--disable-features=PaintHolding,HttpsUpgrades,DeferRendererTasksAfterInput,LensOverlay,ThirdPartyStoragePartitioning,IsolateSandboxedIframes,ProcessPerSiteUpToMainFrameThreshold,site-per-process,WebUIJSErrorReportingExtended,DIPS,InterestFeedContentSuggestions,PrivacySandboxSettings4,AutofillServerCommunication,CalculateNativeWinOcclusion,OptimizationHints,AudioServiceOutOfProcess,IsolateOrigins,ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate",
383382
// put these args on the same command for now to prevent empty args cross-platform execution. The args will be one less on gpu enabled builds.
384383
"--enable-unsafe-swiftshader",
385384
"--use-angle=swiftshader"
@@ -482,6 +481,7 @@ lazy_static::lazy_static! {
482481
"--disable-libassistant-logfile",
483482
"--ip-protection-proxy-opt-out",
484483
"--unsafely-disable-devtools-self-xss-warning",
484+
"--enable-features=Vulkan,PdfOopif,SharedArrayBuffer,NetworkService,NetworkServiceInProcess",
485485
"--metrics-recording-only",
486486
"--use-mock-keychain",
487487
"--force-color-profile=srgb",
@@ -501,15 +501,13 @@ lazy_static::lazy_static! {
501501
"--disable-oopr-debug-crash-dump",
502502
"--disable-pnacl-crash-throttling",
503503
"--disable-renderer-accessibility",
504-
"--incognito",
505504
&crate::render_conf::RENDER_PROCESS_LIMIT,
506505
"--disable-pushstate-throttle",
507506
"--disable-blink-features=AutomationControlled",
508507
"--disable-ipc-flooding-protection", // we do not need to throttle navigation for https://github.com/spider-rs/spider/commit/9ff5bbd7a2656b8edb84b62843b72ae9d09af079#diff-75ce697faf0d37c3dff4a3a19e7524798b3cb5487f8f54beb5d04c4d48e34234R446.
509508
// --deterministic-mode 10-20% drop in perf
510509
// "--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4",
511-
"--enable-features=Vulkan,PdfOopif,SharedArrayBuffer,NetworkService,NetworkServiceInProcess,IsolateOrigins",
512-
"--disable-features=PaintHolding,HttpsUpgrades,DeferRendererTasksAfterInput,LensOverlay,ThirdPartyStoragePartitioning,IsolateSandboxedIframes,ProcessPerSiteUpToMainFrameThreshold,WebUIJSErrorReportingExtended,DIPS,InterestFeedContentSuggestions,PrivacySandboxSettings4,AutofillServerCommunication,CalculateNativeWinOcclusion,OptimizationHints,AudioServiceOutOfProcess,ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate",
510+
"--disable-features=PaintHolding,HttpsUpgrades,DeferRendererTasksAfterInput,LensOverlay,ThirdPartyStoragePartitioning,IsolateSandboxedIframes,ProcessPerSiteUpToMainFrameThreshold,site-per-process,WebUIJSErrorReportingExtended,DIPS,InterestFeedContentSuggestions,PrivacySandboxSettings4,AutofillServerCommunication,CalculateNativeWinOcclusion,OptimizationHints,AudioServiceOutOfProcess,IsolateOrigins,ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate",
513511
]
514512
};
515513
}

0 commit comments

Comments
 (0)