Skip to content

[Chrome] Image download fails with "Failed - Blocked" with no-large-media enabled with small max size #2813

@rctdude2

Description

@rctdude2

Describe the issue

When no-large-media is enabled, attempting to download an image with a filesize greater then the max size specified in uBlock fails with a "Failed - Blocked" error. uBlock DOES NOT block the image when accessed directly, only if you attempt to download it.
This only appears to happen in Chrome, as I don't recall this happening in Firefox.

One or more specific URLs where the issue occurs

Any image with a filesize greater than the max size works.
Example: https://konachan.net/post/show/232141/

Steps for anyone to reproduce the issue

For the example image above:

  1. Enable blocking large media elements with a small max size (e.g. 2048, but anything works as long as it's less than 7MB).
  2. Go to link above, see that the preview image loads fine. (Note: clicking on "View larger version" on the message at the top will work as it loads the smaller JPG file, not the larger PNG file).
  3. In the sidebar, under options, click "Download PNG"; see that full size image loads fine when accessed directly.
  4. Attempt to save image. Download fails with "Failed - Blocked" error. Disabling uBlock/no-large-media fixes issue.

Your settings

  • Notably, no-large-media enabled with max size set to 2048kb
  • OS/version: Windows 7
  • Browser/version: Chrome 59.0.3071.115
  • uBlock Origin version: 1.13.8
Your filter lists

Everything but experimental, unbreak, AAK, EasyList w/o elem, uBlock protector, merged ultimate, and regionals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions