TiddlyWiki.org

Ticket #683 (new defect)

Opened 2 months ago

Last modified 1 month ago

ImportTiddlers defect on Firefox 3

Reported by: FND Assigned to: JeremyRuston
Priority: critical Milestone: 2.5
Component: core Version:
Severity: high Keywords: browsers
Cc:

Description

As discussed here, Firefox 3 seems to return unexpected values when browsing for a file to import.

while the value displayed in the field after browsing is the complete path+filename, the .value attribute of the field that is accessible to the javascript code only reports the filename portion of that path+filename

Change History

23/06/08 03:18:33 changed by EricShulman

See http://www.TiddlyTools.com/#CoreTweaks for a possible 'fixup' for FireFox?...

  • The FF3 "type=file" "browse" control no longer provides access to the full path/filename of the selected file. This was done deliberately by the mozilla team, as part of a 'security improvement'.
  • Unfortunately, TW still needs a way to ask for a *complete* path/file in order to properly request a local file for import, sync, etc.
  • To provide TW with the information it needs when using FF3 (or any version of FireFox? for that matter), we can replace the use of the standard "browse" with a combination of text input+button controls that, when pressed, uses browser-secured filesystem I/O.
  • The actual code tweak involves replacing the HTML that defines the standard file control used by backstage>import, so that, when FireFox? is used, an alternative fragment of HTML is used to render a secured text+button combination instead, which then re-enables access to the complete path+filename

Note: There is also the possibility of providing a similar solution for IE, so that it can be more secure as well.

23/06/08 13:40:19 changed by FND

  • keywords set to browsers.

08/07/08 14:16:33 changed by MartinBudden

  • milestone changed from 2.4.1 to 2.5.