FileDownloader in Safari 9.0.2

Hello everyone!

I’m facing an issue while trying to add a download button on a view. It’s just a simple Button extended using a FileDownloader.

In the Javascript console of Safari I see:

Refused to display 'http://localhost:8080/app/vaadinServlet/APP/connector/0/87/dl/file.txt' in a frame because it set 'X-Frame-Options' to 'DENY

My code is something like this (simplified, of course):

StreamSource streamSource = new StreamSource() {
            @Override
            public InputStream getStream() {
                byte bytes = Base64.decodeBase64("blablablabla");
                return new ByteArrayInputStream(bytes);
            }
};

FileDownloader downloader = new FileDownloader(new StreamResource(streamSource, "file.txt"));
Button downloadButton = new Button("download");

downloader.extend(downloadButton);

Am I doing something wrong? In Firefox it works right.

I’m using Vaadin 7.5.5.

Thanks!