Safari 14 stuck when displaying PDF file on Mac OS Big Sur

I am testing our web application on Mac OS Big Sur because of some bug reports I've been receiving from users on Mac OS Big Sur.


In our web application we receive PDF data from an api, convert it to a blob url using JavaScript "window.URL.createObjectURL(data)" and display it using "<object type='application/pdf' data='<blob

url'>". Since the Mac OS Big Sur update this mechanism stopped working.


I've tested it on Mac OS Catalina Safari 14 (works), Mac OS Big Sur 11.0, 11.0.1 and 11.1 Safari 14 (doesn't work). Other browsers (Chrome and Firefox) work fine on Big Sur. Other OS's work as expected.


Could this be a bug in Mac OS Big Sur or Safari or am I doing something wrong?

Can you reproduce this problem? Remember, it hangs when converting PDF data to a blob url and using this url as the data attribute of the object element. When using a direct url (due to architecture limitations we're not able to take this route) to the pdf file everything seems to be working as expected.


Also, I tried circumventing the problem by parsing the navigator.userAgent but it returns MacOS 10.15.6 on 11.0.1.

Mac mini 2018 or later

Posted on Dec 31, 2020 1:26 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 12, 2021 1:34 AM

Hi,


Yes it is a bug with Safari on Big Sur, it's working after removing the attribute:

type='application/pdf'

Seems fine for other browsers without the type attribute...

Similar questions

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari 14 stuck when displaying PDF file on Mac OS Big Sur

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.