Closed Bug 37208 Opened 25 years ago Closed 25 years ago

nonexistant or empty stylesheet used --> nothing displayed

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: attinasi)

Details

(Keywords: testcase)

Attachments

(1 file)

If a page asks for a stylesheet that a) resolves to a file:/// url that doesn't exist or b) has length zero (is completely empty), then mozilla displays nothing (in the 5569 sense).
Keywords: testcase
Assignee: pierre → attinasi
Reassigned to attinasi because it's probably related to the changes made for bug 17309. I guess we don't test an error case somewhere. If we fail to load to style sheet (in sync or async mode), we should call Cleanup() in order to display the page.
Yes, I caused this regression when I put in the I18L support. The problem is I blocked the call to DidLoadStyle in SheetLoadData::OnStreamComplete when there is no data coming back - a mistake. DidLoadStyle needs to be called anyway to unblock the parser.
Status: NEW → ASSIGNED
Fix checked in: nsCSSLoader.cpp
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verif fixed 2000 093008. Zero-length, nonexistant local, and nonexistant remote stylesheets no longer block the page from displaying.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: