Re: Firefox PDF download - strange behaviour.

2022-01-21 Thread Andrei POPESCU
On Ma, 18 ian 22, 11:35:04, The Wanderer wrote: > > Looking at that example, I note that it starts with the variable name > "currentDirHandle". I think it's intended, although not explicitly > stated, that the directory path specified in that function call is > *relative*; that would let the API b

Re: Firefox PDF download - strange behaviour.

2022-01-19 Thread Curt
On 2022-01-18, Jeremy Nicoll wrote: > > The problem is that a user would normally only expect a browser to > save a file to the file-system in two cases: > > (a) when the user has explcicitly chosen to download something, and >then chooses where to put it > > (b) when the browser is cacheing

Re: Firefox PDF download - strange behaviour.

2022-01-18 Thread Vincent Lefevre
On 2022-01-18 11:23:14 -0500, songbird wrote: > Jeremy Nicoll wrote: > > songbird wrote: > ... > >> but what i do is set where files are saved in a > >> specific directory and leave it at that > > > > That works fine while you can be sure that a browser is only > > saving downloaded files. What a

Re: Firefox PDF download - strange behaviour.

2022-01-18 Thread Jeremy Nicoll
On Tue, 18 Jan 2022, at 16:35, The Wanderer wrote: > So this could potentially be dangerous if the user chooses a directory > location that's high enough in the directory tree to have important > files already underneath it, but not if the user chooses e.g. a > dedicated Downloads directory. I'd

Re: Firefox PDF download - strange behaviour.

2022-01-18 Thread David Wright
On Tue 18 Jan 2022 at 14:46:48 (+), Jeremy Nicoll wrote: > On Tue, 18 Jan 2022, at 04:51, songbird wrote: > > Jeremy Nicoll wrote: > >> On Mon, 17 Jan 2022, at 05:19, songbird wrote: > >> > >>> you are right, but i just wanted to say that for some sites > >>> the behavior is to generate a uni

Re: Firefox PDF download - strange behaviour.

2022-01-18 Thread songbird
Jeremy Nicoll wrote: > songbird wrote: ... >> but what i do is set where files are saved in a >> specific directory and leave it at that > > That works fine while you can be sure that a browser is only > saving downloaded files. What about when if can do anything > it likes to any file/folder?

Re: Firefox PDF download - strange behaviour.

2022-01-18 Thread The Wanderer
On 2022-01-17 at 15:55, Jeremy Nicoll wrote: > On Mon, 17 Jan 2022, at 05:19, songbird wrote: > >> you are right, but i just wanted to say that for some sites the >> behavior is to generate a unique file name if they find one that >> already exists with the same name and for other sites it is not

Re: Firefox PDF download - strange behaviour.

2022-01-18 Thread Jeremy Nicoll
On Tue, 18 Jan 2022, at 04:51, songbird wrote: > Jeremy Nicoll wrote: >> On Mon, 17 Jan 2022, at 05:19, songbird wrote: >> >>> you are right, but i just wanted to say that for some sites >>> the behavior is to generate a unique file name if they find >>> one that already exists with the same name

Re: Firefox PDF download - strange behaviour.

2022-01-17 Thread songbird
Jeremy Nicoll wrote: > On Mon, 17 Jan 2022, at 05:19, songbird wrote: > >> you are right, but i just wanted to say that for some sites >> the behavior is to generate a unique file name if they find >> one that already exists with the same name and for other sites >> it is not. i think this is de

Re: Firefox PDF download - strange behaviour.

2022-01-17 Thread Jeremy Nicoll
On Mon, 17 Jan 2022, at 05:19, songbird wrote: > you are right, but i just wanted to say that for some sites > the behavior is to generate a unique file name if they find > one that already exists with the same name and for other sites > it is not. i think this is dependent upon the website des

Re: Firefox PDF download - strange behaviour.

2022-01-16 Thread songbird
Kamil Jońca wrote: > songbird writes: > >> Kamil Jońca wrote: >>> >>> Recently I recognized strange behaviour during pdf download with >>> firefox. >>> 1. When I enter target name with colon - this colon is replaced with >>> space. >> >> no idea because i usually replace any strange characters

Re: Firefox PDF download - strange behaviour.

2022-01-16 Thread Kamil Jońca
Greg Wooledge writes: > On Sun, Jan 16, 2022 at 05:47:13PM +0100, Kamil Jońca wrote: >> Recently I recognized strange behaviour during pdf download with >> firefox. >> 1. When I enter target name with colon - this colon is replaced with >> space. > > Probably because colons are not allowed in fil

Re: Firefox PDF download - strange behaviour.

2022-01-16 Thread Greg Wooledge
On Sun, Jan 16, 2022 at 05:47:13PM +0100, Kamil Jońca wrote: > Recently I recognized strange behaviour during pdf download with > firefox. > 1. When I enter target name with colon - this colon is replaced with > space. Probably because colons are not allowed in filenames on Microsoft platforms. I

Re: Firefox PDF download - strange behaviour.

2022-01-16 Thread Kamil Jońca
songbird writes: > Kamil Jońca wrote: >> >> Recently I recognized strange behaviour during pdf download with >> firefox. >> 1. When I enter target name with colon - this colon is replaced with >> space. > > no idea because i usually replace any strange characters > in file names with underline

Re: Firefox PDF download - strange behaviour.

2022-01-16 Thread songbird
Kamil Jońca wrote: > > Recently I recognized strange behaviour during pdf download with > firefox. > 1. When I enter target name with colon - this colon is replaced with > space. no idea because i usually replace any strange characters in file names with underlines before saving them to disk.