Skip to content

[Bug]: Disabling the "Block insecure private network requests" experiment in Google Chrome is not effective. #30536

Description

@406722575

Version

1.43.0

Steps to reproduce

Expected behavior

After setting the experimental items to "disabled" in chrome://flags/, they will take effect when using Playwright Codegen.

Actual behavior

In Google Chrome, I tried to disable the "Block insecure private network requests" experimental feature. By disabling this, a pop-up should appear when my project submits a form, but I have not seen the pop-up after trying several methods.

1、I set up Playwright's built-in Chromium browser by following these steps:

1)Open Google Chrome, enter and visit the URL address chrome://flags/#block-insecure-private-network-requests.
2)Type "Block insecure private network requests" in the search box to quickly find this experiment item.
3)Change the setting of this experiment item to "Disabled".
4)lose Google Chrome and then reopen it to make the changes effective.
After setting up, I started the project with playwright codegen xxx, submitted the form without seeing a pop-up, and checked that the state of block-insecure-private-network-requests in the browser was still default.
PixPin_2024-04-25_14-25-53

2、In the project root directory, I created a conftest.py file and overrode the browser_type_launch_args method, but still, there was no effect. Perhaps there is an issue with my settings.
PixPin_2024-04-25_15-06-37

Additional context

No response

Environment

System:
    OS: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions