Project: SWT
Bug 357138 [Mozilla] should not use nsIFile.getNative*()
Reported: 2011-09-08 14:38:55 | Status: resolved fixed

BDS posted about this on a mozilla newsgroup today. nsIFile.getNative*() methods should not be used because they do not support filenames with unusual characters. The Browser's Mozilla implementation currently uses nsIFile.getNativePath() twice and nsIFile.getNativeLeafName() once. These should be changed to use their UTF-16 counterparts.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Download.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePicker.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java