You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using createObjectURL seems to create a state where Brave gets confused about things.
Basically the code generates a PDF in memory; and assigns it to an iFrame. Brave seems to be the only one affected and shows the following warning in the console.log:
Resource interpreted as Document but transferred with MIME type application/pdf: "blob:http://www.fluentreports.com/b4ffad1e-0f9e-4769-baf7-ea8cc21e454f".
Test plan
See brave/brave-core#2342
Description
Docs: https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
Steps to Reproduce
Using createObjectURL seems to create a state where Brave gets confused about things.
Basically the code generates a PDF in memory; and assigns it to an iFrame. Brave seems to be the only one affected and shows the following warning in the console.log:
Resource interpreted as Document but transferred with MIME type application/pdf: "blob:http://www.fluentreports.com/b4ffad1e-0f9e-4769-baf7-ea8cc21e454f".
Broken sites because of this:
Actual result:
Expected result:
(From Chromium)

Reproduces how often:
Always
Brave version (brave://version info)
Windows (Should be current version)
Linux 0.63.48 Chromium: 74.0.3729.108 (Official Build) (64-bit)
Version/Channel Information:
Current Release (Been this way for a while, just haven't reported it)
Other Additional Information:
Does the issue resolve itself when disabling Brave Shields?
No.
Does the issue resolve itself when disabling Brave Rewards?
Unknown
Is the issue reproducible on the latest version of Chrome?
No, Chrome/Firefox/etc work great.
Miscellaneous Information:
The PDF blob source is being assigned to an iFrame.src property. (FluentReports is my site; so if you need any code to see, let me know)
The text was updated successfully, but these errors were encountered: