Closed Bug 1415623 Opened 7 years ago Closed 7 years ago

Preferences crash latest trunk

Categories

(SeaMonkey :: Preferences, defect)

SeaMonkey 2.55 Branch
Other
macOS
defect
Not set
normal

Tracking

(seamonkey2.55 fixed)

RESOLVED FIXED
seamonkey2.55
Tracking Status
seamonkey2.55 --- fixed

People

(Reporter: quicksilver8, Assigned: frg)

References

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:58.0) Gecko/20100101 Firefox/58.0 SeaMonkey/2.55a1
Build ID: 20171031003001

Steps to reproduce:

Downloaded new trunk today: It seems to work fine. When I select Preferences... menu item "Helper Applications" crash the program. It crashes when I select with the mouse and also when I selectitem menu via keyboard.
OS: Unspecified → Mac OS X
Hardware: Unspecified → Other
https://crash-stats.mozilla.com/report/index/61cc773c-73bd-4300-b73c-e44420171110#tab-details

XBL compat hack matched, please file a bug blocking bug 1374247. Selector: .handler-type
Status: UNCONFIRMED → NEW
Ever confirmed: true
You are better with css than me. Any quick fix available?
Flags: needinfo?(stefanh)
Flags: needinfo?(rsx11m.pub)
(In reply to Frank-Rainer Grahl (:frg) from comment #3)
> You are better with css than me. Any quick fix available?

Hmm, there are 3 ".handler-type >" in cc (https://dxr.mozilla.org/comm-central/search?q=.handler-type&redirect=false). I'd say just remove the 3 ">":s. I don't have a fresh build handy, otherwise I would have tried myself. Note that there might be more places in cc where you have the same type of rules...
Flags: needinfo?(stefanh)
\suite\themes\classic\communicator\prefpanels.css:

Adding a .listcell-iconic seems to do the job in classic. No longer crashes and the icons look ok. Seems to be the same for modern.

> .handler-action > .listcell-iconic > .listcell-icon,
> .handler-type > .listcell-iconic > .listcell-icon {
>   height: 16px;
>   width: 16x;
> }

But I am not sure if this was ever right. In suite/common/pref/prefpanels.xml both items have 2 classes?
It would be interesting if you could trigger a crash for that one as well... I haven't investigated, but dxr tells me that the class is also used on menuitems (see suite/common/pref/pref-applications.js).
Actually, the "handler-action" also needs to be fixed since I get this when loading the prefpane:
"Hit MOZ_CRASH(XBL compat hack matched, please file a bug blocking bug 1374247. Selector: .handler-action) at /Users/stefan/moz/comm-central/mozilla/layout/style/nsCSSRuleProcessor.cpp:2499"
Attached patch 1415623-prefuncrash.patch (obsolete) — Splinter Review
.listcell-icon and .listcell-label both have .listcell-iconic as the parent in listbox.xml so this should be correct.

No longer crashes in Modern and Classic. I don't see a difference in apperance under Windows compared to 2.53 so I assume it works :)

I think it just needs one review so whoever does the review might drop the second one.
Assignee: nobody → frgrahl
Status: NEW → ASSIGNED
Flags: needinfo?(rsx11m.pub)
Attachment #8927599 - Flags: review?(stefanh)
Attachment #8927599 - Flags: review?(iann_bugzilla)
Attachment #8927599 - Flags: review?(stefanh)
Attachment #8927599 - Flags: review?(iann_bugzilla)
Attachment #8927599 - Flags: review+
Comment on attachment 8927599 [details] [diff] [review]
1415623-prefuncrash.patch

Uhm, wait a second.... You have this, dont you?

listcell-iconic handler-type
  listcell-icon
  listcell-label

So I don't think that'd work.
Attachment #8927599 - Flags: review+
As discussed on irc. Tested in Classic and Modern.
Attachment #8927599 - Attachment is obsolete: true
Attachment #8927650 - Flags: review?(stefanh)
Attachment #8927650 - Flags: review?(stefanh) → review+
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/00400455524e
Use dependent class selectors in "Preferences - Helper Applications" css. r=stefanh
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.55
No longer blocks: 2.56BulkMalfunctions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: