diff options
-rw-r--r-- | src/ephy-session.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c index e4c158749..5774354ba 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -380,7 +380,13 @@ load_status_notify_cb (EphyWebView *view, GParamSpec *pspec, EphySession *session) { - if (ephy_web_view_is_loading (view) == FALSE) + WebKitLoadStatus status = webkit_web_view_get_load_status (WEBKIT_WEB_VIEW (view)); + + /* We won't know the URL we are loading in PROVISIONAL because + of bug #593149, but save session anyway */ + if (status == WEBKIT_LOAD_PROVISIONAL || + status == WEBKIT_LOAD_COMMITTED || + status == WEBKIT_LOAD_FINISHED) ephy_session_save (session, SESSION_CRASHED); } |