DEV Community

Cover image for A Bug in Chrome 75 Caused Random Offline Pages
Mac Siri for The DEV Team

Posted on


A Bug in Chrome 75 Caused Random Offline Pages

Towards the end of May, we started to receive a lot of reports from DEV users that our Android App was giving them an Offline message even when they had an internet connection. Additional reports came in from users trying to access DEV articles from the Facebook in-app browser, the DuckDuckGo browser, and others. This alarmed us, and we immediately set to work to fix the problem. Days went by and we couldn't make any progress on mitigating the issue.

We simply couldn't reproduce the issue at all on my phone or on the emulator.

Since we use webviews within our Android app, this situation was not good for our Google Play Store reviews:

screenshot of Google Play store reviews

I tunneled-visioned myself into thinking that I could fix the problem if I could just replicate it myself. As soon as I was about to give up and ask for help, I found this bug report.

Starting towards the end of May we started receiving sporadic reader complaints that our app was reporting that certain functionality wasn't available due to the app being offline - when actually being online. We verify connectivity before certain actions by making a network request, and this was failing.

It turns out the bug was caused by an experiment they were conducting in Chrome 75. Depending on the device, WebView would be relying on Chrome 75 and because it is still an experiment, it can happen randomly. To put it simply, if IoThreadClient is null, the web request is aborted, hence the immediate offline page. A soon as they found the cause, they patched it swiftly

Within that bug report, engineers from renowned publications such as LinkedIn and The Financial Times chimed in. They also maintain apps that rely on Service Workers and were similarly frustrated. These apps are collectively utilized by billions of customers and many were quite unhappy. It is an especially damaging bug because their apps did nothing wrong, and were getting hit by a lot of bad ratings and angry reviews.

There are some reports that the issue may still be going on for some, but shout out to the Chromium team for responding so quickly with a fix. The issue has not been closed conclusively but should be soon.

To those of you who might still be experiencing this problem, try clearing the storage/cache our app once or twice, and you should be able to access our app. It may produce a fix, and if not it should hopefully be 100% fixed soon.

Top comments (16)

kip13 profile image

monopoly browser -> monopoly bugs ?

ben profile image
Ben Halpern

j_mplourde profile image
Jean-Michel Plourde

The page saying is offline appears from time to tim on Firefox. Doth on my work computer and at home. Only happens if I'm in a tab on a different website and I try to acces I then have to open a new tab to access the website. Anyone have this too ?

michaeltharrington profile image
Michael Tharrington

Nice! Great write up!

So happy we know what's up with this. I know this one was giving you so major grief!

itsasine profile image
ItsASine (Kayla)

I just went back to using the website in Chrome and figured my device was wrong :P Though good sleuthing to find it was a Chrome issue!

codemouse92 profile image
Jason C. McDonald • Edited

Ohhhhhh, I remember this happening even when browsing to the website. Somehow (terribly of me) I hadn't noticed it wasn't going on until I saw this post.

Yay! It's fixed! \o/

j_mplourde profile image
Jean-Michel Plourde

Yes. Thank you Daniel for the tip, I'll give it a try

flavienlefebvre profile image
Flavien Lefebvre

The impact would have been reduced if the "app" wasn't a webview in the first place...

s1037989 profile image
Stefan Adams

How is it that the offline page was able to be presented? Isn't that just another normal GET request like the original that failed due to being "offline"?

maestromac profile image
Mac Siri

Offline page is stored in service worker and is returned if a cache copy of said request doesn't exist or the request failed.

coreyja profile image
Corey Alexander

Ahh thanks for the write up!

I can probably go back to using the App now!

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

The JavaScript Brief

1. Top 5 MERN STACK projects to improve your practical understanding

Boost your MERN Stack development skills by undertaking interesting beginner projects. These five engaging projects cover web applications and range from social media website applications to geo-social networking maps. Hone your understanding and apply modern techniques backed up by hands-on experience.

2. How To Optimize Your React App’s Performance

Learn the best optimizing techniques to make your React applications faster and more efficient. Focusing on the identification of performance bottlenecks and common pitfalls to avoid, these optimization strategies will keep your applications running smoothly even when faced with growing complexity.

3. A story of let, const, object mutation, and a bug in my code

In the pursuit of bug-free code, explore an incident involving a mix-up between const and let, making sure your custom code works effectively with third

party documentation. Discover best practices on program flow and learn about JavaScript's unpredictable aspects to ensure your core code is robust.