Skip to content

[Bug]: NewTab doesn't work properly with Chrome on 1.45 with --disable-web-security #31431

Closed

Description

Version

1.45.0

Steps to reproduce

import { expect, test } from "@playwright/test";

test("1.45 debug", async ({ page }) => {
  await page.goto("https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_target");
  await page.getByText("Accept all & visit the site").click();

  const page1Promise = page.context().waitForEvent("page");
  await page.frameLocator('iframe[name="iframeResult"]').getByRole("link", { name: "Visit W3Schools.com!" }).click();
  const page1 = await page1Promise;
// URL is printed
  console.log(page1.url());
// Expect stuck
  await expect(page1).toHaveURL(/w3schools/, { timeout: 2_000 });
// locator() doesn't work
  await expect(page1.getByText("Learn to Code")).toBeVisible({ timeout: 2_000 });
});

Expected behavior

Works as it worked on 1.44.1

Actual behavior

It gets stuck

Additional context

  • 1.45.0 - built-in chromium 127 fails, Webkit and FF are ok
  • 1.44.1 - built-in chromium 125 ok, Webkit and FF are ok

Environment

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M2
    Memory: 47.66 MB / 16.00 GB
  Binaries:
    Node: 20.14.0 - ~/.volta/tools/image/node/20.14.0/bin/node
    npm: 10.7.0 - ~/.volta/tools/image/node/20.14.0/bin/npm
  IDEs:
    VSCode: 1.90.2 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.45.0 => 1.45.0

UPD:
--disable-web-security

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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