(In reply to Oliver Henshaw from comment #18) > I managed to understand the shutdown sequence a little better by attaching > gdb and sprinkling some breakpoints around then doing a normal quit.
https://wiki.mozilla.org/XPCOM_Shutdown may be useful, but it sounds like you've worked things out anyway. (In reply to Oliver Henshaw from comment #24) > Questions > --------- > > * Is the #define gtk_function gtk_function_, #undef gtk_function dance in the > gtk compat defines the right approach? It's probably possible to use macros to save some of the repetition, if you like. See, for example, https://dxr.mozilla.org/mozilla-central/rev/68c0b7d6f16ce5bb023e08050102b5f2fe4aacd8/toolkit/system/gnome/nsPackageKitService.cpp#48 https://dxr.mozilla.org/mozilla-central/rev/68c0b7d6f16ce5bb023e08050102b5f2fe4aacd8/dom/gamepad/linux/udev.h#74 But what's there already looks fine, except that I don't know why the #undefs are required. > * Is the mozgtk stub symbol definition sufficient for gtk3 builds? Yes, good. > * are gio watch callbacks always guaranteed to be on the main thread? Yes, if set up on the main thread. > * what should I use to log instead of printf? What log facilities are still > available in late shutdown? MOZ_LOG and LazyLogModule from https://dxr.mozilla.org/mozilla-central/source/xpcom/base/Logging.h should work fine, I think. That's the preferred system if it works, and I don't see it being shut down at any stage. > Remaining issues > ---------------- > > * The interaction call/response with the session manager may need some work > - in fact it needs to be tested at all. I haven't looked at that yet. Will make some time to look over this patch, thanks. > * Doesn't set a couple of SM properties that gnome-client did Which ones are those? > * Doesn't use grabs to prevent interaction at the wrong time like > gnome-client did. But the libegg SM implementation doesn't do anything to > prevent interaction, as far as I can tell. So I'm not sure what the > correct behaviour is. I don't know of a good reason why we need to care about that. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/867424 Title: Oneric: On boot up Firefox always displays the “Well, This Is Embarrassing” screen. To manage notifications about this bug go to: https://bugs.launchpad.net/firefox/+bug/867424/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs