Firebase's Firestore breaking in MV3

124 views
Skip to first unread message

Andy Mitchell

unread,
Mar 15, 2021, 12:57:05 PM3/15/21
to Chromium Extensions
Strictly speaking, this is the Firebase team's issue - but I believe they've said before they don't have many engineers aware of Chrome Extensions, so it might be worth one of the Extensions team reaching out to them. 

Problem

Firebase's Cloud Firestore SDK uses XMLHttpRequest, which Service Workers do not allow. 

Obviously with MV3 coming, that'll be a hard stop on using Firebase's SDK. 

Workaround?

I haven't tried, but presumably it might be possible to use a Sandboxed Service Worker and message in & out of it. 

Other Info

The Realtime Database continues to work just fine. Every other part of Firebase I checked seemed ok. 

This chap also spotted it, and is showing how to run Firebase in MV3. https://www.youtube.com/watch?v=UjH2INUPmF4 

More Info

If it helps, I can provide a sample extension to replicate it. 
Reply all
Reply to author
Forward
0 new messages