Closed Bug 5219 Opened 26 years ago Closed 25 years ago

NECKO: JS: SRC attribute prevents local file from displaying html

Categories

(Core :: Networking, defect, P1)

defect

Tracking

()

VERIFIED INVALID

People

(Reporter: ckritzer, Assigned: norrisboyd)

Details

(Whiteboard: Currently blocked by bug#????? (I'm looking it up))

For MacOS 8.5, Win95, and Linux RedHat 5.2 on viewer 041699 build: CRITICALLY IMPORTANT: You *must* load this files from a local directory, otherwise the bug does not appear. 1) Create a directory on your local volume called 'shes' and inside of shes, create another directory called 'daBomb'. 2) Copy the text between the two indicating lines, and save it into shes as 'test.js': /* --------------------------- COPY AFTER THIS LINE -------------------------- */ /****************************************************************************** * Function: docit() * * Descript: Outputs to screen string entered & attaches a <br> to the end * Usage: docit(sString); * docit( "<b>birdhouse</b> in your soul." ); * Returns: null *****************************************************************************/ function docit(sString) { document.write(sString + "<br>"); } /* ---------------------- STOP COPYING BEFORE THIS LINE ---------------------- */ 3) Copy the text between the two indicating lines, and save it into daBomb as jsDisplayBug.html: /* --------------------------- COPY AFTER THIS LINE -------------------------- */ <html> <head> <title>jsDisplayBug.html</title> </head> <script type="text/javascript" src="../test.js"> document.write("This is text in the SCRIPT tag of the HEAD section...< br>"); </script> <body> <hr>You should see text, a horizontal line, this text, a horizontal line, and more text if the SRC attribute in the first SCRIPT tag is working.< hr> <script> document.write("This is text in the SCRIPT tag of the BODY section...<br>"); </script> </body> </html> /* ---------------------- STOP COPYING BEFORE THIS LINE ---------------------- */ 4) Okay, now load jsDisplayBug.html into viewer. You will not see the first line of text that should appear before the first horizontal line. If you put this on a server, and load it from the server into viewer, it works fine. If you remove the SRC attribute from the first SCRIPT tag (from your local copy) it works fine.
Priority: P3 → P1
QA Contact: 4590 → 4120
Assignee: norris → gagan
Component: JavaScript → Networking Library
Deffered till Necko lands...
Deferring till Necko lands...
Per DP's suggestion marking these till M8. Though Necko lands with M7, we will be able to verify it for M8.
Appears to be working in the following builds... Mac 1999-06-01-19-M6 WinNT4 1999-06-01-09-M7 Linux6 1999-06-01-12-M7
Target Milestone: M8 → M9
Neck landing in M8, moving to M9
Changing all Networking Library/Browser bugs to Networking-Core component for Browser. Occasionally, Bugzilla will burp and cause Verified bugs to reopen when I do this in a bulk change. If this happens, I will fix. ;-)
Summary: JS: SRC attribute prevents local file from displaying html → NECKO: JS: SRC attribute prevents local file from displaying html
Check with Necko please...
ckritzer can you check this out in latest builds and mark resolved if so? You are so cool.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Whiteboard: Currently blocked by bug#????? (I'm looking it up)
Still broken on MacOS & Win98. Having problems launching linux.
Status: RESOLVED → REOPENED
Still broken on: MacOS86, Linux6, Win98 on apprunner 1999102508 builds.
Resolution: FIXED → ---
Clearing FIXED resolution due to reopen of this bug.
Target Milestone: M9 → M11
Setting to M11 since M9 is over.
Target Milestone: M11 → M12
-> m12
Moving Assignee from gagan to warren since he is away.
Assignee: warren → norris
I don't know why this was assigned to Gagan, or why someone thought it was network related. Forget all the long-winded description above -- here's a simplified test case that demonstrates the problem: Load this and things work: <script type="text/javascript" src=""> document.write("it works"); </script> load this and it doesn't: <script type="text/javascript" src="xxx"> document.write("it works"); </script> The js file doesn't even need to exist to see the problem. Norris: Can you take a look, or reassign? Thanks.
Status: NEW → RESOLVED
Closed: 26 years ago25 years ago
Resolution: --- → INVALID
What should be the correct behavior? For Nav 4.7, src="xxx", the page is blank. For Nav 4.7, src="", the browser shows the enclosing directory (!) For IE 5, src="xxx", the page is blank. For IE 5, src="", the page is "it works" For Mozilla, src="xxx", the page is blank For Mozilla, src="", the page is "it works" So all three browsers are in a agreement except for Nav 4.7 showing the containing directory, which I'm pretty sure isn't right. I'll close this bug as invalid. If I've missed something, please reopen.
Seems to be working now. Verified on: Linux6 1999112808 apprunner MacOS86 1999112715 apprunner (talkback) Will mark verified when working Windows build becomes available...
Bulk move of all Networking-Core (to be deleted component) bugs to new Networking component.
Okay, this one has come and gone several times...but it's GONE now so I'll mark it as VERIFIED INVALID and if it comes back I'll re-open the bug: - Linux6 2000-02-01-10 Commercial build - Win98 2000-02-01-08 Commercial build - MacOS86 2000-02-01-09 Commercial build
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.