Skip to content

Commit

Permalink
Issue 5809: Firebug triggers Firefox crash on Ubuntu since the fix fo…
Browse files Browse the repository at this point in the history
…r issue 5427
  • Loading branch information
janodvarko committed Aug 14, 2012
1 parent 8970fa8 commit 4659a62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions extension/content/firebug/firebugOverlay.xul
Expand Up @@ -62,8 +62,8 @@
<image src="chrome://firebug/skin/firebug.png"/>

<menupopup id="menu_firebug_iconMenu" class="fbFirebugMenuPopup"
onpopupshowing="return Firebug.GlobalUI.onMenuShowing(this);"
onpopuphiding="return Firebug.GlobalUI.onMenuHiding(this);">
onpopupshowing="return Firebug.GlobalUI.onMenuShowing(this, event);"
onpopuphiding="return Firebug.GlobalUI.onMenuHiding(this, event);">
<!-- Content comes from firebugMenuContent -->
</menupopup>
</toolbarbutton>
Expand Down
20 changes: 10 additions & 10 deletions extension/content/firebug/firefox/browserOverlay.js
Expand Up @@ -374,10 +374,10 @@ Firebug.GlobalUI =
PrefLoader.setPref(option, checked);
},

onMenuShowing: function(popup)
onMenuShowing: function(popup, event)
{
// If this popup is already open the event comes from a sub menu, just ignore it.
if (popup.state == "open")
// If the event comes from a sub menu, just ignore it.
if (popup != event.target)
return;

while (popup.lastChild)
Expand Down Expand Up @@ -451,7 +451,7 @@ Firebug.GlobalUI =

onMenuHiding: function(popup)

This comment has been minimized.

Copy link
@simonlindholm

simonlindholm Aug 14, 2012

Member

Needs an event parameter?

This comment has been minimized.

Copy link
@janodvarko

janodvarko Aug 14, 2012

Author Member

Yes, thanks!
Fixed at 81ec221

Honza

{
if (popup.state == "open")
if (popup != event.target)
return;

// xxxHonza: I don't know why the timeout must be here, but if it isn't
Expand Down Expand Up @@ -1072,8 +1072,8 @@ $menupopupOverlay($("menuWebDeveloperPopup"), [
$menupopup({
id: "menu_firebug_firebugMenuPopup",
"class": "fbFirebugMenuPopup",
onpopupshowing: "return Firebug.GlobalUI.onMenuShowing(this);",
onpopuphiding: "return Firebug.GlobalUI.onMenuHiding(this);"
onpopupshowing: "return Firebug.GlobalUI.onMenuShowing(this, event);",
onpopuphiding: "return Firebug.GlobalUI.onMenuHiding(this, event);"
})
]),
$menuseparator({
Expand All @@ -1095,8 +1095,8 @@ $menupopupOverlay($("appmenu_webDeveloper_popup"), [
$menupopup({
id: "appmenu_firebugMenuPopup",
"class": "fbFirebugMenuPopup",
onpopupshowing: "return Firebug.GlobalUI.onMenuShowing(this);",
onpopuphiding: "return Firebug.GlobalUI.onMenuHiding(this);"
onpopupshowing: "return Firebug.GlobalUI.onMenuShowing(this, event);",
onpopuphiding: "return Firebug.GlobalUI.onMenuHiding(this, event);"
})
]),
$menuseparator({
Expand All @@ -1117,8 +1117,8 @@ $menupopupOverlay($("toolsPopup"), [
$menupopup({
id: "toolsmenu_firebugMenuPopup",
"class": "fbFirebugMenuPopup",
onpopupshowing: "return Firebug.GlobalUI.onMenuShowing(this);",
onpopupshowing: "return Firebug.GlobalUI.onMenuHiding(this);"
onpopupshowing: "return Firebug.GlobalUI.onMenuShowing(this, event);",
onpopupshowing: "return Firebug.GlobalUI.onMenuHiding(this, event);"
})
])
]);
Expand Down

0 comments on commit 4659a62

Please sign in to comment.