Closed
Bug 262815
Opened 20 years ago
Closed 20 years ago
Closing tab while bookmarks view is shown can lead to crash [@ objc_msgSend]
Categories
(Camino Graveyard :: Tabbed Browsing, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino0.9
People
(Reporter: moz, Assigned: me)
Details
(Keywords: crash)
Crash Data
Attachments
(3 files, 3 obsolete files)
2.14 KB,
text/plain
|
Details | |
8.22 KB,
text/plain
|
Details | |
8.79 KB,
patch
|
jaas
:
review+
mikepinkerton
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20040930 Camino/0.8+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20040930 Camino/0.8+
Closing a tab while the bookmarks view is open will crash Camino when the mouse
cursor is moved over the rect where the tab used to be.
Reproducible: Always
Steps to Reproduce:
1. Open 3 or more tabs (so the tab bar isn't hidden when one is closed).
2. Show the bookmarks view.
3. Press Command-W to close a tab (no visual change yet, because the bookmarks
view is open).
4. Hide the bookmarks view; note that the tab is gone as could be expected.
5. Move the mouse cursor over the rect where the tab used to be.
Actual Results:
Camino crashed.
Expected Results:
Not crashed.
Updated•20 years ago
|
Target Milestone: --- → Camino0.9
Reporter | ||
Updated•20 years ago
|
Assignee: pinkerton → me
Target Milestone: Camino0.9 → ---
Reporter | ||
Updated•20 years ago
|
Target Milestone: --- → Camino0.9
Reporter | ||
Comment 1•20 years ago
|
||
Comment 3•20 years ago
|
||
FWIW, confirming this bug under Mac OS 10.3.5, Camino nightly build 2004100308.
Assignee | ||
Comment 4•20 years ago
|
||
This patch makes tab bar visibility explicit, as opposed to just looking at the
tab bar's height, which makes the code much easier to understand and gives a
mechanism for unregistering the tracking rects when the bookmark manager is
shown. The cause of the crash was that closing tabs while the tab bar was not
visible was failing to unregister the tracking rects (because the
BrowserTabView is out of the hierarchy then).
If we don't get to putting the bm manager in a tab soon, we may want to
re-evaluate the behavior of cmd-w when it's open.
Assignee | ||
Updated•20 years ago
|
Attachment #166068 -
Flags: review?(joshmoz)
Comment on attachment 166068 [details] [diff] [review]
fixes the crash
introduces a drawing problem and still crashes under the right circumstances. I
already explained it to Geoff and he can reproduce, and since its odd and sort
of complicated I don't want to write it out here.
Attachment #166068 -
Flags: review?(joshmoz) → review-
Assignee | ||
Comment 6•20 years ago
|
||
The problem Josh found was that the tab bar was not being rebuilt under certain
circumstances when the BrowserTabView had changed while it was hidden. This
version rebuilds the tab bar whenever it is shown after having been hidden,
which fixes that problem.
Attachment #166068 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #166073 -
Flags: review?(joshmoz)
Keywords: crash
Summary: Closing tab while bookmarks view is shown can lead to crash. → Closing tab while bookmarks view is shown can lead to crash [@ objc_msgSend]
Assignee | ||
Updated•20 years ago
|
Attachment #166073 -
Flags: review?(Bruce.Davidson)
Assignee | ||
Updated•20 years ago
|
Attachment #166073 -
Flags: review?(joshmoz)
Attachment #166073 -
Flags: review?(Bruce.Davidson)
Comment 7•20 years ago
|
||
Having applied the first patch it still crashes with the same set of steps to
reproduce. However the crash log is different (but the same as from an
unpatched nightly). This crash log attached.
Assignee | ||
Comment 8•20 years ago
|
||
This should fix the crash Josh and Bruce saw.
Attachment #166073 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #166621 -
Flags: review?(joshmoz)
Assignee | ||
Updated•20 years ago
|
Attachment #166621 -
Flags: review?(jpellico)
Attachment #166621 -
Attachment is patch: true
Attachment #166621 -
Attachment mime type: application/octet-stream → text/plain
Geoff - do you remember the comments made on IRC the other day? I should have
copied them into the bug. Waiting for a patch that addresses those...
Assignee | ||
Updated•20 years ago
|
Attachment #166621 -
Flags: review?(jpellico)
Attachment #166621 -
Flags: review?(joshmoz)
Assignee | ||
Comment 10•20 years ago
|
||
Sorry... didn't forget. A combination of tree bustage and the holiday are
making me a little slow. This should address the comments from IRC.
Removed some extra brackets, added comments requested by Mike and Josh.
Attachment #166621 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #167139 -
Flags: review?(joshmoz)
Attachment #167139 -
Flags: superreview?(pinkerton)
Attachment #167139 -
Flags: review?(joshmoz)
Attachment #167139 -
Flags: review+
Comment 11•20 years ago
|
||
Comment on attachment 167139 [details] [diff] [review]
address comments from IRC
+ } else if (!show && mVisible) { // being hi
i assume this should be "being hidden"
sr=pink with that change.
Attachment #167139 -
Flags: superreview?(pinkerton) → superreview+
Comment 12•20 years ago
|
||
landed
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Crash Signature: [@ objc_msgSend]
You need to log in
before you can comment on or make changes to this bug.
Description
•