Skip to content

Instantly share code, notes, and snippets.

@victorb
Last active July 18, 2020 04:26
Show Gist options
  • Save victorb/1d0f4ee6dc5ec0d6646e to your computer and use it in GitHub Desktop.
Save victorb/1d0f4ee6dc5ec0d6646e to your computer and use it in GitHub Desktop.

Why is Google blocking Inbox on Firefox?

Recently, Google launched a new service called Inbox. It's basically Gmail re-invented with a different UI and UX. It's a good tool which improved my ability to keep a zero email inbox. I'm currently using the Android application of Inbox and not at all on the desktop, since it's not available for Firefox, my default browser. This requires me to open up Inbox in Google Chrome if I want to see it. Opening up Inbox in Firefox gives the following message:

Image of Inbox message if using Firefox

But, I couldn't understand why it's only available in Google Chrome so I started investigating on why it's so.

User Agent hack

First thing I tried, is to switch the user agent from Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 (Firefox default user agent for me on Ubuntu Linux) to my Google Chromes user agent instead Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36

This is what I see now:

Image of Inbox working in Firefox

This got rid of the message when loading the page, but the application didn't work. I get an error in the console and the application is just loading but is not interactive because of the error. Could Google be right to be blocking the application since it didn't work in Firefox? To answer that question, I seek out to find out WHY Firefox didn't work and Google Chrome did.

CSP and you

Inspecting the console, we can see that the error is about CSP (Content Security Policy) which protects the browser from loading resource from other domains in order to protect the user of the browser. A quick visit to about:config and setting security.csp.enable to false brings me the following:

Image of Inbox working fully in Firefox

Inbox is running

All right! The application is fully functional. I can do everything I can do in Google Chrome. We have some warnings and errors in the console, but the application is still fully functional. It's slow, a lot slower than Google Chrome. If this is because of Firefox is bad or if Inbox is bad, I leave as a exercise for you to figure out. Animations doesn't seem to work, could be because of webkit-specific transitions or un-implemented Firefox features but I do know, that the application actually works if you want to.

CSP in Firefox and Google Chrome

So, obviously the most painful point for Googles team working on Inbox, is to solve the CSP issue. I'm not 100% sure on how the browsers implementation differs with CSP but there is a main difference in that there seems to be no CSP protected between Google domains in Google Chrome but that's just what I see after a quick look. If someone have more knowledge about this, I would be happy to know about it.


Since I got access to Inbox, the message have been there in Firefox. Yesterday, I figured out a way to circumwent it and use my favorite browser to get access to a webpage that should work in both browsers. Ideally, it would work in most major browsers but my goal was only to have access via Firefox. For now, I'm happy in being able to access Inbox on Firefox but a bit worried since I have to disable CSP. For now, I just keep on using Inbox on my Android phone only.

However, we still haven't figured out exactly why Google is blocking Inbox on Firefox. That the application is not working, seems to not be fully true. With some more man hours, it seems trivial for Google to get the application to run in Firefox to. Maybe too much Chrome specific technologies or just a try to limit the usage of Firefox on the web?

@fbeauchamp
Copy link

@droope : ms just open a beta for web skype, for all modern browser, and open sourced .net

Just tested inbox on IE11 , it seems ok but with a few graphical bugs

@nevercast
Copy link

As @cayblood said, Chrome has some native support for Web Components, other browsers are lacking behind. It's not that Google is trying to disadvantage you because you're not using Google. It's because you're disadvantaging yourself using a browser with missing support for the BETA application you're trying to use.

Wait for Mozilla to roll out the fixes, then you can Inbox on Firefox all day long.

@mahossam
Copy link

I just want to announce that Maxthon Cloud browser runs Inbox perfectly out of the box (just like chrome).
I tried the Windows and Linux versions. Both are working perfectly.
http://www.maxthon.com/

@erik-alm
Copy link

erik-alm commented Jan 1, 2015

If you're running Ubuntu you can run Inbox without problems in Chromium (which is the open source base for Chrome) - i.e. no need to install Chrome via tar-ball, ppa or deb when you can get Chromium directly from the repos.

@aladinbouzerd
Copy link

@droope you can use other app stores like Amazon or 1mobile

@h4writer
Copy link

h4writer commented Jan 8, 2015

FYI, there is an addon for Firefox that removes the restriction (created it a few days ago):
https://addons.mozilla.org/en-US/firefox/addon/enable-google-inbox/

@hackergrrl
Copy link

Looks like support has been extended to Firefox and Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment