If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

###!!! ASSERTION: cannot get parentTop: 'parentTop', file r:/mozilla/dom/src/base/nsGlobalWindow.cpp, line 4284

RESOLVED WORKSFORME

Status

()

Core
DOM
P5
normal
RESOLVED WORKSFORME
13 years ago
3 years ago

People

(Reporter: timeless, Unassigned)

Tracking

({assertion})

Trunk
x86
Windows XP
assertion
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
###!!! ASSERTION: cannot get parentTop: 'parentTop', file
r:/mozilla/dom/src/base/nsGlobalWindow.cpp, line 4284
Break: at file r:/mozilla/dom/src/base/nsGlobalWindow.cpp, line 4284

-	this	0x052d9f4c {mRefCnt={mValue=0x00000003 }
_mOwningThread={mThread=0x003d4f58 } mFirstDocumentLoad=0x00 ...}	nsGlobalWindow
* const
|+	nsIScriptGlobalObject	{...}	nsIScriptGlobalObject
|-	nsPIDOMWindow	{mChromeEventHandler={mRawPtr=0x00000000 }
mDocument={mRawPtr=0x00000000 } mFrameElement=0x00000000 ...}	nsPIDOMWindow
||+	nsIDOMWindowInternal	{...}	nsIDOMWindowInternal
||+	mChromeEventHandler	{mRawPtr=0x00000000 }	nsCOMPtr<nsIChromeEventHandler>
||+	mDocument	{mRawPtr=0x00000000 }	nsCOMPtr<nsIDOMDocument>
||+	mFrameElement	0x00000000	nsIDOMElement *
||+	mOpenerScriptURL	{mRawPtr=0x00000000 }	nsCOMPtr<nsIURI>
||+	mRunningTimeout	0x00000000 {mWindow=??? mExpr=??? mFunObj=??? ...}	nsTimeout *
||	mMutationBits	0x00000000	unsigned int
||	mIsDocumentLoaded	0x00	unsigned char
|\	mIsHandlingResizeEvent	0x00	unsigned char
|+	nsIDOMJSWindow	{...}	nsIDOMJSWindow
|+	nsIScriptObjectPrincipal	{...}	nsIScriptObjectPrincipal
|+	nsIDOMEventReceiver	{...}	nsIDOMEventReceiver
|+	nsIDOM3EventTarget	{...}	nsIDOM3EventTarget
|+	nsIDOMViewCSS	{...}	nsIDOMViewCSS
|+	nsSupportsWeakReference	{mProxy=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mReferent=??? } }	nsSupportsWeakReference
|+	nsIInterfaceRequestor	{...}	nsIInterfaceRequestor
|+	mRefCnt	{mValue=0x00000003 }	nsAutoRefCnt
|+	_mOwningThread	{mThread=0x003d4f58 }	nsAutoOwningThread
|	mFirstDocumentLoad	0x00	unsigned char
|	mIsScopeClear	0x01 '␁'	unsigned char
|	mFullScreen	0x00	unsigned char
|	mIsClosed	0x00	unsigned char
|	mInClose	0x00	unsigned char
|	mOpenerWasCleared	0x00	unsigned char
|	mIsPopupSpam	0x00	unsigned char
|+	mContext	{mRawPtr=0x00000000 }	nsCOMPtr<nsIScriptContext>
|+	mOpener	{mRawPtr=0x00000000 }	nsCOMPtr<nsIDOMWindowInternal>
|-	mControllers	{mRawPtr=0x03678250 {mRefCnt={mValue=0x00000001 }
_mOwningThread={mThread=0x003d4f58 } mControllers={mImpl=0x0466f910
{mBits=0x80000008 mCount=0x00000001 mArray=0x0466f918 } } ...} }
nsCOMPtr<nsIControllers>
|\-	mRawPtr	0x03678250 {mRefCnt={mValue=0x00000001 }
_mOwningThread={mThread=0x003d4f58 } mControllers={mImpl=0x0466f910
{mBits=0x80000008 mCount=0x00000001 mArray=0x0466f918 } } ...}	nsIControllers *
| |+	[nsXULControllers]	{mRefCnt={mValue=0x00000001 }
_mOwningThread={mThread=0x003d4f58 } mControllers={mImpl=0x0466f910
{mBits=0x80000008 mCount=0x00000001 mArray=0x0466f918 } } ...}	nsXULControllers
| \+	nsISupports	{...}	nsISupports
|+	mListenerManager	{mRawPtr=0x00000000 }	nsCOMPtr<nsIEventListenerManager>
|	mJSObject	0x043e6838	JSObject *
|+	mNavigator	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mMimeTypes={mRawPtr=??? } ...} }	nsRefPtr<nsNavigator>
|+	mScreen	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mDocShell=??? } }	nsRefPtr<nsScreen>
|+	mHistory	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mDocShell=??? } }	nsRefPtr<nsHistory>
|+	mFrames	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mDocShellNode=??? } }	nsRefPtr<nsDOMWindowList>
|+	mLocation	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mDocShell=??? } }	nsRefPtr<nsLocation>
|+	mMenubar	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mBrowserChrome=??? } }	nsRefPtr<nsBarProp>
|+	mToolbar	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mBrowserChrome=??? } }	nsRefPtr<nsBarProp>
|+	mLocationbar	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mBrowserChrome=??? } }	nsRefPtr<nsBarProp>
|+	mPersonalbar	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mBrowserChrome=??? } }	nsRefPtr<nsBarProp>
|+	mStatusbar	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mBrowserChrome=??? } }	nsRefPtr<nsBarProp>
|+	mScrollbars	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mBrowserChrome=??? } }	nsRefPtr<nsBarProp>
|+	mWindowUtils	{mRawPtr=0x00000000 }	nsCOMPtr<nsIWeakReference>
|+	mTimeouts	0x00000000 {mWindow=??? mExpr=??? mFunObj=??? ...}	nsTimeout *
|-	mTimeoutInsertionPoint	0x052d9fe0	nsTimeout * *
|\+		0x00000000 {mWindow=??? mExpr=??? mFunObj=??? ...}	nsTimeout *
|	mTimeoutPublicIdCounter	0x00000001	unsigned int
|	mTimeoutFiringDepth	0x00000000	unsigned int
|\-	mStatus	{...}	nsString
| \-	nsSubstring	{...}	nsSubstring
|+	nsAString	{mVTable=0x00350798 const nsObsoleteAStringThunk::`vftable'
mData=0x00350110 "" mLength=0x00000000 ...}	const nsAString
|\-	mDefaultStatus	{...}	nsString
| \-	nsSubstring	{...}	nsSubstring
|+	nsAString	{mVTable=0x00350798 const nsObsoleteAStringThunk::`vftable'
mData=0x00350110 "" mLength=0x00000000 ...}	const nsAString
|+	mGlobalObjectOwner	0x00000000	nsIScriptGlobalObjectOwner *
|+	mDocShell	0x00000000	nsIDocShell *
|+	mCurrentEvent	0x00000000 {eventStructType=??? message=??? point={x=???
y=??? } ...}	nsEvent *
|+	mCrypto	{mRawPtr=0x00000000 }	nsCOMPtr<nsIDOMCrypto>
|+	mPkcs11	{mRawPtr=0x00000000 }	nsCOMPtr<nsIDOMPkcs11>
|+	mDocumentPrincipal	{mRawPtr=0x04367110 {sInvalid=0x00d7d01c "Invalid"
mJSPrincipals={nsIPrincipalPtr=0x04367110 {sInvalid=0x00d7d01c
mJSPrincipals={...} mAnnotations={...} ...} } mAnnotations={mImpl=0x00000000
{mBits=??? mCount=??? mArray=0x00000008 } } ...} }	nsCOMPtr<nsIPrincipal>
|+	mNavigatorHolder	{mRawPtr=0x00000000 }	nsCOMPtr<nsIXPConnectJSObjectHolder>
|+	sSecMan	0x00b0de00 {mRefCnt={mValue=0x0000000b }
_mOwningThread={mThread=0x003d4f58 } sEnabledID=0x00abea94 ...}
nsIScriptSecurityManager *
\+	sComputedDOMStyleFactory	0x00000000	nsIFactory *

Debugging reminders...
  class:  (JSClass*)(obj->slots[2]-1)
  parent: (JSObject*)(obj->slots[1])
  proto:  (JSObject*)(obj->slots[0])

043E6838 'native' <Window>
  parent: null
  proto: 043E6830 'native' <XPC_WN_ModsAllowed_Proto_JSClass>
    parent: 043E6838 'native' <Window> (SEE ABOVE)
    proto: 042880C0 'native' <Global Scope Polluter>
      parent: 043E6838 'native' <Window> (SEE ABOVE)
      proto: 043E6410 'native' <Object>
        parent: 04227770 'native' <xpcTempGlobalClass>
          parent: null
          proto: 043E6410 'native' <Object> (SEE ABOVE)
        proto: null


-	aEvent	0x0012f1a4 {eventStructType=0x02 '␂' message=0x0000006b
point={x=0x00000000 y=0x00000000 } ...}	nsEvent *
|	eventStructType	0x02 '␂'	unsigned char
|	message	0x0000006b	unsigned int
|+	point	{x=0x00000000 y=0x00000000 }	nsPoint
|+	refPoint	{x=0x00000000 y=0x00000000 }	nsPoint
|	time	0x4a30288f	unsigned int
|	flags	0x00000000	unsigned int
|	internalAppFlags	0x00000002	unsigned int
\+	userType	0x00000000 {mKeyType=??? }	nsHashKey *
+
{,,necko.dll}((*(nsACString*)(&(*(nsCSubstring*)(&(*(nsStandardURL*){*}(((*(((*(nsIPresShell*)(&*this))).mDocument)).mDocumentURI).mRawPtr)).mSpec))))).mData
0x017e6af8 "http://landfill.mozilla.org/ryl/random.html"	char *

 	xpcom_core.dll!nsDebug::Assertion(const char * aStr=0x01f836f0, const char *
aExpr=0x01f836e4, const char * aFile=0x01f836b8, int aLine=0x000010bc)  Line 109	C++
>	gklayout.dll!nsGlobalWindow::GetPrivateRoot()  Line 4284 + 0x26	C++
 	gklayout.dll!nsGlobalWindow::GetRootFocusController()  Line 4470 + 0x8	C++
 	gklayout.dll!nsGlobalWindow::Focus()  Line 2599 + 0x8	C++
 	gklayout.dll!nsEventStateManager::PreHandleEvent(nsPresContext *
aPresContext=0x0481fd38, nsEvent * aEvent=0x0012f1a4, nsIFrame *
aTargetFrame=0x056b0b14, nsEventStatus * aStatus=0x0012f034, nsIView *
aView=0x047cacd0)  Line 795	C++
 	gklayout.dll!PresShell::HandleEventInternal(nsEvent * aEvent=0x0012f1a4,
nsIView * aView=0x047cacd0, unsigned int aFlags=0x00000001, nsEventStatus *
aStatus=0x0012f034)  Line 5983 + 0x34	C++
 	gklayout.dll!PresShell::HandleEvent(nsIView * aView=0x047cacd0, nsGUIEvent *
aEvent=0x0012f1a4, nsEventStatus * aEventStatus=0x0012f034, int
aForceHandle=0x00000001, int & aHandled=0x00000001)  Line 5836 + 0x19	C++
 	gklayout.dll!nsViewManager::HandleEvent(nsView * aView=0x047cacd0, nsGUIEvent
* aEvent=0x0012f1a4, int aCaptured=0x00000000)  Line 2443	C++
 	gklayout.dll!nsViewManager::DispatchEvent(nsGUIEvent * aEvent=0x0012f1a4,
nsEventStatus * aStatus=0x0012f1d8)  Line 2212 + 0x14	C++
 	gklayout.dll!nsGlobalWindow::Activate()  Line 4436	C++
 	webbrwsr.dll!nsWebBrowser::Activate()  Line 1788	C++
 	winEmbed.exe!BrowserDlgProc(HWND__ * hwndDlg=0x00100912, unsigned int
uMsg=0x00000006, unsigned int wParam=0x00000001, long lParam=0x00000000)  Line
703	C++
 	user32.dll!_InternalCallWinProc@20()  + 0x28	
 	user32.dll!_UserCallDlgProcCheckWow@32()  + 0xb5	
 	user32.dll!_DefDlgProcWorker@20()  + 0x7f	
 	user32.dll!___fnDWORD@4()  + 0x24	
 	ntdll.dll!_KiUserCallbackDispatcher@12()  + 0x13	
 	user32.dll!_NtUserPeekMessage@20()  + 0xc	
 	user32.dll!_PeekMessageA@20()  + 0xfb	
 	winEmbed.exe!AppCallbacks::RunEventLoop(int & aRunCondition=0x00000001)  Line
1184 + 0x12	C++
 	winEmbed.exe!main(int argc=0x00000001, char * * argv=0x003d81b0)  Line 188 +
0x9	C++
 	winEmbed.exe!mainCRTStartup()  Line 398 + 0x11	C
 	kernel32.dll!_BaseProcessStart@4()  + 0x23
Steps to trigger?  This should only happen if the window has no docshell or if
its docshell is severely confused....
(Reporter)

Updated

12 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Assignee: general → nobody
QA Contact: ian → general

Comment 2

3 years ago
Bug 316794 changed the assertion to NS_ASSERTION(ptop, "cannot get ptop"):
  http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/dom/src/base&command=DIFF_FRAMESET&file=nsGlobalWindow.cpp&rev1=1.803&rev2=1.804&root=/cvsroot

Bug 938640 then removed the assertion:
  https://hg.mozilla.org/mozilla-central/diff/b67b9a6a65fa/dom/base/nsGlobalWindow.cpp#l1.390
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.