<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>101745</bug_id>
          
          <creation_ts>2012-11-09 05:34:09 -0800</creation_ts>
          <short_desc>WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT after WEBKIT_LOAD_FAILED status</short_desc>
          <delta_ts>2015-05-07 19:21:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Manuel Kaufmann">humitos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>humitos</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>762885</commentid>
    <comment_count>0</comment_count>
      <attachid>173277</attachid>
    <who name="Manuel Kaufmann">humitos</who>
    <bug_when>2012-11-09 05:34:09 -0800</bug_when>
    <thetext>Created attachment 173277
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&apos;m working on Browse[1] (a Sugar/OLPC Activity) that uses WebKitGTK+ from Python.

I&apos;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&apos;m checking the &apos;load-status&apos; property by connecting the signal &apos;notify::load-status&apos; 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 &apos;load-error&apos; signal is emitted (I get a web_error.code 302 here), the &apos;load-status&apos; changes to 
WebKit.LoadStatus.FIRST_VISUALLY_NON_EMPTY_LAYOUT and the Spinning Cursor is shown again but the page is not loading anymore.

I&apos;m asking here if this is a bug or not. Should the &apos;load-status&apos; 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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092999</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2015-05-07 19:21:48 -0700</bug_when>
    <thetext>It&apos;s unlikely that we&apos;ll be able to fix this since WebKit1 has been removed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>173277</attachid>
            <date>2012-11-09 05:34:09 -0800</date>
            <delta_ts>2012-11-09 05:34:09 -0800</delta_ts>
            <desc>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.</desc>
            <filename>webkit_load_status.py</filename>
            <type>text/x-python</type>
            <size>1182</size>
            <attacher name="Manuel Kaufmann">humitos</attacher>
            
              <data encoding="base64">ZnJvbSBnaS5yZXBvc2l0b3J5IGltcG9ydCBHdGsKZnJvbSBnaS5yZXBvc2l0b3J5IGltcG9ydCBX
ZWJLaXQKZnJvbSBnaS5yZXBvc2l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