Giter Club home page Giter Club logo

Comments (9)

pmario avatar pmario commented on September 25, 2024

.hta is a MS specific extension: https://en.wikipedia.org/wiki/HTML_Application It worked well with IE 5 to 9. With IE there is a possibility to natively save / overwrite an existing file. IE 10+ know about the file extension, but have limited possibilities.

I did a short test and it still saves with IE win10.

Since it still works with IE10+ and windows, I'll close the issue. ...

from file-backups.

pmario avatar pmario commented on September 25, 2024

I used the extension .hta from the early beginnings of using TW classic. Previous use of TW with file-backups worked with this extension. Unfortunately cannot provide info on previous use since several updates of FF (and probably file-backups) occurred since last use of one of my TWs.

are you sure? My system even doesn't know about the extension.

from file-backups.

pmario avatar pmario commented on September 25, 2024

ubuntu 17.10 can't handle the file type. .. so It opens the system save dialog. ...

from file-backups.

pinysuse avatar pinysuse commented on September 25, 2024

Yes, I am sure about having used .hta
...however, I do not find any MIME-type definition on my system

Test:

Naming the TW5 file just "tttt" w/o extension:

file tttt
tttt: HTML document, UTF-8 Unicode text, with very long lines, with CRLF, LF line terminators
"double click" in dolphin opens FF correctly and save from within TW5 creates a file in "~/Downloads" (i.e. file-backup mechanism fails)

Naming the TW5 file arbitrily "tttt2.asdf"

file tttt2.asdf and "double click" in dolphin -> exactly same behaviour

Naming the TW5 file arbitrily "tttt3.pdf"

file tttt3.pdf
tttt3.pdf: HTML document, UTF-8 Unicode text, with very long lines, with CRLF, LF line terminators
"double click" in dolphin opens PDF viewer (okular) which complains about an Error

Theory:

  1. Unknown extensions are handled by file magic
  2. Registered file extensions (the shadow of DOS...) are opened acc. the MIME-type definition
  3. file-backups somehow requires extension .html

Note:

I think it is not really important which value this file extension has (anyway just a DOS thingy) - it would be good for the user to know that this applications needs ".html"

from file-backups.

pmario avatar pmario commented on September 25, 2024

As I wrote. ... None of my FireFox browsers, windows and ubuntu, know about .hta files, as web pages. ..

They don't open them. I do get a dialog: "What should FF do?" ... Which is a OS dialog. ...

I did test .hta files with IE on windows 10 it saves. ... NO plugin needed. ... It is MS specific and also Edge browser doesn't open it. ...

So I wont-fix .hta specific problems. ...

from file-backups.

pmario avatar pmario commented on September 25, 2024

At the moment the plugin uses 2 patterns to be enabled.

      "matches": [
        "file:///*.html",
        "file:///*.htm"
      ],

I'll check if it makes sense to extend those ... Not sure atm. ...

from file-backups.

pmario avatar pmario commented on September 25, 2024

Web extensions have a manifest.json file, that is evaluated by browsers at addOn installation time. ... It is relatively strict, for security reasons. ...

One goal of the plugin was, to use as less permissions as possible. That's why it only uses 2 at the moment.

  • Download files
  • Access to browser tabs

If I add arbitrary extension I'd need to use file:///*.* which would inject the plugin scripts into every page, that is loaded from the users drive.

Call me paranoid, but I personally don't want any plugin to have this behavior. ... except add-blockers.

I did update the addOn info page: https://addons.mozilla.org/en-US/firefox/addon/file-backups/

from file-backups.

pinysuse avatar pinysuse commented on September 25, 2024

I am fully with you - just a little hint in the documentation might help others stumbling into this.
Linux-Users might not be so used to beware correct filename extensions

In case you added this already on the info page - please apologize but I just checked and didn't notice.

from file-backups.

pmario avatar pmario commented on September 25, 2024

In case you added this already on the info page - please apologize but I just checked and didn't notice.

No problem. Thx for your info! ... I did add it 1 day ago :)

from file-backups.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.