Skip to content

[BUG] navigator.storage.getDirectory() fails in webkit #18235

Open
@kepta

Description

@kepta

Context:

  • Playwright Version: 1.27.1
  • Operating System: Mac
  • Node.js version: 18.7.0
  • Browser: WebKit
  • Extra:

System:

  • OS: macOS 12.3.1
  • Memory: 2.18 GB / 32.00 GB

Binaries:

  • Node: 18.7.0 - /private/var/folders/3c/f3h337b54wj65l4r3l_88l8m0000gn/T/xfs-3785805c/node
  • Yarn: 3.2.2 - /private/var/folders/3c/f3h337b54wj65l4r3l_88l8m0000gn/T/xfs-3785805c/yarn
  • npm: 8.15.0 - ~/.nvm/versions/node/v18.7.0/bin/npm

Languages:

  • Bash: 3.2.57 - /bin/bash

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:

const {chromium, webkit, firefox} = require('playwright');

(async () => {
  const browser = await webkit.launch();
  const context = await browser.newContext();
  const page = await context.newPage();

  await page.goto('http://playwright.dev');

  await page.evaluateHandle(async () => {
    await navigator.storage.getDirectory();
  });
})();

Describe the bug

Calling navigator.storage.getDirectory(); in WebKit causes the following error.

UnknownError: The operation failed for an unknown transient reason (e.g. out of memory).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions