Google Chrome downloads and updates certain features or updates in the background. It is observed that from version 102 onward, there have been more frequent background updates. Google Chrome can initiate these background activities even with the Google Chrome instances launched by Sahi. Consequently, your Sahi Playback will become slow on Google Chrome.
To fix this, follow the steps below
1. Click on the Configure link from the Sahi Dashboard.
2. Click on the passthrough_ws_ssh_domains.txt link. Append the following line and save.
.*optimizationguide[-]pa[.]googleapis[.]com.*
3. Now click on the browser_types.xml link. Search for chrome <browserType> xml and replace it with following xml based on operating system:
3.1. For Windows 32-bit:
<browserType>
<name>chrome</name>
<displayName>Chrome</displayName>
<icon>chrome.png</icon>
<path>$LOCALAPPDATA\Google\Chrome\Application\chrome.exe</path>
<options>--no-default-browser-check --user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options>
<processName>chrome.exe</processName>
<capacity>5</capacity>
</browserType>
3.2. For Windows 64-bit
<browserType>
<name>chrome</name>
<displayName>Chrome</displayName>
<icon>chrome.png</icon>
<path>$ProgramFiles\Google\Chrome\Application\chrome.exe</path>
<options>--no-default-browser-check --user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options>
<processName>chrome.exe</processName>
<capacity>5</capacity>
</browserType>
3.3. For Linux
<browserType>
<name>chrome</name>
<displayName>Chrome</displayName>
<icon>chrome.png</icon>
<path>/usr/bin/google-chrome</path>
<options>--no-default-browser-check --no-first-run --user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options>
<processName>chrome</processName>
<capacity>5</capacity>
</browserType>
3.4. For Mac
<browserType>
<name>chrome</name>
<displayName>Chrome</displayName>
<icon>chrome.png</icon>
<path>open -n -a "Google Chrome.app"</path>
<options>--args --no-default-browser-check --no-first-run --user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options>
<processName>"Google Chrome"</processName>
<capacity>5</capacity>
<force>true</force>
</browserType>
4. STOP Sahi Pro
5. Take a backup of <SahiPro >/userdata/browser/chrome folder. Delete this folder.
6. Restart Sahi Pro.