Skip to content

Chrome 83 download from sandboxed iframes breaks save() functions #1443

Closed
@jareddonovan

Description

@jareddonovan

Nature of issue?

  • Found a bug

Details about the bug:

In Chrome 83, download from sandboxed iframes was removed. This prevents functions such as image.save(), saveCanvas() or saveFrames() from working. According to the Chrome status page below, a flag on the embedded iframe is required to allow this:

chromestatus.com/feature/5706745674465280

  • Web browser and version: Google Chrome | 83.0.4103.61 (Official Build) (64-bit)
  • Operating System: MacOSX 10.15.4
  • Steps to reproduce this bug:
  1. Run the following from the 'sketches' or 'full' views of the p5js web editor (example):
function setup() {
  createCanvas(400, 400);
  background(255, 0, 0);
  saveCanvas('test', 'png');
}
  1. In the developer console, you should see the following message:

image

  1. Run the same code in the 'present' mode and it will work (example)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:HighShould be addressed soon but not critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions