Closed
Bug 121900
Opened 24 years ago
Closed 23 years ago
ASSERTION: NS_ENSURE_TRUE(globalObject) failed nsDocumentEncoder.cpp, line 216
Categories
(Core :: DOM: Serializers, defect)
Tracking
()
VERIFIED
WORKSFORME
mozilla1.2beta
People
(Reporter: timeless, Assigned: mozeditor)
Details
(Keywords: assertion, Whiteboard: pending)
freebsd cvs build from this weekend
Document http://tinderbox.mozilla.org/SeaMonkey-Ports/ loaded successfully
###!!! ASSERTION: NS_ENSURE_TRUE(globalObject) failed: 'globalObject', file /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp, line 216
###!!! Break: at file /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp, line 216
Suspending process; attach with the debugger.
Program received signal SIGSTOP, Stopped (signal).
0x286e97d0 in kill () from /usr/lib/libc_r.so.4
(gdb) where
#0 0x286e97d0 in kill () from /usr/lib/libc_r.so.4
#1 0x282d36e7 in nsDebug::Break (aFile=0x29637960 "/home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp", aLine=216)
at /home/timeless/mozilla/xpcom/base/nsDebug.cpp:321
#2 0x282d35c9 in nsDebug::Assertion (aStr=0x29637ba0 "NS_ENSURE_TRUE(globalObject) failed", aExpr=0x29637b81 "globalObject",
aFile=0x29637960 "/home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp", aLine=216)
at /home/timeless/mozilla/xpcom/base/nsDebug.cpp:290
#3 0x282d38d4 in nsDebug::WarnIfFalse (aStr=0x29637ba0 "NS_ENSURE_TRUE(globalObject) failed", aExpr=0x29637b81 "globalObject",
aFile=0x29637960 "/home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp", aLine=216)
at /home/timeless/mozilla/xpcom/base/nsDebug.cpp:396
#4 0x293ebf7e in IsScriptEnabled (aDoc=0x84f9800) at /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp:216
#5 0x293f0292 in nsHTMLCopyEncoder::Init (this=0x8abd600, aDocument=0x84f9800, aMimetype=@0xbfbfe6f4, aFlags=0)
at /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp:1090
#6 0x29cdd5a4 in nsCopySupport::HTMLCopy (aSel=0x888ac80, aDoc=0x84f9800, aClipboardID=0)
at /home/timeless/mozilla/layout/base/src/nsCopySupport.cpp:101
#7 0x29cd8564 in nsAutoCopyService::NotifySelectionChanged (this=0x82e7a60, aDoc=0x84f9804, aSel=0x888ac80, aReason=4)
at /home/timeless/mozilla/layout/base/src/nsAutoCopy.cpp:155
#8 0x2946ee45 in nsTypedSelection::NotifySelectionListeners (this=0x888ac80) at /home/timeless/mozilla/content/base/src/nsSelection.cpp:7499
#9 0x2945cf93 in nsSelection::NotifySelectionListeners (this=0x8566a00, aType=1)
at /home/timeless/mozilla/content/base/src/nsSelection.cpp:3052
#10 0x2945c276 in nsSelection::SetMouseDownState (this=0x8566a00, aState=0) at /home/timeless/mozilla/content/base/src/nsSelection.cpp:2771
#11 0x29b1f40f in nsFrame::HandleRelease (this=0x902d8b4, aPresContext=0x8a91400, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsFrame.cpp:1506
#12 0x29b1b328 in nsFrame::HandleEvent (this=0x902d8b4, aPresContext=0x8a91400, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsFrame.cpp:728
#13 0x29b0bdf4 in nsBlockFrame::HandleEvent (this=0x902d8b4, aPresContext=0x8a91400, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsBlockFrame.cpp:5768
#14 0x29b8510e in PresShell::HandleEventInternal (this=0x8542400, aEvent=0xbfbff1c8, aView=0x8ace300, aFlags=1, aStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsPresShell.cpp:6001
#15 0x29b849dd in PresShell::HandleEvent (this=0x8542400, aView=0x8ace300, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c, aForceHandle=1,
aHandled=@0xbfbfefd8) at /home/timeless/mozilla/layout/html/base/src/nsPresShell.cpp:5909
#16 0x29f08523 in nsView::HandleEvent (this=0x8ace300, event=0xbfbff1c8, aEventFlags=0, aStatus=0xbfbff01c, aForceHandle=1,
aHandled=@0xbfbfefd8) at /home/timeless/mozilla/view/src/nsView.cpp:374
#17 0x29f17a0d in nsViewManager::DispatchEvent (this=0x8566900, aEvent=0xbfbff1c8, aStatus=0xbfbff01c)
at /home/timeless/mozilla/view/src/nsViewManager.cpp:1907
#18 0x29f078da in HandleEvent (aEvent=0xbfbff1c8) at /home/timeless/mozilla/view/src/nsView.cpp:80
#19 0x289ec725 in nsWidget::DispatchEvent (this=0x8f91e00, aEvent=0xbfbff1c8, aStatus=@0xbfbff10c)
at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1409
#20 0x289ec2c5 in nsWidget::DispatchWindowEvent (this=0x8f91e00, event=0xbfbff1c8) at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1300
#21 0x289ec823 in nsWidget::DispatchMouseEvent (this=0x8f91e00, aEvent=@0xbfbff1c8) at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1436
#22 0x289ede61 in nsWidget::OnButtonReleaseSignal (this=0x8f91e00, aGdkButtonEvent=0x82f0018)
at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1987
#23 0x289f495a in nsWindow::HandleGDKEvent (this=0x8f91e00, event=0x82f0018) at /home/timeless/mozilla/widget/src/gtk/nsWindow.cpp:1627
#24 0x289e3c1c in dispatch_superwin_event (event=0x82f0018, window=0x8f91e00) at /home/timeless/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:943
#25 0x289e3712 in handle_gdk_event (event=0x82f0018, data=0x0) at /home/timeless/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:764
#26 0x285198ec in gdk_event_dispatch () from /usr/X11R6/lib/libgdk12.so.2
#27 0x28547d03 in g_main_dispatch () from /usr/local/lib/libglib12.so.3
#28 0x2854832c in g_main_iterate () from /usr/local/lib/libglib12.so.3
#29 0x285484c4 in g_main_run () from /usr/local/lib/libglib12.so.3
#30 0x284688b7 in gtk_main () from /usr/X11R6/lib/libgtk12.so.2
#31 0x289d93a9 in nsAppShell::Run (this=0x80d0d40) at /home/timeless/mozilla/widget/src/gtk/nsAppShell.cpp:364
#32 0x2896a799 in nsAppShellService::Run (this=0x817a8c0) at /home/timeless/mozilla/xpfe/appshell/src/nsAppShellService.cpp:302
#33 0x0805a760 in main1 (argc=3, argv=0xbfbff844, nativeApp=0x0) at /home/timeless/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1285
#34 0x0805b4a9 in main (argc=3, argv=0xbfbff844) at /home/timeless/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1625
#35 0x080557f5 in _start ()
(gdb) up 4
#4 0x293ebf7e in IsScriptEnabled (aDoc=0x84f9800) at /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp:216
216 NS_ENSURE_TRUE(globalObject, PR_TRUE);
(gdb) list
211 aDoc->GetPrincipal(getter_AddRefs(principal));
212 NS_ENSURE_TRUE(principal, PR_TRUE);
213
214 nsCOMPtr<nsIScriptGlobalObject> globalObject;
215 aDoc->GetScriptGlobalObject(getter_AddRefs(globalObject));
216 NS_ENSURE_TRUE(globalObject, PR_TRUE);
217
218 nsCOMPtr<nsIScriptContext> scriptContext;
219 globalObject->GetContext(getter_AddRefs(scriptContext));
220 NS_ENSURE_TRUE(scriptContext, PR_TRUE);
Document http://tinderbox.mozilla.org/SeaMonkey-Ports/ loaded successfully
###!!! ASSERTION: NS_ENSURE_TRUE(globalObject) failed: 'globalObject', file /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp, line 2
16
###!!! Break: at file /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp, line 216
Suspending process; attach with the debugger.
Program received signal SIGSTOP, Stopped (signal).
0x286e97d0 in kill () from /usr/lib/libc_r.so.4
(gdb) where
#0 0x286e97d0 in kill () from /usr/lib/libc_r.so.4
#1 0x282d36e7 in nsDebug::Break (aFile=0x29637960 "/home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp", aLine=216)
at /home/timeless/mozilla/xpcom/base/nsDebug.cpp:321
#2 0x282d35c9 in nsDebug::Assertion (aStr=0x29637ba0 "NS_ENSURE_TRUE(globalObject) failed", aExpr=0x29637b81 "globalObject",
aFile=0x29637960 "/home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp", aLine=216)
at /home/timeless/mozilla/xpcom/base/nsDebug.cpp:290
#3 0x282d38d4 in nsDebug::WarnIfFalse (aStr=0x29637ba0 "NS_ENSURE_TRUE(globalObject) failed", aExpr=0x29637b81 "globalObject",
aFile=0x29637960 "/home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp", aLine=216)
at /home/timeless/mozilla/xpcom/base/nsDebug.cpp:396
#4 0x293ebf7e in IsScriptEnabled (aDoc=0x84f9800) at /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp:216
#5 0x293f0292 in nsHTMLCopyEncoder::Init (this=0x8abd600, aDocument=0x84f9800, aMimetype=@0xbfbfe6f4, aFlags=0)
at /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp:1090
#6 0x29cdd5a4 in nsCopySupport::HTMLCopy (aSel=0x888ac80, aDoc=0x84f9800, aClipboardID=0)
at /home/timeless/mozilla/layout/base/src/nsCopySupport.cpp:101
#7 0x29cd8564 in nsAutoCopyService::NotifySelectionChanged (this=0x82e7a60, aDoc=0x84f9804, aSel=0x888ac80, aReason=4)
at /home/timeless/mozilla/layout/base/src/nsAutoCopy.cpp:155
#8 0x2946ee45 in nsTypedSelection::NotifySelectionListeners (this=0x888ac80) at /home/timeless/mozilla/content/base/src/nsSelection.cpp:7499
#9 0x2945cf93 in nsSelection::NotifySelectionListeners (this=0x8566a00, aType=1)
at /home/timeless/mozilla/content/base/src/nsSelection.cpp:3052
#10 0x2945c276 in nsSelection::SetMouseDownState (this=0x8566a00, aState=0) at /home/timeless/mozilla/content/base/src/nsSelection.cpp:2771
#11 0x29b1f40f in nsFrame::HandleRelease (this=0x902d8b4, aPresContext=0x8a91400, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsFrame.cpp:1506
#12 0x29b1b328 in nsFrame::HandleEvent (this=0x902d8b4, aPresContext=0x8a91400, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsFrame.cpp:728
#13 0x29b0bdf4 in nsBlockFrame::HandleEvent (this=0x902d8b4, aPresContext=0x8a91400, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsBlockFrame.cpp:5768
#14 0x29b8510e in PresShell::HandleEventInternal (this=0x8542400, aEvent=0xbfbff1c8, aView=0x8ace300, aFlags=1, aStatus=0xbfbff01c)
at /home/timeless/mozilla/layout/html/base/src/nsPresShell.cpp:6001
#15 0x29b849dd in PresShell::HandleEvent (this=0x8542400, aView=0x8ace300, aEvent=0xbfbff1c8, aEventStatus=0xbfbff01c, aForceHandle=1,
aHandled=@0xbfbfefd8) at /home/timeless/mozilla/layout/html/base/src/nsPresShell.cpp:5909
#16 0x29f08523 in nsView::HandleEvent (this=0x8ace300, event=0xbfbff1c8, aEventFlags=0, aStatus=0xbfbff01c, aForceHandle=1,
aHandled=@0xbfbfefd8) at /home/timeless/mozilla/view/src/nsView.cpp:374
#17 0x29f17a0d in nsViewManager::DispatchEvent (this=0x8566900, aEvent=0xbfbff1c8, aStatus=0xbfbff01c)
at /home/timeless/mozilla/view/src/nsViewManager.cpp:1907
#18 0x29f078da in HandleEvent (aEvent=0xbfbff1c8) at /home/timeless/mozilla/view/src/nsView.cpp:80
#19 0x289ec725 in nsWidget::DispatchEvent (this=0x8f91e00, aEvent=0xbfbff1c8, aStatus=@0xbfbff10c)
at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1409
#20 0x289ec2c5 in nsWidget::DispatchWindowEvent (this=0x8f91e00, event=0xbfbff1c8) at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1300
#21 0x289ec823 in nsWidget::DispatchMouseEvent (this=0x8f91e00, aEvent=@0xbfbff1c8) at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1436
#22 0x289ede61 in nsWidget::OnButtonReleaseSignal (this=0x8f91e00, aGdkButtonEvent=0x82f0018)
at /home/timeless/mozilla/widget/src/gtk/nsWidget.cpp:1987
#23 0x289f495a in nsWindow::HandleGDKEvent (this=0x8f91e00, event=0x82f0018) at /home/timeless/mozilla/widget/src/gtk/nsWindow.cpp:1627
#24 0x289e3c1c in dispatch_superwin_event (event=0x82f0018, window=0x8f91e00) at /home/timeless/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:943
#25 0x289e3712 in handle_gdk_event (event=0x82f0018, data=0x0) at /home/timeless/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:764
#26 0x285198ec in gdk_event_dispatch () from /usr/X11R6/lib/libgdk12.so.2
#27 0x28547d03 in g_main_dispatch () from /usr/local/lib/libglib12.so.3
#28 0x2854832c in g_main_iterate () from /usr/local/lib/libglib12.so.3
#29 0x285484c4 in g_main_run () from /usr/local/lib/libglib12.so.3
#30 0x284688b7 in gtk_main () from /usr/X11R6/lib/libgtk12.so.2
#31 0x289d93a9 in nsAppShell::Run (this=0x80d0d40) at /home/timeless/mozilla/widget/src/gtk/nsAppShell.cpp:364
#32 0x2896a799 in nsAppShellService::Run (this=0x817a8c0) at /home/timeless/mozilla/xpfe/appshell/src/nsAppShellService.cpp:302
#33 0x0805a760 in main1 (argc=3, argv=0xbfbff844, nativeApp=0x0) at /home/timeless/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1285
#34 0x0805b4a9 in main (argc=3, argv=0xbfbff844) at /home/timeless/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1625
#35 0x080557f5 in _start ()
(gdb) up 4
#4 0x293ebf7e in IsScriptEnabled (aDoc=0x84f9800) at /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp:216
216 NS_ENSURE_TRUE(globalObject, PR_TRUE);
(gdb) list
211 aDoc->GetPrincipal(getter_AddRefs(principal));
212 NS_ENSURE_TRUE(principal, PR_TRUE);
213
214 nsCOMPtr<nsIScriptGlobalObject> globalObject;
215 aDoc->GetScriptGlobalObject(getter_AddRefs(globalObject));
216 NS_ENSURE_TRUE(globalObject, PR_TRUE);
217
218 nsCOMPtr<nsIScriptContext> scriptContext;
219 globalObject->GetContext(getter_AddRefs(scriptContext));
220 NS_ENSURE_TRUE(scriptContext, PR_TRUE);
#5 0x293f0292 in nsHTMLCopyEncoder::Init (this=0x8abd600, aDocument=0x84f9800, aMimetype=@0xbfbfe6f4, aFlags=0)
at /home/timeless/mozilla/content/base/src/nsDocumentEncoder.cpp:1090
1090 if (!IsScriptEnabled(mDocument))
(gdb) l
1085
1086 // Make all links absolute when copying
1087 // (see related bugs #57296, #41924, #58646, #32768)
1088 mFlags = aFlags | OutputAbsoluteLinks;
1089
1090 if (!IsScriptEnabled(mDocument))
1091 mFlags |= OutputNoScriptContent;
1092
1093 nsresult rv;
1094 mParserService = do_GetService(kParserServiceCID, &rv);
Could someone please explain the purpose of calling IsScriptEnabled?
steps .. hrm, load tinderbox in browser and mouse select around.
| Assignee | ||
Comment 2•23 years ago
|
||
The days of having a half dozen milestones out in front of us to divide bugs
between seem to be gone, though I dont know why. Lumping everything together as
far out as I can. I'll pull back things that I am working on as I go.
Target Milestone: --- → mozilla1.2beta
Comment 3•23 years ago
|
||
no answer ;)
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•