Ticket #1169 (closed defect: fixed)
local file path problem
| Reported by: | MartinBudden | Owned by: | MartinBudden |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6.1 |
| Component: | core | Version: | |
| Severity: | medium | Keywords: | |
| Cc: |
Description
From BramChem?:
I'd noticed the tickets #604, #683, the tweaks attempting to solve the known issue about browsing local file in Fx3. (need to set "signed.applets.codebase_principal_support" to true)
Actually, we can still use the built in privilege api of Mozilla JaveScrit? , say "UniversalFileRead?", to get the local file path correctly using <input type="file">.
We need only make some slight changes in "config.macros.importTiddlers.onBrowseChange()",
var wizard = new Wizard(this);
// adding lines, as below
if (this.files && this.files[0]) {
try {
netscape.security.PrivilegeManager?.enablePrivilege('UniversalFileRead?')
} catch (ex) {
showException(ex);
}
};
...

