Open Bug 1034974 Opened 10 years ago Updated 2 years ago

Page won’t be drawn until CSS finishes loading

Categories

(Core :: DOM: Core & HTML, defect, P5)

33 Branch
x86_64
Linux
defect

Tracking

()

People

(Reporter: nagisa, Unassigned)

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

If the HTML loads fine, but linked CSS does not, the page will not be drawn until linked CSS finishes (or fails) loading.

I noticed this issue on gmane a few days ago where the page itself loaded very quickly, but loads for CSS were blackholed and I had to for wait TCP connection timeout (i.e. for stylesheet load to fail) to view contents of the page.

I attached a simple HTTP server written in python to which pointing firefox will easily reproduce the issue.
After launching the server, point your firefox at http://localhost:8080/ or equivalent.
I think that could be a result of a recent networking change (bug 237623) ?
Component: General → Networking: HTTP
Flags: needinfo?(bzbarsky)
Product: Firefox → Core
(In reply to Matthias Versen [:Matti] from comment #2)
> I think that could be a result of a recent networking change (bug 237623) ?

I don't think it sounds like that. The code changes done for Bug 237623 only trigger once the connection is closed, so it won't affect slow or stalled transfers.

If however the connection that delivers the CSS ends prematurely, that would result in an error and would cause the CSS to not be used.
> I think that could be a result of a recent networking change (bug 237623) ?

Do you think that because this is a regression or something?

Because this bug as reported sounds like a duplicate of a very old bug that I can't locate right now about timing out the wait on stylesheets and starting layout anyway even if we have pending stylesheet loads.  We normally wait on CSS to load before starting layout to avoid flashes of unstyled content.
Flags: needinfo?(bzbarsky) → needinfo?(bugzilla)
>Do you think that because this is a regression or something?
Yes, i thought that this sounds like a recent regression but i could be wrong - sorry in that case.
Flags: needinfo?(bugzilla)
Component: Networking: HTTP → DOM
Whiteboard: DUPEME
I could reproduce in Firefox 4, Firefox 2, Chrome, IE 11 and IE 8, so this smells like expected behaviour… even if not user-friendly one.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: