Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Avoid strange women and temporary variables.


computers / alt.comp.software.firefox / Re: Opening a local file and jumping to an anchour doesn't quite work ...

SubjectAuthor
* Opening a local file and jumping to an anchour doesn't quite work ...R.Wieser
+* Opening a local file and jumping to an anchour doesn't quite work ...Andy Burns
|`* Opening a local file and jumping to an anchour doesn't quite work ...R.Wieser
| `* Opening a local file and jumping to an anchour doesn't quite work ...Andy Burns
|  `- Opening a local file and jumping to an anchour doesn't quite work ...R.Wieser
+* Opening a local file and jumping to an anchour doesn't quite work ...Dave Roya
|`* Opening a local file and jumping to an anchour doesn't quite work ...VanguardLH
| `* Opening a local file and jumping to an anchour doesn't quite work ...Andy Burns
|  `* Opening a local file and jumping to an anchour doesn't quite work ...VanguardLH
|   `- Opening a local file and jumping to an anchour doesn't quite work ...Andy Burns
+* Opening a local file and jumping to an anchor doesn't quite work ...Stan Brown
|`- Opening a local file and jumping to an anchor doesn't quite work ...R.Wieser
`- Opening a local file and jumping to an anchour doesn't quite work ...R.Wieser

1
Opening a local file and jumping to an anchour doesn't quite work ...

<unb65g$i39f$1@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2546&group=alt.comp.software.firefox#2546

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.software.firefox
Subject: Opening a local file and jumping to an anchour doesn't quite work ...
Date: Sat, 6 Jan 2024 10:22:48 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <unb65g$i39f$1@dont-email.me>
Injection-Date: Sat, 6 Jan 2024 09:22:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="42e50feb1b821604e08679387aa41459";
logging-data="593199"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Mcelds/afQFBBHawCe+OyDM4g0MqqCI42mEarKz2Edg=="
Cancel-Lock: sha1:C27hYvjsJTfqvgKDrLSHfClHVzw=
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Sat, 6 Jan 2024 09:22 UTC

Hello all,

I've got a file:///c:/folder/file.htm#foobar link, which opens, in FF v52,
the local file as expected. Wat it /doesn't/ do however is to go to the
"foobar" anchour (which exists, and can be jumped to using the in-page
"menu").

Is this expected behaviour for the "file://" protocol, or is there something
I'm missing in the above ?

Regards,
Rudy Wieser

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<kvslgkF5vbgU3@mid.individual.net>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2548&group=alt.comp.software.firefox#2548

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!nntp.comgw.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work
...
Date: Sat, 6 Jan 2024 09:40:36 +0000
Lines: 14
Message-ID: <kvslgkF5vbgU3@mid.individual.net>
References: <unb65g$i39f$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net O8y2mhMd1J+0ZpCvpOW1Sw/l2qnSRgQVnTasSnja7cT8mWEivp
Cancel-Lock: sha1:7O+2x1ks4DIkT3+LRH8nAKOk8zE= sha256:F89OFRVmCWXKXcpMXXjeYlPufG9EkzK1MUy65j4az5I=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <unb65g$i39f$1@dont-email.me>
 by: Andy Burns - Sat, 6 Jan 2024 09:40 UTC

R.Wieser wrote:

> I've got afile:///c:/folder/file.htm#foobar link, which opens, in FF v52,
> the local file as expected. Wat itdoesn't do however is to go to the
> "foobar" anchour

I can repeat it here, but it seems to be a windows issue, not a firefox
issue?

My shortcut includes my #anchor in the URL, but the firefox address bar
doesn't show the #anchor once launched, if I manually add the #anchor
inside firefox and re-load, it works and jumps to the relevant point in
the document.

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<unb76u$i7o6$1@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2549&group=alt.comp.software.firefox#2549

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dave@dave123royal.com (Dave Roya)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work ...
Date: Sat, 6 Jan 2024 09:40:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <unb76u$i7o6$1@dont-email.me>
References: <unb65g$i39f$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 6 Jan 2024 09:40:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a0f2370f7b1eba69685808f3a9c20d35";
logging-data="597766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1zlVrqCnVvOoSL5X0DTAg"
User-Agent: PyKiN 0.5 (Android)
Cancel-Lock: sha1:tSzBZQNW5GUZJo55xaMKZikDhYc=
In-Reply-To: <unb65g$i39f$1@dont-email.me>
 by: Dave Roya - Sat, 6 Jan 2024 09:40 UTC

On 6 Jan 2024 10:22:48 +0100 R.Wieser wrote:
>Hello all,
>
>I've got a file:///c:/folder/file.htm#foobar link, which opens, in FF v52,
>the local file as expected. Wat it /doesn't/ do however is to go to the
>"foobar" anchour (which exists, and can be jumped to using the in-page
>"menu").
>
>Is this expected behaviour for the "file://" protocol, or is there something
>I'm missing in the above ?

Is the mime-type text/plain?
<https://bugzilla.mozilla.org/show_bug.cgi?id=660583>
--
(Remove numerics from email address)

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<1orzidyd93x9g.dlg@v.nguard.lh>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2554&group=alt.comp.software.firefox#2554

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: V@nguard.LH (VanguardLH)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work ...
Date: Sat, 6 Jan 2024 04:52:25 -0600
Organization: Usenet Elder
Lines: 20
Sender: V@nguard.LH
Message-ID: <1orzidyd93x9g.dlg@v.nguard.lh>
References: <unb65g$i39f$1@dont-email.me> <unb76u$i7o6$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net pBpZdMroDUcWctd/tzx/vwy81bcO/NUYJnb2kEnKaNMA0/Img+
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:W+iOkNUhVXSs5tOqTyzRPV8344A= sha256:IpTSj+4OCcR20MHOVcfSOTUghc47FZJqaghwOrn4jn4=
User-Agent: 40tude_Dialog/2.0.15.41
 by: VanguardLH - Sat, 6 Jan 2024 10:52 UTC

Dave Royal <dave@dave123royal.com> wrote:

> On 6 Jan 2024 10:22:48 +0100 R.Wieser wrote:
>>Hello all,
>>
>>I've got a file:///c:/folder/file.htm#foobar link, which opens, in FF v52,
>>the local file as expected. Wat it /doesn't/ do however is to go to the
>>"foobar" anchour (which exists, and can be jumped to using the in-page
>>"menu").
>>
>>Is this expected behaviour for the "file://" protocol, or is there something
>>I'm missing in the above ?
>
> Is the mime-type text/plain?
> <https://bugzilla.mozilla.org/show_bug.cgi?id=660583>

I tested using a local file set for a web version of my resume. It has
anchors (aka fragments) to jump to sections of the resume. Those work
when I specify a URL with the fragment in the command line to load
Firefox. There's nothing but simple text in the HTML code.

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<kvsqhoF5vbgU4@mid.individual.net>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2556&group=alt.comp.software.firefox#2556

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work
...
Date: Sat, 6 Jan 2024 11:06:32 +0000
Lines: 11
Message-ID: <kvsqhoF5vbgU4@mid.individual.net>
References: <unb65g$i39f$1@dont-email.me> <unb76u$i7o6$1@dont-email.me>
<1orzidyd93x9g.dlg@v.nguard.lh>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net D6lohdFllNJLo5EOthNGtQwP2T1Sz6JUPMDmXhNX/iqsq3n/Et
Cancel-Lock: sha1:OaPn5+uqA9H23qnvxFAVy7Jg/r0= sha256:Ld/2jkIEja5VgruCcL8KTbVRFCM8FxiP9yGHcj07CtE=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <1orzidyd93x9g.dlg@v.nguard.lh>
 by: Andy Burns - Sat, 6 Jan 2024 11:06 UTC

VanguardLH wrote:

> I tested using a local file set for a web version of my resume. It has
> anchors (aka fragments) to jump to sections of the resume. Those work
> when I specify a URL with the fragment in the command line to load
> Firefox.

If you drag from the firefox addr bar to e.g. the desktop to create a
windows shortcut, does that launch to the anchor position? That's the
only part of all this which doesn't work for me ...

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<unbcg3$iuft$1@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2557&group=alt.comp.software.firefox#2557

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work ...
Date: Sat, 6 Jan 2024 12:10:49 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <unbcg3$iuft$1@dont-email.me>
References: <unb65g$i39f$1@dont-email.me> <kvslgkF5vbgU3@mid.individual.net>
Injection-Date: Sat, 6 Jan 2024 11:11:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="42e50feb1b821604e08679387aa41459";
logging-data="621053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YR6aOdiIBrGi97tyWyN2T26lS/6DbQpNdMaNOhTHl6A=="
Cancel-Lock: sha1:7E4UopIaURvGkPUdzjz43wYB5qk=
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Sat, 6 Jan 2024 11:10 UTC

Andy,

> I can repeat it here, but it seems to be a windows issue, not a firefox
> issue?

How did you get to that conclusion ?

> My shortcut includes my #anchor in the URL, but the firefox address bar
> doesn't show the #anchor once launched

Same here. I have no idea where the anchour gets dropped though.

> if I manually add the #anchor inside firefox and re-load, it works and
> jumps to the relevant point in the document.

Hmm... I see where you got the "its an OS problem" idea from.

As a check I just wrote a bach file to start firefox and gave it the
"file://" URL as a commandline parameter. It opens the local file and jumps
to the anchour.

IOW, it seems to support your "OS problem" idea. No idea what to do about
it though ...

Regards,
Rudy Wieser

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<kvsr3qF5vbgU5@mid.individual.net>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2558&group=alt.comp.software.firefox#2558

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work
...
Date: Sat, 6 Jan 2024 11:16:09 +0000
Lines: 17
Message-ID: <kvsr3qF5vbgU5@mid.individual.net>
References: <unb65g$i39f$1@dont-email.me> <kvslgkF5vbgU3@mid.individual.net>
<unbcg3$iuft$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net pEduZLLuPII4Fr9kwdqpogEc6XF25H+tJNymMldE79HDj1/DoW
Cancel-Lock: sha1:wfDzP7Qn/bHik+uWAJkpstn6Ej0= sha256:tPA+DdWccRfb8KbJt2xBQWLZzbyKaxtU8oRGNi4rtPQ=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <unbcg3$iuft$1@dont-email.me>
 by: Andy Burns - Sat, 6 Jan 2024 11:16 UTC

R.Wieser wrote:

> I just wrote a bach file to start firefox and gave it the
> "file://" URL as a commandline parameter. It opens the local file and jumps
> to the anchour.
>
> IOW, it seems to support your "OS problem" idea. No idea what to do about
> it though ...

compare firefox behaviour to chrome/edge?

try wrapping stuff in quotes?

dunno ...

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<ofsvfp2vcx88$.dlg@v.nguard.lh>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2561&group=alt.comp.software.firefox#2561

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: V@nguard.LH (VanguardLH)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work ...
Date: Sat, 6 Jan 2024 06:41:06 -0600
Organization: Usenet Elder
Lines: 98
Sender: V@nguard.LH
Message-ID: <ofsvfp2vcx88$.dlg@v.nguard.lh>
References: <unb65g$i39f$1@dont-email.me> <unb76u$i7o6$1@dont-email.me> <1orzidyd93x9g.dlg@v.nguard.lh> <kvsqhoF5vbgU4@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net zbgpscV5Yz7qMxC/rhsDwwGU4X89wJXva8Int0gprFUBkyx5Fm
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:pXzQJ6AclTEZ7BPDDZBcf9drvBc= sha256:/+V+6X8jVfWKu0OkEa/9mtzya50ahbezuVJTE457SP8=
User-Agent: 40tude_Dialog/2.0.15.41
 by: VanguardLH - Sat, 6 Jan 2024 12:41 UTC

Andy Burns <usenet@andyburns.uk> wrote:

> VanguardLH wrote:
>
>> I tested using a local file set for a web version of my resume. It has
>> anchors (aka fragments) to jump to sections of the resume. Those work
>> when I specify a URL with the fragment in the command line to load
>> Firefox.
>
> If you drag from the firefox addr bar to e.g. the desktop to create a
> windows shortcut, does that launch to the anchor position? That's the
> only part of all this which doesn't work for me ...

When I run:

"<path>\firefox.exe" file:///C:/Users/.../resume.html#EDUCATION

the #fragment works. Firefox is doing the URL parsing. When I drag the
URL with #fragment to the Windows desktop to create a shortcut,
firefox.exe is not specified, just the URL of:

file:///C:/Users/.../resume.html#EDUCATION

That means double-clicking on the URL has Windows determine to which
handler the URL string gets passed. However, Windows uses a sneaky
trick in loading the default URL handler. It first loads its own
Internet Browser (no, not Internet Explorer) to then determine which URL
handler is the default.

I only came across the hidden Internet Browser program when I somehow
change the default from Firefox to Internet Browser wondering what the
hell was the latter.

Default apps -> Choose default apps by file type -> .url

It will show "Internet Browser". I don't remember how I changed it to
Firefox. My guess is I used Nirsoft's Filetype Viewer, selected .URL
(name is InternetShortcut), which shows 3 actions on the filetype:

Open "C:\Windows\System32\rundll32.exe" "C:\Windows\System32\ieframe.dll",OpenURL %l
print
printto

I only showed the command for the Open action. Notice it runs
rundll32.exe to load ieframe.dll to its OpenURL entry point while
passing the URL from the shortcut using the %L (not %1) substitution
variable. It is NOT directly running firefox.exe. ieframe's OpenURL
function decides what is the default handler specified for .url
filetypes. In Nirsoft, you can right-click on one of the actions to
open it in regedit. Open is defined at:

HKEY_CLASSES_ROOT\InternetShortcut\shell\Open\Command

and has the same command line as shown in Nirsoft. At first, I thought
# might be an illegal path (folder) or file name, but I tested by:

cd c:\temp
echo testing > test#me.txt
dir

dir lists the test#me.txt file, and I can open it in Notepad. So, it's
not # causing a problem in the filename. However, you're using the
file:/// scheme which specifies a file, and you don't have a file at
<path>\<file>#fragment. I would've thought you'd get a "file not found"
error, but instead the legitimate portion of the file path gets passed
by Internet Browser to the default handler (Firefox).

Instead of using a .url shortcut, what if you use a .lnk shortcut. It's
target would specify:

<path>\firefox.exe file:///c:/folder/file.htm#foobar

Then the shortcut is a .lnk file that runs a program to open the file
while including the #fragment substring. When I use a .lnk shortcut to
run Firefox and give the file with anchor, the web page opens to that
anchor. Instead of the .url shortcut passing the string to Internet
Browser which is rundll32 running the OpenURL function in ieframe.dll,
the .lnk shortcut directly runs Firefox.

Dragging from the web browser address bar to the Windows desktop creates
a .url shortcut. You want to create a .lnk shortcut. .lnk shortcuts
are to local files (or to registry-defined objects) while .url shortcuts
are to remote files.

For example, I want to assign a particular icon to a URL, but the .url
shortcuts all get the icon from the default web browser. Say I have a
shortcut that points to boatloadpuzzles.com for crosswords. I'd rather
assign a crossword-looking icon to that shortcut. Can't edit the icon
for a .url shortcut. I can change the icon in a .lnk shortcut. A lot
of URL shortcuts to different places all have the same icon, so they are
less distinguisable from each other. I have to read the text added to
the shortcut. With .lnk shortcuts, I could use a different icon image
for every .lnk shortcut. Easy for me to differentiate a shortcut to
Boatload crosswords from local weather from Google voice from Gmail from
Hotmail and so on. I can specify which icon to use for each URL
shortcut just like I can for icons of program shortcuts. A slew of
Firefox icons on my Windows desktop or in toolbars in the Taskbar looks
like a mess making me read their titles to see which goes where.

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<kvt1tqF96ukU1@mid.individual.net>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2564&group=alt.comp.software.firefox#2564

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!nntp.comgw.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work
...
Date: Sat, 6 Jan 2024 13:12:25 +0000
Lines: 99
Message-ID: <kvt1tqF96ukU1@mid.individual.net>
References: <unb65g$i39f$1@dont-email.me> <unb76u$i7o6$1@dont-email.me>
<1orzidyd93x9g.dlg@v.nguard.lh> <kvsqhoF5vbgU4@mid.individual.net>
<ofsvfp2vcx88$.dlg@v.nguard.lh>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net xA909MMEvFjwALX3qsRFEQrYQqOHDI9e2T2XEnVtojAHTwSO/e
Cancel-Lock: sha1:XGMEhLeCbIKTnzCoNOd64LXC8KM= sha256:77SRtBIdQsr+oIihpHwacvsO5mnyy/r0bVIIB82Nayk=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <ofsvfp2vcx88$.dlg@v.nguard.lh>
 by: Andy Burns - Sat, 6 Jan 2024 13:12 UTC

VanguardLH wrote:

> When I run:
>
> "<path>\firefox.exe" file:///C:/Users/.../resume.html#EDUCATION
>
> the #fragment works. Firefox is doing the URL parsing. When I drag the
> URL with #fragment to the Windows desktop to create a shortcut,
> firefox.exe is not specified, just the URL of:
>
> file:///C:/Users/.../resume.html#EDUCATION

Yes, I noticed that, but going to prooperties of the shortcut let me add
back #anchor

> That means double-clicking on the URL has Windows determine to which
> handler the URL string gets passed. However, Windows uses a sneaky
> trick in loading the default URL handler. It first loads its own
> Internet Browser (no, not Internet Explorer) to then determine which URL
> handler is the default.

the shellex handler for .url files seems to get bounced through
@%systemroot%\system32\ieframe.dll,-34560

I've not looked any deeper than that.

> I only came across the hidden Internet Browser program when I somehow
> change the default from Firefox to Internet Browser wondering what the
> hell was the latter.
>
> Default apps -> Choose default apps by file type -> .url
>
> It will show "Internet Browser". I don't remember how I changed it to
> Firefox. My guess is I used Nirsoft's Filetype Viewer, selected .URL
> (name is InternetShortcut), which shows 3 actions on the filetype:
>
> Open "C:\Windows\System32\rundll32.exe" "C:\Windows\System32\ieframe.dll",OpenURL %l
> print
> printto

ok, yes similar to what I saw, the %1 ought to be the full URL including
anchor though?

> I only showed the command for the Open action. Notice it runs
> rundll32.exe to load ieframe.dll to its OpenURL entry point while
> passing the URL from the shortcut using the %L (not %1) substitution
> variable. It is NOT directly running firefox.exe. ieframe's OpenURL
> function decides what is the default handler specified for .url
> filetypes. In Nirsoft, you can right-click on one of the actions to
> open it in regedit. Open is defined at:
>
> HKEY_CLASSES_ROOT\InternetShortcut\shell\Open\Command
>
> and has the same command line as shown in Nirsoft. At first, I thought
> # might be an illegal path (folder) or file name, but I tested by:
>
> cd c:\temp
> echo testing > test#me.txt
> dir
>
> dir lists the test#me.txt file, and I can open it in Notepad. So, it's
> not # causing a problem in the filename. However, you're using the
> file:/// scheme which specifies a file, and you don't have a file at
> <path>\<file>#fragment. I would've thought you'd get a "file not found"
> error, but instead the legitimate portion of the file path gets passed
> by Internet Browser to the default handler (Firefox).
>
> Instead of using a .url shortcut, what if you use a .lnk shortcut. It's
> target would specify:
>
> <path>\firefox.exe file:///c:/folder/file.htm#foobar
>
> Then the shortcut is a .lnk file that runs a program to open the file
> while including the #fragment substring. When I use a .lnk shortcut to
> run Firefox and give the file with anchor, the web page opens to that
> anchor. Instead of the .url shortcut passing the string to Internet
> Browser which is rundll32 running the OpenURL function in ieframe.dll,
> the .lnk shortcut directly runs Firefox.
>
> Dragging from the web browser address bar to the Windows desktop creates
> a .url shortcut. You want to create a .lnk shortcut. .lnk shortcuts
> are to local files (or to registry-defined objects) while .url shortcuts
> are to remote files.
>
> For example, I want to assign a particular icon to a URL, but the .url
> shortcuts all get the icon from the default web browser. Say I have a
> shortcut that points to boatloadpuzzles.com for crosswords. I'd rather
> assign a crossword-looking icon to that shortcut. Can't edit the icon
> for a .url shortcut. I can change the icon in a .lnk shortcut. A lot
> of URL shortcuts to different places all have the same icon, so they are
> less distinguisable from each other. I have to read the text added to
> the shortcut. With .lnk shortcuts, I could use a different icon image
> for every .lnk shortcut. Easy for me to differentiate a shortcut to
> Boatload crosswords from local weather from Google voice from Gmail from
> Hotmail and so on. I can specify which icon to use for each URL
> shortcut just like I can for icons of program shortcuts. A slew of
> Firefox icons on my Windows desktop or in toolbars in the Taskbar looks
> like a mess making me read their titles to see which goes where.

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<unc0j5$m78v$1@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2570&group=alt.comp.software.firefox#2570

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work ...
Date: Sat, 6 Jan 2024 17:53:04 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <unc0j5$m78v$1@dont-email.me>
References: <unb65g$i39f$1@dont-email.me> <kvslgkF5vbgU3@mid.individual.net> <unbcg3$iuft$1@dont-email.me> <kvsr3qF5vbgU5@mid.individual.net>
Injection-Date: Sat, 6 Jan 2024 16:53:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="42e50feb1b821604e08679387aa41459";
logging-data="728351"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c8u4E2YI/Em8QL60H95j4hN1G9Vjd9IjqSnJvgzWI/w=="
Cancel-Lock: sha1:HusslCbTGSmcLVoJQSmwiE4JNr8=
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Sat, 6 Jan 2024 16:53 UTC

Andy,

> compare firefox behaviour to chrome/edge?

Whats that "chrome/edge" you're talking about ? :-) (can't test what I
don't have)

> try wrapping stuff in quotes?

An URL links "url:" property ? All of it ?

Just did, and it trashed the contents of the link (did not expect that btw).

I could ofcourse blindly(!) try to quote random-ish parts of it, but thats
what I tried to forgo ...

Regards,
Rudy Wieser

Re: Opening a local file and jumping to an anchor doesn't quite work ...

<MPG.400382fc811a271990279@news.individual.net>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2575&group=alt.comp.software.firefox#2575

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: the_stan_brown@fastmail.fm (Stan Brown)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchor doesn't quite work ...
Date: Sat, 6 Jan 2024 15:32:49 -0800
Organization: Oak Road Systems
Lines: 21
Message-ID: <MPG.400382fc811a271990279@news.individual.net>
References: <unb65g$i39f$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net JoEj8y7ZJM52/IpXzqJpGwwea7dmQTxPsALl4xU+XJIhCksJQG
Cancel-Lock: sha1:sLLP5kXG4mBjRyzbbFGvfad2/IM= sha256:pDe/ydfhYp4CpMJAXz4CqsseZPYa6/4BMU2fR8deK2Y=
User-Agent: MicroPlanet-Gravity/3.0.11 (GRC)
 by: Stan Brown - Sat, 6 Jan 2024 23:32 UTC

On Sat, 6 Jan 2024 10:22:48 +0100, R.Wieser wrote:
> I've got a file:///c:/folder/file.htm#foobar link, which opens, in FF v52,
> the local file as expected. Wat it /doesn't/ do however is to go to the
> "foobar" anchour (which exists, and can be jumped to using the in-page
> "menu").

What is the anchor in file.htm: is it foobar or some form containing
one or more capital letters? I'll bet it's the latter.

The _file_ is looked up through Windows, and therefore is not case
sensitive.

The _anchor_ is looked up by the browser directly, and therefore it
_is_ case sensitive. I've seen this in both Firefox and Chrome when I
mistyped a file:-type link with an anchor. It _should_ be true on all
browsers, and I'd be surprised if there were any important
exceptions.

--
Stan Brown, Tehachapi, California, USA https://BrownMath.com/
Shikata ga nai...

Re: Opening a local file and jumping to an anchor doesn't quite work ...

<undlif$10o7k$1@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2578&group=alt.comp.software.firefox#2578

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchor doesn't quite work ...
Date: Sun, 7 Jan 2024 08:57:58 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <undlif$10o7k$1@dont-email.me>
References: <unb65g$i39f$1@dont-email.me> <MPG.400382fc811a271990279@news.individual.net>
Injection-Date: Sun, 7 Jan 2024 07:58:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="57d38920cd10d75b58473448e3fa8956";
logging-data="1073396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3GqM5Zj8Pf+anC4LAxfkJv3uCCR3XGA7RMNtY7xBjpA=="
Cancel-Lock: sha1:gPC7a7lN6NVjX3A9oLVqrTU2BzQ=
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Sun, 7 Jan 2024 07:57 UTC

Stan,

> What is the anchor in file.htm: is it foobar or some form
> containing one or more capital letters? I'll bet it's the latter.
>
> The _file_ is looked up through Windows, and therefore is
> not case sensitive.

How much did I you lose by betting on it ? :-p

FYI, the URL shortcut was created by drag-and-dropping the in-page "menu"
link onto my desktop. And yes, it's the same anchour string as it appears
in the in-page "menu" (which works).

Also, as mentioned in a later post, I created a batchfile to start FF and
provided it the (quoted) URL as a parameter. That one works (jumps to the
anchour).

Regards,
Rudy Wieser

Re: Opening a local file and jumping to an anchour doesn't quite work ...

<ung6l1$1f1gp$1@dont-email.me>

  copy mid

http://rslight.i2p/computers/article-flat.php?id=2601&group=alt.comp.software.firefox#2601

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.comp.software.firefox
Subject: Re: Opening a local file and jumping to an anchour doesn't quite work ...
Date: Mon, 8 Jan 2024 08:01:35 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <ung6l1$1f1gp$1@dont-email.me>
References: <unb65g$i39f$1@dont-email.me>
Injection-Date: Mon, 8 Jan 2024 07:01:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ad5cc77a2dca1e52cebf9c813c548c";
logging-data="1541657"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qywcnCAkKao2GSp5zYlkBMju1KtcsDXeW6GprLxUGBw=="
Cancel-Lock: sha1:i66ZJEEI/CGsUy3vw0XSfPMT49s=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
 by: R.Wieser - Mon, 8 Jan 2024 07:01 UTC

> I've got a file:///c:/folder/file.htm#foobar link, which opens, in FF v52,
> the local file as expected. Wat it /doesn't/ do however is to go to the
> "foobar" anchour (which exists, and can be jumped to using the in-page
> "menu").

I just thought of drag-and-dropping the same link from the origional webpage
to the desktop (resulting in a https:/// URL shortcut), and got the same
problem : it opens the webpage, but doesn't want to jump to the anchour.

IOW, its not just a file:/// protocol problem.

Regards,
Rudy Wieser


computers / alt.comp.software.firefox / Re: Opening a local file and jumping to an anchour doesn't quite work ...

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor