Closed Bug 802328 Opened 13 years ago Closed 13 years ago

When launching open file dialog: Mozilla has caught an Obj-C exception [NSInternalInconsistencyException: Class check]

Categories

(Core :: Widget: Cocoa, defect)

17 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: eric.promislow, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0) Gecko/20100101 Firefox/10.0 Build ID: 20120129021758 Steps to reproduce: Called nsFilePicker::GetLocalFiles Actual results: I get an exception reported. The open-file dialog does appear, but this text appears in the console at the same time: 2012-10-16 13:12:37.692 komodo-bin[6567:1203] *** Assertion failure in -[NSOpenPanel _navView], /SourceCache/AppKit/AppKit-1138.51/Nav.subproj/NSSavePanel.m:489 2012-10-16 13:12:37.692 komodo-bin[6567:1203] Mozilla has caught an Obj-C exception [NSInternalInconsistencyException: Class check] Expected results: No exceptions. If Mozilla 17+ is targeting OSX 10.6+, why not directly call [panel setShowsHiddenFiles:...]?
Please give us a testcase. Either post a URL that demonstrates the problem (together with steps-to-reproduce), or write a simple testcase and attach it to the bug.
See https://bugzilla.mozilla.org/show_bug.cgi?id=802776#c2 for more comments on this attachment.
Installing this extension adds an Opentmp button to the Tools menu, which (when you click it) exercises your code from comment #2. (Note that it opens the /tmp directory instead of the directory your code originally specified.) The code won't work in a simple web page, because it requires privileged access. I'm not able to reproduce your bug with this extension, in FF 16.0.2, FF 10.0.2 or today's mozilla-central nightly.
Somehow I didn't notice that you'd already written an extension for bug 802776. But I can't reproduce either bug with that extension, either. If/when you do find a way to reproduce either this bug or bug 802776, please let us know. In the meantime I'll close both bugs WORKSFORME. I'm particularly interested in finding out how to reproduce this bug. It may be related to bug 695524, a (so-far) non-reproducible Apple bug that's been plaguing us since OS X Lion was first released.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
I'm fine leaving it at WORKSFORME. If I find time I'll build a vanilla Firefox with Moz 17 on Mountain Lion and see if I can reproduce the problem.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: