

This should beĮnough to stop the crash if we actually had nsStyleSet::Shutdown called on us.Ģ) We could check for mIsDestroying in PresShell::Observe and bail out if so. That said, there are some bandaids we could apply here.ġ) nsStyleSet::GatherRuleProcessors could bail out if mInShutdown. Which is to say I'm not quite sure how we can end up with a presshell that has a shutdown style set but is still getting the observer notification. Presshell registers for these observer notifications in PresShell::Init and removes itself from observing them in PresShell::Destroy, before shutting down the styleset. The stack above shows JS code from Adblock Plus, presumably, running and adding a user sheet, which sends an observer notification, which the presshell is responding to. The ordering there is mStyleSet->BeginShutdown(), some other cleanup, mStyleSet->Shutdown(). Or, I guess mRuleTree::Init never got called.


So mRuleTree being null means that nsStyleSet::Shutdown got called, I believe. My initial instinct is that it's probably due to Yandex toolbar, but I can't confirm right now since correlation files are currently broken.Ġ xul.dll nsStyleSet::GatherRuleProcessors(nsStyleSet::sheetType) layout/style/nsStyleSet.cppġ xul.dll nsStyleSet::EndUpdate() layout/style/nsStyleSet.cppĢ xul.dll PresShell::AddUserSheet(nsISupports*) layout/base/nsPresShell.cppģ xul.dll PresShell::Observe(nsISupports*, char const*, wchar_t const*) layout/base/nsPresShell.cppĤ xul.dll nsObserverList::NotifyObservers(nsISupports*, char const*, wchar_t const*) xpcom/ds/nsObserverList.cppĥ xul.dll nsObserverService::NotifyObservers(nsISupports*, char const*, wchar_t const*) xpcom/ds/nsObserverService.cppĦ xul.dll nsStyleSheetService::LoadAndRegisterSheet(nsIURI*, unsigned int) layout/base/nsStyleSheetService.cppħ xul.dll NS_InvokeByIndex xpcom/reflect/xptcall/md/win32/xptcinvoke.cppĨ xul.dll XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) js/xpconnect/src/XPCWrappedNative.cppĩ xul.dll XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) js/xpconnect/src/XPCWrappedNativeJSOps.cppġ0 xul.dll js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) js/src/vm/Interpreter.cpp It is highly correlated with "ru" locale setting. This is #4 on the topcrash scores on 41.0 mostly due to being a startup crash. This bug was filed from the Socorro interface and is
