~mozillateam/firefox/firefox-4.0.head

« back to all changes in this revision

Viewing changes to debian/globalmenu/components/src/uGlobalMenuSeparator.cpp

  • Committer: Chris Coulson
  • Date: 2011-05-17 16:51:45 UTC
  • Revision ID: chrisccoulson@ubuntu.com-20110517165145-scaqfvrki7qxzvol
* Fix LP: #783790 - Firefox 4 crashes when opening Selenium IDE window.
  Ignore signals for menus without popups
* Fix LP: #783856 - Firefox 4.0.1 Crash Report 
  [@ uGlobalMenuBar::~uGlobalMenuBar ]. Don't bail out of building a menu
  when encountering a non-XUL element. Also toughen up destructors to not
  crash if the menuitem never initialized properly
* Fix LP: #783997 - Firefox 4.0.1 Crash Report
  [@ uGlobalMenuBar::ShouldParentStayVisible ]. Don't crash if the window
  gets destroyed before the panel responds to RegisterWindow

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
uGlobalMenuSeparator::~uGlobalMenuSeparator()
93
93
{
94
 
  mListener->UnregisterForContentChanges(mContent);
 
94
  if (mListener) {
 
95
    mListener->UnregisterForContentChanges(mContent);
 
96
  }
95
97
 
96
98
  if (mDbusMenuItem)
97
99
    g_object_unref(mDbusMenuItem);