Open Bug 1062357 Opened 6 years ago Updated 1 year ago

mochitest-bc ends up destroying still-live documents

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
macOS
defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

Details

(Whiteboard: [MemShrink:P2])

See bug 1061202 comment 32.  The log has:

08:01:00     INFO -  --DOMWINDOW == 2 (0x11012b800) [pid = 1281] [serial = 2] [outer = 0x0] [url = about:blank]
08:01:00     INFO -  [Parent 1281] ###!!! ASSERTION: Destroying a currently-showing document: '!mIsShowing', file /builds/slave/m-in-osx64-d-00000000000000000/build/content/base/src/nsDocument.cpp, line 1602
08:01:01     INFO -  nsHTMLDocument::~nsHTMLDocument() [memory/mozalloc/mozalloc.h:225]
08:01:01     INFO -  SnowWhiteKiller::~SnowWhiteKiller() [xpcom/glue/nsTArray.h:328]
08:01:01     INFO -  nsCycleCollector::FreeSnowWhite(bool) [xpcom/base/nsCycleCollector.cpp:2792]
08:01:01     INFO -  nsCycleCollector::BeginCollection(ccType, nsICycleCollectorListener*) [xpcom/glue/nsCOMPtr.h:816]
08:01:01     INFO -  nsCycleCollector::Collect(ccType, js::SliceBudget&, nsICycleCollectorListener*) [xpcom/base/nsCycleCollector.cpp:3583]
08:01:01     INFO -  nsCycleCollector::Shutdown() [xpcom/base/nsCycleCollector.cpp:3536]
08:01:01     INFO -  nsCycleCollector_shutdown() [xpcom/base/nsAutoPtr.h:836]
08:01:01     INFO -  mozilla::ShutdownXPCOM(nsIServiceManager*) [gfx/layers/ipc/AsyncTransactionTracker.h:130]
08:01:01     INFO -  ScopedXPCOMStartup::~ScopedXPCOMStartup() [toolkit/xre/nsAppRunner.cpp:1249]
08:01:01     INFO -  XREMain::XRE_main(int, char**, nsXREAppData const*) [memory/mozalloc/mozalloc.h:225]
08:01:01     INFO -  XRE_main [toolkit/xre/nsAppRunner.cpp:4386]
08:01:01     INFO -  main [browser/app/nsBrowserApp.cpp:282]
Whiteboard: [MemShrink]
Whiteboard: [MemShrink] → [MemShrink:P2]
I wonder if mIsShowing handling is wrong for print preview or print documents.
At least I wouldn't be surprised.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.