W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2017

Re: [whatwg] Accessing local files with JavaScript portably and securely

From: duanyao <duanyao@ustc.edu>
Date: Tue, 18 Apr 2017 01:19:31 +0800
To: Anne van Kesteren <annevk@annevk.nl>
Message-ID: <01b8a6b3-08bf-c23a-38c9-6de1480636d9@ustc.edu>
Cc: David Kendal <me@dpk.io>, "whatwg@whatwg.org" <whatwg@whatwg.org>, Domenic Denicola <d@domenic.me>
在 2017年04月18日 00:03, Anne van Kesteren 写道:
> On Mon, Apr 17, 2017 at 5:53 PM, duanyao <duanyao@ustc.edu> wrote:
>> When we want to write a web application portable across multiple server
>> OSes, these issues could happen too.
> Yes, but then you run into implementation bugs. Which are a very
> different category from proprietary OS design decisions.
I'm not sure the meaning of "implementation bugs" -- the bug of the web 
application or the server OSes?

It seems you imply that "OS design decisions" are arbitray or unstable 
over time, which is not qutie true.
As to filesystems' semantics, all major OSes are very stable in last 
decades and unlikely to diverge dramatically
in the next decade. Apple's HFS+ normalizes unicodes, but the newer APFS 
doesn't,
which is converging to other OSes.

>
>> I think "portable" is never absolute.
> Sure, but at least that's the goal for those participating in the
> non-proprietary web ecosystem.
I think you overstate the proprietariness of filesystems' semantics. 
Developers and users make
use of local html files (in cross-platform manner) for decades and 
generally feel positive. Please
Don't ignore this.

>
>
>> There are always incompatibilities
>> between browsers, and even once standardized feature can be
>> deprecated/removed in future, e.g. `window.showModalDialog()`,
>> `<applet>` and `<keygen>`.
> This happens rarely and when it happens it's a very considered
> decision involving lots of people. It's usually related to complexity,
> lack of use, and security.
>
>
Sure. Proprietary OSes don't change thier core API in incompatibe way 
for no good reason, too.

I don't expect a local web app tested on major OSes today would stop to
work tomorrow due to a filesystem API change.
Received on Monday, 17 April 2017 17:22:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 17 April 2017 17:22:15 UTC