After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693832 - [WK2] Needs to reload pages or show an error page when WebProcess dies
[WK2] Needs to reload pages or show an error page when WebProcess dies
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 678610
 
 
Reported: 2013-02-14 18:07 UTC by Xan Lopez
Modified: 2013-03-11 12:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
page-crash.diff (5.77 KB, patch)
2013-02-23 20:09 UTC, Xan Lopez
committed Details | Review

Description Xan Lopez 2013-02-14 18:07:49 UTC
Right now we just do nothing and a blank page is shown unil the user reloads manually. I believe this depends on some WK2 patches that have yet to land.
Comment 1 Xan Lopez 2013-02-23 20:09:44 UTC
Created attachment 237254 [details] [review]
page-crash.diff

This (together with the corresponding wk patch), does the trick.

One doubt I have though: loading a page when the web process has crashed is problematic, because obviously you need it to re-spawn again for things to work. I'm using an idle to get it done, but perhaps we could just have a static image or something? Not sure.
Comment 2 Carlos Garcia Campos 2013-02-23 20:22:18 UTC
(In reply to comment #1)
> Created an attachment (id=237254) [details] [review]
> page-crash.diff
> 
> This (together with the corresponding wk patch), does the trick.
> 
> One doubt I have though: loading a page when the web process has crashed is
> problematic, because obviously you need it to re-spawn again for things to
> work. I'm using an idle to get it done, but perhaps we could just have a static
> image or something? Not sure.

That's a good point, maybe we could show a custom widget in the overlay instead of loading a web page to avoid that problem.
Comment 3 Xan Lopez 2013-02-23 20:27:43 UTC
(In reply to comment #2)
> 
> That's a good point, maybe we could show a custom widget in the overlay instead
> of loading a web page to avoid that problem.

Yes, that's what I thought, but obviosuly that complicates the code considerably. If there is any way to do this that is safer than an idle perhaps we could just go for it, I think in general it makes sense to use web pages as much as possible. Is there any method we can call to force the WebProcess to respawn?
Comment 4 Carlos Garcia Campos 2013-02-24 11:05:05 UTC
Loading the error page will re-spawn the web process.
Comment 5 Xan Lopez 2013-02-24 12:12:51 UTC
(In reply to comment #4)
> Loading the error page will re-spawn the web process.

This is what I thought but doing it in the callback of the process-crashed signal does not actually work. Perhaps it should, but then there is a bug somewhere.
Comment 6 Xan Lopez 2013-03-11 12:41:16 UTC
Pushed to master with some changes, closing.