OneDrive blank page

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
Stargate38
Moon lover
Moon lover
Posts: 86
Joined: 2018-05-27, 22:55
Location: Earth

OneDrive blank page

Post by Stargate38 » 2025-09-15, 21:22

Please always mention the name/domain of the website in question in your topic title.

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.

Code: Select all

**PASTE CONSOLE OUTPUT HERE**
ReferenceError: WeakRef is not defined[Learn More]  
plt.listviewdataprefetch.js:160:14627
	F https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:160:14627
	e[379] https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:224:54
	n https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:115
	e[136] https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:195:54
	n https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:115
	e[506] https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:194:77
	n https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:115
	e[504] https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:184:185
	n https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:115
	e[2257] https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:191:36
	n https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:115
	e[1521] https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:228:198
	n https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:115
	b< https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:5305
	n.O https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:721
	<anonymous> https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:5318
	<anonymous> https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:5345
TypeError: a is undefined[Learn More]  
plt.listviewdataprefetch.js:195:42
	a https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:195:42
	fe https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/370.js:156:1404
	[1524]/< https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/odclightspeed-e2ae3a23.js:272:7827
	[1524] https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/odclightspeed-e2ae3a23.js:272:8310
	n https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:115
	<anonymous> https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/odclightspeed-e2ae3a23.js:283:120
	n.O https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:721
	t https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/plt.listviewdataprefetch.js:239:5024
	t self-hosted:1119:17
	<anonymous> https://res-1.cdn.office.net/files/odsp-web-prod_2025-09-05.004/odclightspeedwebpack.manifest/206.js:1:72
Error: {"msg":"Failed to eval: InvalidStateError: Global object is unavailable."}  
58350547-03c2-4d40-a794-9ac5134232d8:1:513
Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: 
emptyFolder, emptyFolderWithDrop, emptyFolder, emptyFolderWithDrop
Link used: https://1drv.ms/u/c/f5a175ad38cb830a/EX ... w?e=d4iSIg

Is there any way to get it working again?

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5690
Joined: 2015-12-09, 15:45

Re: OneDrive blank page

Post by moonbat » 2025-09-15, 21:58

Can confirm. Anyone else know whether PM supports WeakRef?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
FranklinDM
Add-ons Team
Add-ons Team
Posts: 631
Joined: 2017-01-14, 02:40
Location: Philippines

Re: OneDrive blank page

Post by FranklinDM » 2025-09-16, 08:20

moonbat wrote:
2025-09-15, 21:58
Anyone else know whether PM supports WeakRef?
There's an open issue for it: Issue #2306 (UXP)

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1044
Joined: 2020-11-03, 06:47
Location: Philippines

OneDrive and GodBolt: workaround for WeakRef

Post by jobbautista9 » 2025-10-30, 11:04

As a workaround you can get OneDrive working by injecting a polyfill for WeakRef using two add-ons: Modify HTTP Response and moz-rewrite (I used the JSON parsing version).

For the first add-on you have to add the following filter:

Code: Select all

[["/onedrive\\.live\\.com/",["/.*/",["<head>","<head><script src=\"https://raw.githubusercontent.com/jaenster/weakref-pollyfill/3be0f501a14df098fba3a7ed4bd4e81b6918bc2c/src/index.js\"></script>"]]]]
In the filter editor (for those who have existing filters they don't want to overwrite) that would be:

host: /onedrive\.live\.com/
path: /.*/
search: <head>
replace:

Code: Select all

<head><script src="https://raw.githubusercontent.com/jaenster/weakref-pollyfill/3be0f501a14df098fba3a7ed4bd4e81b6918bc2c/src/index.js"></script>
For the second add-on you have to add the following JSON entry which will override the Content-Type of the polyfill hosted by GitHub (which unfortunately always defaults to text/plain, and OneDrive has X-Content-Type-Options: nosniff preventing the script from working, making this override necessary):

Code: Select all

    {
        "url" : "^https?:\/\/(raw\\.githubusercontent\\.com)\/.*\\.js$",
        "headers" : {
            "Content-Type"   : "text/javascript"
        }
    }
I was able to download a compressed archive named divisor, 64 divisor sets, p_min 31.zip with this workaround. The filename of the zip and the CSV inside it is weird though (I had to rename the CSV file because its name is too long)...

This workaround also works for the GodBolt Compiler Explorer reported to not be working in the linked UXP issue and this locked forum topic.
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.