Skip to content

[🐛 Bug]: Chrome 142 blocking local extensions #16540

@mattsmith321

Description

@mattsmith321

Description

Looks like Chrome 142 is now restricting access to the local network. See the following:

This is causing our automated testing solution built on .NET + NUnit + Selenium +Selenium Grid to fail tests that run on Chrome 142. I just saw it pop up this weekend. I'm hoping there are some flags I can add to the code to deal with it. Tried updating to Selenium.WebDriver and Selenium.Support 4.38 (from 4.35) but the issue still persists.

I saw some references to adding a list of IPs to allow but it gets a little tricky with our framework since people can run it from different machines across the network.

Also note that it doesn't throw an error when trying to load the extension via code. It just displays a broken page and the script fails since the fields it needs to interact with do not exist. The Chrome page presented says:

dfkasdlkfladfld is blocked
This page has been blocked by Chrome
ERR_BLOCKED_BY_CLIENT

Reproducible Code

ChromeOptions options = new ChromeOptions();

// Chrome v137 disabled loading unpacked extensions. This argument overrides that.
// See https://github.com/SeleniumHQ/selenium/issues/15788
options.AddArgument("--disable-features=DisableLoadExtensionCommandLineSwitch");

// Add the MultiPass extension to avoid the Windows Basic Authentication prompts
options.AddExtensions(TestContext.CurrentContext.TestDirectory + _config.MultiPassExtensionPath);

ℹ️ Last known working version: Worked fine until Chrome 142

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-gridEverything grid and server relatedC-dotnet.NET BindingsD-chromeI-defectSomething is not working as intendedI-regressionSomething was working but we "fixed" itOS-windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions