Why:
It would be nice to add a feature where a webpage loads on its own once internet is available to the device. This will make it easier for users as they will not have to periodically press the refresh button.
Suppose the device has no internet initially, so the user would see a "Server not found" screen. If the device regains internet connection while the app is in the foreground, it should try to load the webpage again(something like what Google Chrome does).
What:
Add a check to reload the webpage if it has been not loaded already and an internet connection is established.
Acceptance Criteria:
Attempt to load a webpage without an internet connection. Focus will redirect the user to the "Server not found" screen. Establish an internet connection with the device. Focus should automatically recognize that an internet connection has been established and attempt to reload the webpage.
This is a nice issue, can I work on it?
Is anyone assigned to this? Would like to work on it
@daivat15 - would you mind following our new template to understand the user problem, and to help us prioritize better?
@bbinto I have updated the issue description. Looks okay?
Hey @brampitoyo could we get an idea what this could look like UX-wise as a feature?
Hi @ekager, in my opinion, this issue should have no user-visible component. We can check whether the user is actually connected to the internet ourselves, then reload the URL if that condition is true.

Edge case: when you have a bunch of “server not found” pages over many tabs, should we reload them all at once when internet is found, or wait until the user has visited the tab in order to perform a reload?
@brampitoyo
Maybe tell the user that he doesn't need to frantically press the reload button for the page to reload, "When internet is connected the page will reload" should work.
(PS: love the chart)
There's several states to consider as being "connected" from Android's point of view isn't a single state:
@colintheshots
There's several states to consider as being "connected"...
I am supposing the user doesn't know that. You can change the text as you see fit. (Maybe "We'll auto-reload ASAP."?).
I would think that the user knowing that the app will do it's best to reload the page when it can be is better for him (less to worry about).
For each of the points I would think you already have a set procedure to load (or fail to load) pages that can be used for this issue. With that being said, if there is a case that is specifically problematic, do tell.
@ekager would you please assign a t-shirt size to this one?
I had a chat with @ekager, and she brought up two important points:
So, the user flow needs to be expanded:

And our mockup needs to cover this subtle indicator (a banner), as well as a strong indicator (a connection error page).

What do you think?
@brampitoyo This looks amaizing!
Although I think that in the error page the reload button should be kept (maybe as part of the overflow menu) in case an error occurs and the app doesn't autoreload.
Thanks for the mock ups @brampitoyo ! I'll try to implement these tomorrow. The overriding of the error page may be tricky, but I'll look into our options.
I have a WIP for this feature but have hit a road block with the GV loadData API showing the data url for the error page in history see filed bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=1483677
It looks like this may have to be pushed to the next sprint if we want to incorporate our own error page.
Most helpful comment
@bbinto I have updated the issue description. Looks okay?