Closed Bug 113948 Opened 23 years ago Closed 21 years ago

nsContentDLF::CreateInstanceForDocument() is called before gUAStyleSheet has been loaded

Categories

(Core :: Layout, defect)

PowerPC
Mac System 9.x
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: sfraser_bugs, Assigned: hjtoi-bugzilla)

Details

I'm seeing a warning in my current build:

WARNING: unable to load UA style sheet, file nsDocumentViewer.cpp, line 3952

It seems that nsDocShell::CreateAboutBlankContentViewer() is calling 
nsContentDLF::CreateInstanceForDocument() before nsContentDLF::CreateInstance() 
is every called (which is where we load the UA stylesheet, so gUAStyleSheet is 
null at this point. So we set a null UA stylesheet on the document viewer, which 
then asserts in DocumentViewerImpl::CreateStyleSet().
Target Milestone: --- → Future
Both nsContentDLF::CreateInstance and nsContentDLF::CreateInstanceForDocument
now call EnsureUAStyleSheet (as a result of fixing bug 115919).  So this should
be a non-issue....
This bug is targeted at a Mac classic platform/OS, which is no longer supported
by mozilla.org. Please re-target it to another platform/OS if this bug applies
there as well or resolve this bug.

I will resolve this bug as WONTFIX in four weeks if no action has been taken.
To filter this and similar messages out, please filter for "mac_cla_reorg".
This was fixed by bug 115919
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.