Bug 18731 - Inconsistent behaviour on pages where CSS has not been loaded.
Summary: Inconsistent behaviour on pages where CSS has not been loaded.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P3 Normal
Assignee: Nobody
URL: http://tinyurl.com/6dnmfy
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2008-04-24 21:44 PDT by Achille
Modified: 2008-04-24 21:54 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Achille 2008-04-24 21:44:44 PDT
Webkit will display the old page even after the HTML for the new page has been downloaded. Won't refresh page until css has been downloaded. 

Test case, save as html1.html:

<html>
    Sample link: <a href="http://www.cnn.com">CNN</a> <br />
    Invalid stylesheet link: <a href="test2.html">Test</a> <br />

    <pre>
    To reproduce:
    * Create test2.html with the following content:
        <link rel="stylesheet" type="text/css" href="http://127.0.0.1:9999">
    * Start a process to listen to port 9999:
        % nc -l 9999
    * Click on the invalid stylesheet link. Page will start to load.
      o The first page will still be visible. (The page wont' blank out)
      o The CNN link does not respond.
    * Press escape.
      o Loading of the page has stopped.
      o You are still viewing the first page.
      o Hyperlinks do not respond.

    Notes:
      o Possible fix:
          x Render to a blank page when loading (empy page)
          x Stopping a loading page pre-css should send the user
            on the previous page, or
          x Stopping a loading page pre-css rendering should display the html
            contents less the formatting.
      o Make sure to restart the nc process after each use.
      o Similar bug: 16417
      o Similar bug: 15063
    </pre>
</html> 

Dear bandwith-endowed friends: Please keep in mind those of us who are not so blessed with fast bandwith. This bug is very problematic for slower connections.
Comment 1 Mark Rowe (bdash) 2008-04-24 21:54:00 PDT
<rdar://problem/5889167>