Ticket #1169 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

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);

}

};

...

Attachments

tweakImport.js Download (0.5 KB) - added by MartinBudden 4 years ago.

Change History

Changed 4 years ago by MartinBudden

Changed 4 years ago by MartinBudden

  • priority changed from undefined to minor
  • severity changed from undefined to medium
  • milestone set to 2.6

Changed 4 years ago by MartinBudden

  • owner changed from JeremyRuston to MartinBudden
  • status changed from new to assigned

Changed 3 years ago by MartinBudden

  • milestone changed from 2.6 to 2.6.1

Changed 3 years ago by MartinBudden

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in changeset:12340

Note: See TracTickets for help on using tickets.