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

2017-04-17 Thread Anne van Kesteren
On Mon, Apr 17, 2017 at 2:54 PM, duanyao wrote: > 在 2017年04月15日 02:09, Domenic Denicola 写道: >> file: URLs are part of the web, e.g. parsing such URLs when used in >> tags, just like gopher: URLs or mailto: URLs. The behavior once navigating >> to file: URLs (or gopher: URLs, or

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

2017-04-17 Thread duanyao
在 2017年04月17日 21:04, Anne van Kesteren 写道: On Mon, Apr 17, 2017 at 2:54 PM, duanyao wrote: 在 2017年04月15日 02:09, Domenic Denicola 写道: file: URLs are part of the web, e.g. parsing such URLs when used in tags, just like gopher: URLs or mailto: URLs. The behavior once

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

2017-04-17 Thread Anne van Kesteren
On Mon, Apr 17, 2017 at 3:32 PM, duanyao wrote: > So you mean file: protocol is not portable? For absolute file: url, true; > for relative url, almost not true. > > When writing web pages, no one use absolute file: urls in practice, so this > is a non-issue. Neither is portable

Re: [whatwg] metadata (re-mapping)

2017-04-17 Thread Roger Hågensen
On 2017-04-16 15:36, Delfi Ramirez wrote: * Sound.load(new URLRequest("07 - audio.mp3")); * Some old tricks on the issue were done in the past. here the link of an ECMAScript derivative from the past, if it serves you as a model ID3 tags Get/Receive [6]. That is not a trick,

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

2017-04-17 Thread Roger Hågensen
On 2017-04-17 13:53, duanyao wrote: For single page application, browsers restrict `foo.html`'s permission to `foo_files/` in the same parent directory. Note that it is already a common practice for browsers to save a page's resource to a `xxx_files/` directory; browsers just need to grant the

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

2017-04-17 Thread duanyao
在 2017年04月17日 20:43, Roger Hågensen 写道: On 2017-04-17 13:53, duanyao wrote: For single page application, browsers restrict `foo.html`'s permission to `foo_files/` in the same parent directory. Note that it is already a common practice for browsers to save a page's resource to a `xxx_files/`

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

2017-04-17 Thread duanyao
在 2017年04月16日 01:54, David Kendal 写道: On 15 Apr 2017, at 14:07, Roger Hågensen wrote: Patrick makes a good point. For example asking a user if it' sok for the HTML document to access stuff in "C:\Users\Username\AppData\Local\Temp\" what do you think most uses will do?

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

2017-04-17 Thread duanyao
在 2017年04月15日 02:09, Domenic Denicola 写道: From: David Kendal [mailto:m...@dpk.io] This is getting silly. says the WHAT WG's purpose is to 'evolve the Web'; since file: URIs are part of the web, this problem falls within the WHAT WG's remit. file:

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

2017-04-17 Thread duanyao
在 2017年04月17日 21:39, Anne van Kesteren 写道: On Mon, Apr 17, 2017 at 3:32 PM, duanyao wrote: So you mean file: protocol is not portable? For absolute file: url, true; for relative url, almost not true. When writing web pages, no one use absolute file: urls in practice, so this

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

2017-04-17 Thread Anne van Kesteren
On Mon, Apr 17, 2017 at 5:53 PM, duanyao 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

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

2017-04-17 Thread duanyao
在 2017年04月18日 00:03, Anne van Kesteren 写道: On Mon, Apr 17, 2017 at 5:53 PM, duanyao 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