Bug 101745 - WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT after WEBKIT_LOAD_FAILED status
Summary: WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT after WEBKIT_LOAD_FAILED status
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-09 05:34 PST by Manuel Kaufmann
Modified: 2015-05-07 19:21 PDT (History)
2 users (show)

See Also:


Attachments
This is an automatic test that works with my internet connection. Maybe a change to the milliseconds is needed in the GObject.timeout_add function call. (1.15 KB, text/x-python)
2012-11-09 05:34 PST, Manuel Kaufmann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Kaufmann 2012-11-09 05:34:09 PST
Created attachment 173277 [details]
This is an automatic test that works with my internet connection. Maybe a change to the milliseconds is needed in the GObject.timeout_add function call.

Hello people,

I'm working on Browse[1] (a Sugar/OLPC Activity) that uses WebKitGTK+ from Python.

I'm trying to fix a bug related with the Spinning Cursor[2]. We want to show the Spinning Cursor while the page is loading and show the Normal Cursor when the load finishes. So, I'm checking the 'load-status' property by connecting the signal 'notify::load-status' to a callback and setting the Spinning Cursor for WebKit.LoadStatus.PROVISIONAL, WebKit.LoadStatus.COMMITTED and WebKit.LoadStatus.FIRST_VISUALLY_NON_EMPTY_LAYOUT status.

So, if I press Esc (that calls WebKit.WebView.stop_loading) when the status is WebKit.LoadStatus.COMMITTED, it changes to WebKit.LoadStatus.FAILED, the 'load-error' signal is emitted (I get a web_error.code 302 here), the 'load-status' changes to 
WebKit.LoadStatus.FIRST_VISUALLY_NON_EMPTY_LAYOUT and the Spinning Cursor is shown again but the page is not loading anymore.

I'm asking here if this is a bug or not. Should the 'load-status' change to another status after WebKit.LoadStatus.FAILED? Is that OK? Is WebKit keep loading the page after a call to WebKit.WebView.stop_loading?

Thanks for your answers.

PS: I'm attaching a test case (not perfect, but it shows the strange behaviour)

[1] http://git.sugarlabs.org/browse
[2] http://bugs.sugarlabs.org/ticket/1434
Comment 1 Martin Robinson 2015-05-07 19:21:48 PDT
It's unlikely that we'll be able to fix this since WebKit1 has been removed.