ProtonDrive - "TransformStream is not defined" Topic is solved

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1060
Joined: 2020-05-31, 04:33

ProtonDrive - "TransformStream is not defined"

Unread post by andyprough » 2025-02-11, 04:55

https://drive.proton.me/u/1 is only showing a blank page, even with a clean new Pale Moon profile. Can't even get to the sign-in page.

I'm getting the following "TransformStream" error as the one and only message in the Error Console:

Code: Select all

Timestamp: 02/10/2025 10:49:53 PM
Error: ReferenceError: TransformStream is not defined
Source File: https://drive.proton.me/assets/static/index.d16f9a2d.js?v=5.2.0+9f3d347b
Line: 64
I looked up TransformStream errors, and it seems to be related to different versions of node.js, but I don't understand enough about it to troubleshoot it. I am seeing some people saying that these types of errors should be fixable with a polyfill of some sort, for what it's worth.

User avatar
Shadow
Moon lover
Moon lover
Posts: 80
Joined: 2023-03-16, 13:21

Re: ProtonDrive - "TransformStream is not defined"

Unread post by Shadow » 2025-02-11, 11:57

Following the trails, it might require this first.

Implement TextEncoderStream and TextDecoderStream
https://bugzilla.mozilla.org/show_bug.cgi?id=1486949

User avatar
adoxa
Lunatic
Lunatic
Posts: 381
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: ProtonDrive - "TransformStream is not defined"

Unread post by adoxa » 2025-02-12, 01:06

I can add a polyfill, but you need to disable CSP in order for it to load (set security.csp.enable to false). That at least redirects me to the sign-in page, which is as far as I can test. Here's the Modify HTTP Response filter.

Code: Select all

[["drive.proton.me",["/^\\/u/",["<script","<script src=\"https://unpkg.com/web-streams-polyfill/dist/polyfill.js\"></script>$&"]]]]

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1060
Joined: 2020-05-31, 04:33

Re: ProtonDrive - "TransformStream is not defined"

Unread post by andyprough » 2025-02-12, 01:54

adoxa wrote:
2025-02-12, 01:06
I can add a polyfill, but you need to disable CSP in order for it to load (set security.csp.enable to false). That at least redirects me to the sign-in page, which is as far as I can test. Here's the Modify HTTP Response filter.

Code: Select all

[["drive.proton.me",["/^\\/u/",["<script","<script src=\"https://unpkg.com/web-streams-polyfill/dist/polyfill.js\"></script>$&"]]]]
You can sign in with the polyfill, but once you are in then you get a blank page again with the same TransformStream error message.

It's OK for now, I've reported it to Proton and they've acknowledged that they are looking at it. I would expect some type of resolution soon, Proton has been pretty good about fixing these hiccups.

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1060
Joined: 2020-05-31, 04:33

Re: ProtonDrive - "TransformStream is not defined"

Unread post by andyprough » 2025-03-03, 18:10

Proton has now fixed this problem with a new version of Proton Drive's website this week so that Proton Drive now works in Pale Moon again. Thanks to the kind folks at Proton for responding to my bug report and working out the solution.