opening an XML with an XSLT stylesheet triggers an ASSERTION: nsPresContext doesn't have the same document as nsPresShell!

RESOLVED WORKSFORME

Status

()

Core
Layout
--
major
RESOLVED WORKSFORME
12 years ago
12 years ago

People

(Reporter: Nickolay_Ponomarev, Unassigned)

Tracking

({assertion, regression})

Trunk
x86
Windows XP
assertion, regression
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
This happens with any XSLT-styled XML document, as far as I can tell. For example: http://www.4serendipity.com/xml/testfiles/1.xml (just open the URL in the browser, I tested in Firefox).

I don't have a short regression window, all I can say it regressed sometime in May.

###!!! ASSERTION: nsPresContext doesn't have the same document as nsPresShell!:
'!mShell || !mShell->GetDocument() || mShell->GetDocument() == mDocument', file
c:\mozilla\layout\base\nsPresContext.h, line 182

nsPresContext::Document() Line 180
nsPresContext::GetBidi() Line 1199
nsPresContext::GetUserPreferences() Line 588
nsPresContext::SetShell(aShell=0x03fb05c0) Line 770
PresShell::Init(aDocument=0x04e6dae8, aPresContext=0x04e60510, aViewManager=0x03f403f0, aStyleSet=0x04e565c8, aCompatMode=eCompatibility_NavQuirks) Line 1718
nsDocument::doCreateShell(aContext=0x04e60510, aViewManager=0x03f403f0, aStyleSet=0x04e565c8, aCompatMode=eCompatibility_NavQuirks, aInstancePtrResult=0x04e5dae0) Line 1472
nsHTMLDocument::CreateShell(aContext=0x04e60510, aViewManager=0x03f403f0, aStyleSet=0x04e565c8, aInstancePtrResult=0x04e5dae0) Line 457
DocumentViewerImpl::SetDOMDocument(aDocument=0x04e6db74) Line 1721
nsXMLContentSink::OnDocumentCreated(aResultDocument=0x04e6db74) Line 364
txTransformNotifier::SetOutputDocument(aDocument=0x04e6db74) Line 993
txMozillaXMLOutput::createResultDocument(aName={...}, aNsID=0, aSourceDocument=0x04e5c32c, aResultDocument=0x00000000) Line 852
txMozillaXMLOutput::txMozillaXMLOutput(aRootName={...}, aRootNsID=0, aFormat=0x03eb231c, aSourceDocument=0x04e5c32c, aResultDocument=0x00000000, aObserver=0x04e54c40) Line 115
txToDocHandlerFactory::createHandlerWith(aFormat=0x03eb231c, aHandler=0x0012fa9c) Line 136
txExecutionState::init(aNode={...}, aGlobalParams=0x03f3fcc4) Line 157
txMozillaXSLTProcessor::TransformToDoc(aOutputDoc=0x00000000, aResult=0x00000000) Line 666
nsTransformBlockerEvent::Run() Line 545
nsThread::ProcessNextEvent(mayWait=1, result=0x0012fc34) Line 483
NS_ProcessNextEvent_P(thread=0x00b27e28, mayWait=1) Line 225
nsBaseAppShell::Run() Line 153
nsAppStartup::Run() Line 171
XRE_main(argc=3, argv=0x00b27b18, aAppData=0x004036b0) Line 2343
(Reporter)

Comment 1

12 years ago
Appears to work fine with current trunk build.
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.