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)
Core
Networking
Tracking
()
VERIFIED
INVALID
M12
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.
Reporter | ||
Updated•26 years ago
|
Priority: P3 → P1
Reporter | ||
Updated•26 years ago
|
QA Contact: 4590 → 4120
Assignee | ||
Updated•26 years ago
|
Assignee: norris → gagan
Component: JavaScript → Networking Library
Per DP's suggestion marking these till M8. Though Necko lands with M7, we will
be able to verify it for M8.
Reporter | ||
Comment 4•26 years ago
|
||
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
Updated•26 years ago
|
Target Milestone: M8 → M9
Comment 5•26 years ago
|
||
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
Comment 8•26 years ago
|
||
ckritzer can you check this out in latest builds and mark resolved if so? You
are so cool.
Reporter | ||
Updated•26 years ago
|
Whiteboard: Currently blocked by bug#????? (I'm looking it up)
Reporter | ||
Comment 9•25 years ago
|
||
Still broken on MacOS & Win98. Having problems launching linux.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → REOPENED
Reporter | ||
Comment 10•25 years ago
|
||
Still broken on:
MacOS86, Linux6, Win98 on apprunner 1999102508 builds.
Comment 11•25 years ago
|
||
Clearing FIXED resolution due to reopen of this bug.
Comment 12•25 years ago
|
||
Setting to M11 since M9 is over.
Updated•25 years ago
|
Target Milestone: M11 → M12
Comment 13•25 years ago
|
||
-> m12
Comment 14•25 years ago
|
||
Moving Assignee from gagan to warren since he is away.
Updated•25 years ago
|
Assignee: warren → norris
Comment 15•25 years ago
|
||
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.
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago → 25 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 16•25 years ago
|
||
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.
Reporter | ||
Comment 17•25 years ago
|
||
Seems to be working now.
Verified on:
Linux6 1999112808 apprunner
MacOS86 1999112715 apprunner (talkback)
Will mark verified when working Windows build becomes available...
Comment 18•25 years ago
|
||
Bulk move of all Networking-Core (to be deleted component) bugs to new
Networking component.
Reporter | ||
Comment 19•25 years ago
|
||
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.
Description
•