Skip to content

[Bug]: Playwright's webkit won't honor content-disposition on navigation #34076

Open
@kblok

Description

@kblok

Version

1.49.0

Steps to reproduce

You don't need to write any code. This URL https://storage.googleapis.com/mabl-dev-debugging-public/attachment-disposition.gif takes you to a gif with content-disposition attachment.

Most browsers download that file:

  • Safari on macOS.
  • Chrome on macOS.
  • MS Edge on Ubuntu.
  • Epiphany on Ubuntu

But playwright's webkit shows the gif instead of downloading it.
There was an issue reported about this a few years ago #20089.

Expected behavior

I expect the gif to be downloaded.

Actual behavior

The gif is shown in the browser, so my download event will not be triggered.

Additional context

No response

Environment

System:
    OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    Memory: 6.48 GB / 15.32 GB
    Container: Yes
  Binaries:
    Node: 20.6.1 - ~/.nvm/versions/node/v20.6.1/bin/node
    npm: 9.8.1 - ~/.nvm/versions/node/v20.6.1/bin/npm
  Languages:
    Bash: 5.1.16 - /usr/bin/bash

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions