Custom Error Page

2,046 views
Skip to first unread message

tstrat

unread,
Jul 6, 2010, 6:30:07 PM7/6/10
to Chromium-extensions
I am working on a project that uses chrome in a kiosk mode in a local
network. I need to be able to set a custom error page so that if
loading the webpage fails for some reason (i.e. no network connection,
server down, etc) the user has a few choices such as loading the page
again or returning to the homepage. I would like to write an extension
that would provide this functionality but I'm not sure of the best
method (this will be my first attempt at a chrome extension).

From looking through the API it seems that an Override page would be
ideal but these are only available for new tabs and history. I have
some ideas on how this could be done with a content script (i.e.
inject a js timer into each page) but I'm not sure if this is the best
method.

Any pointers would be appreciated.

Thanks,

TAS

Arne Roomann-Kurrik

unread,
Jul 7, 2010, 2:41:10 PM7/7/10
to tstrat, Chromium-extensions
Currently, I can't think of a really good way to accomplish this.  You could request that the standard error page become one of the overrideable pages by submitting a request at http://new.crbug.com though.

~Arne



--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Casey Banner

unread,
Jul 7, 2010, 2:45:15 PM7/7/10
to tstrat, Chromium-extensions
Another suggestion: Configure a proxy on the local machine which
returns your own 404 page whenever a user encounters a 404.

tstrat

unread,
Jul 7, 2010, 6:20:32 PM7/7/10
to Chromium-extensions
Thank you, I will submit a request. I did some more thinking about it
and so far I haven't come up with anything. I will probably end up
modifying the chrome source for this project to get it done.

On Jul 7, 1:41 pm, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> Currently, I can't think of a really good way to accomplish this.  You could
> request that the standard error page become one of the overrideable pages by
> submitting a request athttp://new.crbug.comthough.
>
> ~Arne
>
> On Tue, Jul 6, 2010 at 3:30 PM, tstrat <travis.strat...@gmail.com> wrote:
> > I am working on a project that uses chrome in a kiosk mode in a local
> > network. I need to be able to set a custom error page so that if
> > loading the webpage fails for some reason (i.e. no network connection,
> > server down, etc) the user has a few choices such as loading the page
> > again or returning to the homepage. I would like to write an extension
> > that would provide this functionality but I'm not sure of the best
> > method (this will be my first attempt at a chrome extension).
>
> > From looking through the API it seems that an Override page would be
> > ideal but these are only available for new tabs and history. I have
> > some ideas on how this could be done with a content script (i.e.
> > inject a js timer into each page) but I'm not sure if this is the best
> > method.
>
> > Any pointers would be appreciated.
>
> > Thanks,
>
> > TAS
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> > .

tstrat

unread,
Jul 7, 2010, 6:37:10 PM7/7/10
to Chromium-extensions
Thanks Casey, that would work for the case of a 404 returned by a
server, but not when the network is actually down or the server is not
responding. That is what pulls up the error page that I need to
override. There might be some ways around the problem using a proxy or
local http server though.
Reply all
Reply to author
Forward
0 new messages