Closed Bug 257891 Opened 21 years ago Closed 21 years ago

Problem with openurl if target URL is of the type myfile.html#mytag

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: erik.jagervall, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040817 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040817 I try to start mozilla as follows: mozilla -remote 'openURL(/home/develop/eja/test.html#950135)' This results in an error message window telling that "The file /home/develop/eja/test.html#950135 could not be found" and an additional error on the console: Error: Failed to send command: 509 internal error It appear that it is the tag (#950135) that it is the problem. Without the tag the file loads correctly, but as soon as there are a tag the load fails. (I have checked that the tag exists and it is not a problem to load the file with tag if you enter it in the browser Reproducible: Always Steps to Reproduce: 1. Start mozilla 2. Try to access a tag in a html file with mozilla -remote 'openURL(<myfile>#<mytag>)' 3. Actual Results: Error message and the page was not loaded Expected Results: Page correctly loaded
It seems that the problem is related to that 'file://' was not used! With 'file://' it works as expected with test.html#950135 Without 'file://' it does not work for test.html#950135, but it works for test.html (ie without the tag) So maybe this isn't a bug, but that decision I leave to someone else with better knowledge :-) best regards Erik Jägervall
your analysis is correct. if you use a file path here, the #mytag is interpreted as part of the filename, and that file does not exist (well, most likely not.) filenames do not have a concept of fragment identifiers. use urls for that. this is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.