Closed
Bug 430506
Opened 16 years ago
Closed 16 years ago
Firefox crash on Exit when the Adblock Plus Pref Window is open
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: cbook, Assigned: smichaud)
References
Details
(Keywords: crash)
Attachments
(2 files)
38.48 KB,
text/plain
|
Details | |
1.27 KB,
patch
|
jaas
:
review+
roc
:
superreview+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008042320 Firefox/3.0pre ID:2008042320 Steps to reproduce: (thanks to bret for helping me finding this :) -> Install Adblock Plus -> Have some tabs open -> Open the Adblock Plus Prefs via the Extension Manager -> Close Firefox with the Adblock Plus Prefs open --> Crash on Exit Before Firefox crashes, i get: Assertion failure: 0 == rv, at /debug/mozilla/nsprpub/pr/src/pthreads/ptsynch.c:207 ./run-mozilla.sh: line 131: 24669 Abort trap "$prog" ${1+"$@"} The Assertion and Stack looks similar to bug 429215, but this bug here has completely different steps to reproduce and bug 429215 is even fixed
Flags: blocking1.9?
Assignee | ||
Comment 1•16 years ago
|
||
I've confirmed this. I also confirmed that bug 429215 hasn't recurred: I tried quitting with only the Amazing Media Browser's settings window open, and with that window open on top of the Extension Manager (which I hadn't tested before) -- neither caused a crash. I'll be working on this (probably tomorrow). Adblock Plus is a popular extension. I agree with Tomcat that this should probably block 1.9.
Comment 2•16 years ago
|
||
Does this happen only in a debug build? If so, not a blocker. If not, please renom.
Flags: wanted1.9.0.x+
Flags: blocking1.9?
Flags: blocking1.9-
Assignee | ||
Comment 3•16 years ago
|
||
Oops. Should have mentioned that I tested with an opt build (today's nightly).
Flags: blocking1.9- → blocking1.9?
Comment 4•16 years ago
|
||
I cannot reproduce it on Windows, guess this is Mac only. In general, there should be nothing special about this window. Only two things I can think about: it has a menu, and it keeps a reference to the content window that was active when you opened it. If it is the former, exiting Firefox with DOM Inspector window open should also cause a crash.
Reporter | ||
Comment 5•16 years ago
|
||
changing summary per comment #3 (thanks steven btw)
Summary: Firefox Debug Build crash on Exit when the Adblock Plus Pref Window is open → Firefox crash on Exit when the Adblock Plus Pref Window is open
Comment 6•16 years ago
|
||
While it's popular, I'm still not convinced we should block if this was the last bug on the list. Any other characteristics that would indicate we should hold the release for this? Is it exploitable? Jessie, what do you think?
Assignee | ||
Comment 7•16 years ago
|
||
My guess is this isn't limited to the particular case that was reported. I'll know more once I've looked into it further (which I'm doing right now).
Assignee | ||
Comment 8•16 years ago
|
||
I'm now pretty sure this bug has an easy fix. I should have a patch up in an hour or so.
Assignee | ||
Comment 9•16 years ago
|
||
> I'm now pretty sure this bug has an easy fix.
Yup, it does.
Turns out that (under some circumstances) the value of
sMenuBarX::sLastGeckoMenuBarPainted can change during
[NativeMenuItemTarget menuItemHit:].
My current patch bails when this happens. This seems the safest thing
to do ... though in principal we could just reset the menuBar local
variable and continue.
A tryserver build will follow shortly.
Attachment #317792 -
Flags: review?(joshmoz)
Assignee | ||
Comment 10•16 years ago
|
||
Here's a tryserver build made with this patch: https://build.mozilla.org/tryserver-builds/2008-04-25_16:06-smichaud@pobox.com-bugzilla430506/smichaud@pobox.com-bugzilla430506-firefox-try-mac.dmg
Assignee | ||
Updated•16 years ago
|
Assignee: joshmoz → smichaud
Reporter | ||
Comment 11•16 years ago
|
||
(In reply to comment #10) > Here's a tryserver build made with this patch: > > https://build.mozilla.org/tryserver-builds/2008-04-25_16:06-smichaud@pobox.com-bugzilla430506/smichaud@pobox.com-bugzilla430506-firefox-try-mac.dmg > This tryserver build fix the crash for me (thanks steven!). Another testcase where you crash with a unpatched build is with the "mid" dictionary extension (https://addons.mozilla.org/en-US/firefox/addon/524). When you close Firefox with the mid "toolbar" open, you crash also with a unpatched build, like a latest debug Build. The tryserver build also fix this crash with the mid extension, so i think this bug is really a 1.9 blocker.
Comment 12•16 years ago
|
||
OK, so, let's take the patch, but I still think if this were the last bug in 1.9, I wouldn't hold the release a day. -'ing. Again, we'll take the patch. Request approval once reviewed.
Flags: blocking1.9? → blocking1.9-
Comment 13•16 years ago
|
||
Comment on attachment 317792 [details] [diff] [review] Fix Yeah, this is the right thing to do.
Attachment #317792 -
Flags: superreview?(roc)
Attachment #317792 -
Flags: review?(joshmoz)
Attachment #317792 -
Flags: review+
Attachment #317792 -
Flags: superreview?(roc) → superreview+
Attachment #317792 -
Flags: approval1.9?
Comment 14•16 years ago
|
||
Comment on attachment 317792 [details] [diff] [review] Fix a1.9+=damons
Attachment #317792 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 15•16 years ago
|
||
Landed on trunk: Checking in widget/src/cocoa/nsMenuBarX.mm; /cvsroot/mozilla/widget/src/cocoa/nsMenuBarX.mm,v <-- nsMenuBarX.mm new revision: 1.69; previous revision: 1.68 done
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 16•16 years ago
|
||
verified fixed using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008043013 Firefox/3.0pre - no crash on my steps to reproduce --> Verified fixed
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Flags: wanted1.9.0.x+
You need to log in
before you can comment on or make changes to this bug.
Description
•